Response fields
objectContains a standardized list of account orders in the V2 format.
ordersarray of objectsList of orders returned by the endpoint.
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. Possible values include:
- NONE
- PENDING
- ACCEPTED
- FAILED
- REJECTED
- CANCELED
- PARTIAL_CANCELED
- CANCEL_PENDING
- EXECUTED
- PARTIAL
- REPLACE_PENDING
- REPLACED
- EXPIRED
- QUEUED
- TRIGGERED
- ACTIVATED
order_typestring or nullThe type of order placed.
MARKETLIMITSTOPSTOP_LIMIT
time_in_forcestringThe Time in Force type for the order. This field indicates how long the order will remain active before it is executed or expires. We try our best to map brokerage time in force values to the following. When mapping fails, we will return the brokerage's time in force value.
DAY- Day. The order is valid only for the trading day on which it is placed.GTC- Good Til Canceled. The order is valid until it is executed or canceled.FOK- Fill Or Kill. The order must be executed in its entirety immediately or be canceled completely.IOC- Immediate Or Cancel. The order must be executed immediately. Any portion of the order that cannot be filled immediately will be canceled.GTD- Good Til Date. The order is valid until the specified date.MOO- Market On Open. The order is to be executed at the day's opening price.EHP- Extended Hours P.M. The order is to be placed during extended hour trading, after markets close.
time_placedstring (format: date-time)The time the order was placed. This is the time the order was submitted to the brokerage.
time_executedstring (format: date-time) or nullThe time the order was executed in the brokerage system. This value is not always available from the brokerage.
quote_currencystringQuote currency code for the order.
execution_pricenumber or nullThe price at which the order was executed.
limit_pricenumber or nullThe limit price is maximum price one is willing to pay for a buy order or the minimum price one is willing to accept for a sell order. Should only apply to Limit and StopLimit orders.
stop_pricenumber or nullThe stop price is the price at which a stop order is triggered. Should only apply to Stop and StopLimit orders.
legsarray of objectsList of legs that make up the order.
leg_idstring or nullBrokerage order identifier for this leg, if available.
instrumentobjectInstrument metadata for an order leg.
symbolstringThe symbol or ticker for the security.
descriptionstringHuman-readable description of the security.
asset_typestringType of instrument for the leg.
- EQUITY
- OPTION
- CRYPTO
exchange_mic_codestringMarket Identifier Code (MIC) for the exchange on which the instrument trades.
figi_codestring or nullFinancial Instrument Global Identifier (FIGI) if available.
actionstringThe action describes the intent or side of a trade.
- BUY
- SELL
- BUY_COVER
- SELL_SHORT
- BUY_TO_OPEN
- BUY_TO_CLOSE
- SELL_TO_OPEN
- SELL_TO_CLOSE
execution_pricenumber or nullExecution price for this leg, if available.
total_quantitystring or nullThe total number of shares or contracts associated with this leg. Can be a decimal number for fractional shares.
canceled_quantitystring or nullThe number of shares or contracts that have been canceled for this leg.
filled_quantitystring or nullThe number of shares or contracts that have been filled for this leg.
statusstring or nullIndicates the status of an order. SnapTrade does a best effort to map brokerage statuses to statuses in this enum.
1{2"orders": [3{4"brokerage_order_id": "66a033fa-da74-4fcf-b527-feefdec9257e",5"status": "NONE",6"order_type": "MARKET",7"time_in_force": "DAY",8"time_placed": "2024-07-30T22:51:49.746Z",9"time_executed": "2024-08-05T00:05:57.409Z",10"quote_currency": "USD",11"execution_price": 12.34,12"limit_price": 12.34,13"stop_price": 12.5,14"legs": [15{16"leg_id": "string",17"instrument": {18"symbol": "AAPL",19"description": "Apple Inc.",20"asset_type": "EQUITY",21"exchange_mic_code": "XNAS",22"figi_code": "BBG000B9XRY4"23},24"action": "string",25"execution_price": 12.34,26"total_quantity": "10",27"canceled_quantity": "1",28"filled_quantity": "9",29"status": "PENDING"30}31]32}33]34}