Monitoring Live Orders

View as MarkdownOpen in Claude

The /iserver/account/orders endpoint is used to retrieve the status of all recently open orders in a given account. This includes orders currently working as well as those cancelled or filled within the same brokerage session.

Example request:

GET https://api.ibkr.com/v1/api/iserver/account/orders?filters=filled&force=true&accountId=U1234567

Successful response:

"orders": [
{
"acct": "U1234567",
"conidex": "265598",
"conid": 265598,
"account": "U1234567",
"orderId": 1234568790,
"cashCcy": "USD",
"sizeAndFills": "5",
"orderDesc": "Sold 5 Market, GTC",
"description1": "AAPL",
"ticker": "AAPL",
"secType": "STK",
"listingExchange": "NASDAQ.NMS",
"remainingQuantity": 0.0,
"filledQuantity": 5.0,
"totalSize": 5.0,
"companyName": "APPLE INC",
"status": "Filled",
"order_ccp_status": "Filled",
"avgPrice": "192.26",
"origOrderType": "MARKET",
"supportsTaxOpt": "1",
"lastExecutionTime": "231211180049",
"orderType": "Market",
"bgColor": "#FFFFFF",
"fgColor": "#000000",
"order_ref": "Order123",
"timeInForce": "GTC",
"lastExecutionTime_r": 1702317649000,
"side": "SELL"
}
],
"snapshot": true
}