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
class NewOrderRequest:
Request to submit a new order (PlaceOrderRequest from spec)
SecurityType instrumentType
RequestOrderType orderType
String quantity
Quantity to trade. For COMMON_STOCK: shares (may be fractional if supported). For OPTION (single-leg): contracts (must be an integer)
Side side
RequestTimeInForce timeInForce
Time in force
Optional<String> id
Optional client-provided unique ID (idempotency). Required to be unique per account.
Optional<LocalDateTime> expiresAt
The timestamp when the order should expire (UTC). Required when time_in_force is GOOD_TILL_DATE.
Optional<Boolean> extendedHours
Allow trading outside regular trading hours. Some brokers disallow options outside RTH.
Optional<String> symbol
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.
class Order:
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.
SecurityType instrumentType
OrderType orderType
Side side
OrderStatus status
Current status of the order
TimeInForce timeInForce
Time in force instruction
Optional<LocalDateTime> expiresAt
Timestamp when the order will expire (UTC). Present when time_in_force is GOOD_TILL_DATE.
Optional<LocalDateTime> releasesAt
Scheduled release time for orders awaiting release.