Response fields
brokerage_order_idstringOrder ID returned by brokerage. This is the unique identifier for the order in the brokerage system.
statusstringIndicates the status of an order. SnapTrade does a best effort to map brokerage statuses to statuses in this enum.
order_typeobjectThe order type and the prices that belong to it. Use kind to determine which fields are present.
time_in_forcestringHow long the order remains active. Brokerage values that cannot be mapped to this list are returned as OTHER.
DAY- valid only for the trading day on which it is placed.GTC- Good Til Canceled.FOK- Fill Or Kill.IOC- Immediate Or Cancel.GTD- Good Til Date; seeexpiry_date.MOO- Market On Open.EHP- Extended Hours P.M.EHA- Extended Hours A.M.OTHER- the brokerage reported a value outside this list.
expiry_datestring (format: date-time) or nullWhen the order expires, for orders with a time_in_force of GTD.
priced_inobject or nullThe asset the order prices (execution_price and the prices inside order_type) are denominated in. Use kind to determine which schema is present.
cash- a fiat currency identified by its ISO-4217 code. This is the case for equities, options, futures, forex and crypto pairs quoted in fiat (for exampleUSDforBTC-USD).crypto- a crypto asset, for crypto pairs quoted in another crypto asset, including stablecoins (for exampleUSDCforETH-USDCorBTCforETH-BTC).nullwhen the quote asset could not be determined.
price_effectstring or nullDirection of the net order price. CREDIT means cash is received, DEBIT means cash is paid, EVEN means the net price is zero, and UNKNOWN means the direction could not be determined.
Null when not applicable, for example for orders containing an outright futures leg (instrument.kind of future). A futures price is a contract quote, not an upfront cash flow. Futures options retain their price effect.
total_quantitystring (format: decimal) or nullTotal quantity requested. For multi-leg orders this is the number of spreads, not the sum of leg quantities.
filled_quantitystring (format: decimal) or nullQuantity filled so far.
canceled_quantitystring (format: decimal) or nullQuantity canceled.
open_quantitystring (format: decimal) or nullQuantity still open (not yet filled or canceled).
execution_pricestring (format: decimal) or nullAverage execution price. Per unit for single-leg orders; net price per spread for multi-leg orders.
time_placedstring (format: date-time) or nullThe time the order was submitted to the brokerage, when the brokerage reports it.
time_updatedstring (format: date-time) or nullThe time the order was last updated at the brokerage, when available.
time_executedstring (format: date-time) or nullThe time the order was executed, when available.
groupobject or nullSet when this order belongs to a complex order group (OCO, OTO, OTOCO). Null otherwise.
legsarray of objectsThe legs that make up the order. Always has at least one entry.