Cancel a Contract (cancel)¶
Cancel contract with contract id
Auth Scope(s): trade
-
cancel
(cancel: int, passthrough: Optional[Any] = None, req_id: Optional[int] = None) → int¶ Parameters: - cancel (int) – Value should be the contract_id which received from the portfolio call.
- passthrough (Optional[Any]) – [Optional] Used to pass data through the websocket, which may be retrieved via the echo_req output field.
- req_id (Optional[int]) – [Optional] Used to map request to response.
Returns: req_id
Return type: int