Orders

Cancel Order

Cancels the order with the referenced Customer Order ID for the account passed in the URL.

delete/accounts/{account}/orders/{CustomerOrderId}

Request

  • Base URL
    https://www.interactivebrokers.com/tradingapi/v1
  • URL
    https://www.interactivebrokers.com/tradingapi/v1/accounts/{account}/orders/{CustomerOrderId}
  • Auth
    API key in header portal

Response

Returns result of cancellation attempt

CustomerOrderIdstring
Symbolnumber
OrderQtynumber
Pricestring
Side1 | 2
Status'-1' | '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' | 'A' | 'B' | 'C' | 'D' | 'E'

Status of the order InvalidOrderStatus = '-1' New = '0' PartiallyFilled = '1' Filled = '2' DoneForTheDay = '3' Canceled = '4' Replaced = '5' PendingCancelReplace = '6' Stopped = '7' Rejected = '8' Suspended = '9' PendingNew = 'A' Calculated = 'B' Expired = 'C' AcceptedForBidding = 'D' PendingReplace = 'E'

Warningstring
OrderType1 | 2 | 3 | 4

Market = '1' Limit = '2' Stop = '3' StopLimit = '4'

Changes

No recorded changes to this operation across all 1 revision of this API.