Orders
Place, monitor, and manage trading orders.
Get Orders
Get Order By ID
Submit Orders
Replace Order
Cancel Open Order
Cancel All Open Orders
Get Executions
ModelsExpand Collapse
type Execution struct{…}
Represents a single fill of an order for an account.
Side Side
Side Side
type NewOrderRequest struct{…}
Request to submit a new order (PlaceOrderRequest from spec)
OrderType RequestOrderType
Quantity string
Quantity to trade. For COMMON_STOCK: shares (may be fractional if supported). For OPTION (single-leg): contracts (must be an integer)
Side Side
TimeInForce RequestTimeInForce
ID stringOptional
Optional client-provided unique ID (idempotency). Required to be unique per account.
ExpiresAt TimeOptional
The timestamp when the order should expire (UTC). Required when time_in_force is GOOD_TILL_DATE.
ExtendedHours boolOptional
Allow trading outside regular trading hours. Some brokers disallow options outside RTH.
Symbol stringOptional
Trading symbol. For equities, use the ticker symbol (e.g., “TSLA”).
For options, use the OSI symbol (e.g., “TSLA 250117C00190000”).
Either symbol or instrument_id must be provided.
type Order struct{…}
A trading order with its current state and execution details.
This is the unified API representation of an order across its lifecycle, combining data from execution reports, order status queries, and parent/child tracking.
InstrumentType SecurityType
OrderType OrderType
Side Side
Status OrderStatus
TimeInForce TimeInForce
AverageFillPrice stringOptional
Average fill price across all executions When a null/undefined value is observed, it indicates that there is no available data.
ExpiresAt TimeOptional
Timestamp when the order will expire (UTC). Present when time_in_force is GOOD_TILL_DATE. When a null/undefined value is observed, it indicates it does not apply.
LimitOffset stringOptional
Limit offset for trailing stop-limit orders (signed) When a null/undefined value is observed, it indicates it does not apply.
LimitPrice stringOptional
Limit price (for LIMIT and STOP_LIMIT orders) When a null/undefined value is observed, it indicates it does not apply.
ReleasesAt TimeOptional
Scheduled release time for orders awaiting release. When a null/undefined value is observed, it indicates it does not apply.
StopPrice stringOptional
Stop price (for STOP and STOP_LIMIT orders) When a null/undefined value is observed, it indicates it does not apply.
TrailingLimitPx stringOptional
Current trailing limit price computed by the trailing strategy When a null/undefined value is observed, it indicates it does not apply.
TrailingOffset stringOptional
Trailing offset amount for trailing orders When a null/undefined value is observed, it indicates it does not apply.
TrailingStopPx stringOptional
Current trailing stop price computed by the trailing strategy When a null/undefined value is observed, it indicates it does not apply.
TrailingWatermarkPx stringOptional
Trailing watermark price for trailing orders When a null/undefined value is observed, it indicates it does not apply.
TrailingWatermarkTs TimeOptional
Trailing watermark timestamp for trailing orders When a null/undefined value is observed, it indicates it does not apply.
UnderlyingInstrumentID stringOptional
Instrument ID of the option’s underlying instrument. Populated only for
options orders. A null means one of two things: the order is not an
option, so the field does not apply; or the order is an option whose
underlier has not yet been resolved.
When a null/undefined value is observed, it indicates it does not apply.
InstrumentType SecurityType
OrderType OrderType
Side Side
Status OrderStatus
TimeInForce TimeInForce
AverageFillPrice stringOptional
Average fill price across all executions When a null/undefined value is observed, it indicates that there is no available data.
ExpiresAt TimeOptional
Timestamp when the order will expire (UTC). Present when time_in_force is GOOD_TILL_DATE. When a null/undefined value is observed, it indicates it does not apply.
LimitOffset stringOptional
Limit offset for trailing stop-limit orders (signed) When a null/undefined value is observed, it indicates it does not apply.
LimitPrice stringOptional
Limit price (for LIMIT and STOP_LIMIT orders) When a null/undefined value is observed, it indicates it does not apply.
ReleasesAt TimeOptional
Scheduled release time for orders awaiting release. When a null/undefined value is observed, it indicates it does not apply.
StopPrice stringOptional
Stop price (for STOP and STOP_LIMIT orders) When a null/undefined value is observed, it indicates it does not apply.
TrailingLimitPx stringOptional
Current trailing limit price computed by the trailing strategy When a null/undefined value is observed, it indicates it does not apply.
TrailingOffset stringOptional
Trailing offset amount for trailing orders When a null/undefined value is observed, it indicates it does not apply.
TrailingStopPx stringOptional
Current trailing stop price computed by the trailing strategy When a null/undefined value is observed, it indicates it does not apply.
TrailingWatermarkPx stringOptional
Trailing watermark price for trailing orders When a null/undefined value is observed, it indicates it does not apply.
TrailingWatermarkTs TimeOptional
Trailing watermark timestamp for trailing orders When a null/undefined value is observed, it indicates it does not apply.
UnderlyingInstrumentID stringOptional
Instrument ID of the option’s underlying instrument. Populated only for
options orders. A null means one of two things: the order is not an
option, so the field does not apply; or the order is an option whose
underlier has not yet been resolved.
When a null/undefined value is observed, it indicates it does not apply.