Response fields
objectDescribes a single order in the standardized V2 format.
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.