Orders
Place, monitor, and manage trading orders.
Get Orders
Get Order By ID
Submit Orders
Replace Order
Cancel Open Order
Cancel All Open Orders
ModelsExpand Collapse
type NewOrderRequest struct{…}
Request to submit a new order (PlaceOrderRequest from spec)
InstrumentType SecurityType
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., “AAPL”).
For options, use the OSI symbol (e.g., “AAPL 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
ExpiresAt TimeOptional
Timestamp when the order will expire (UTC). Present when time_in_force is GOOD_TILL_DATE.
InstrumentType SecurityType
OrderType OrderType
Side Side
Status OrderStatus
TimeInForce TimeInForce
ExpiresAt TimeOptional
Timestamp when the order will expire (UTC). Present when time_in_force is GOOD_TILL_DATE.