get_order
Retrieve a specific order’s status and fill details by order ID, including timestamps and market session; lookups cover orders from the last 30 days.
Instructions
Get the status and details of a specific order, including its fills.
Returns the order with trades (each fill's tradeId, quantity, price, side
and timestamp), filledAt, replacedAt, lastModified and
equityMarketSession. equityMarketSession reports the session as REGULAR,
REST_OF_DAY or TWENTY_FOUR_HOURS — a different vocabulary from place_order's
equity_market_session argument (CORE / EXTENDED / TWENTY_FOUR_HOURS); never
feed one into the other.
Only orders created within the last 30 days can be looked up; older orders return a not-found error. Order placement is asynchronous, so this may also return an error for an order that was just placed and has not yet been indexed.
An order that belongs to a bracket carries a bracketId — the order ID of the bracket's entry order. Pass that ID to get_orders to find the sibling legs.
Args: order_id: The UUID of the order to look up. account_id: Account ID. Optional if PUBLIC_COM_ACCOUNT_ID is set.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| order_id | Yes | ||
| account_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |