Response fields
objectDescribes a single recent order in an account. Each record here represents a single order leg. For multi-leg orders, there will be multiple records.
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.
universal_symbolobjectContains information about the security that the order is for. This field is only present for stock/ETF/crypto/mutual fund orders. For option orders, this field will be null and the option_symbol field will be populated.
option_symbolobjectContains information about the option contract that the order is for. This field is only present for option orders. For stock/ETF/crypto/mutual fund orders, this field will be null and the universal_symbol field will be populated.
quote_universal_symbolobjectQuote cryptocurrency. This field is only present for cryptocurrency pair orders with a cryptocurrency as quote.
quote_currencyobjectQuote currency. This field is only present for cryptocurrency pair orders with a fiat currency as quote.
actionstringThe action describes the intent or side of a trade. This is usually BUY or SELL but can include other potential values like the following depending on the specific brokerage.
- BUY
- SELL
- BUY_COVER
- SELL_SHORT
- BUY_OPEN
- BUY_CLOSE
- SELL_OPEN
- SELL_CLOSE
total_quantitystring or nullThe total number of shares or contracts of the order. This should be the sum of the filled, canceled, and open quantities. Can be a decimal number for fractional shares.
open_quantitystring or nullThe number of shares or contracts that are still open (waiting for execution). Can be a decimal number for fractional shares.
canceled_quantitystring or nullThe number of shares or contracts that have been canceled. Can be a decimal number for fractional shares.
filled_quantitystring or nullThe number of shares or contracts that have been filled. Can be a decimal number for fractional shares.
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.
order_typestring or nullThe type of order placed. The most common values are Market, Limit, Stop, and StopLimit. We try our best to map brokerage order types to these values. When mapping fails, we will return the brokerage's order type value.
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_updatedstring (format: date-time) or nullThe time the order was last updated in the brokerage system. This value is not always available from 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.
expiry_datestring (format: date-time) or nullThe time the order expires. This value is not always available from the brokerage.
symbolstring (format: uuid)A unique ID for the security within SnapTrade, scoped to the brokerage account that the security belongs to. This is a legacy field and should not be used. Do not rely on this being a stable ID as it can change.
child_brokerage_order_idsobject or null