List account orders v2
Returns a list of recent orders in the specified account.
The V2 order response format will include all legs of each order in the legs list field. If the order is single legged, legs will be a list of one leg.
If the connection has become disabled, it can no longer access the latest data from the brokerage, but will continue to return the last available cached state. Please see this guide on how to fix a disabled connection.
Path parameters
Unique identifier for the connected brokerage account. This is the UUID used to reference the account in SnapTrade.
Query parameters
SnapTrade User ID. This is chosen by the API partner and can be any string that is a) unique to the user, and b) immutable for the user. It is recommended to NOT use email addresses for this property because they are usually not immutable.
SnapTrade User Secret. This is a randomly generated string and should be stored securely. If compromised, please rotate it via the rotate user secret endpoint.
defaults to "all"
Number of days in the past to fetch the most recent orders. Defaults to the last 30 days if no value is passed in. Values greater than 90 will be capped at 90.
Response
OK
Example response
{
"orders": [
{
"brokerage_order_id": "66a033fa-da74-4fcf-b527-feefdec9257e",
"brokerage_group_order_id": "1234567890",
"order_role": "TRIGGER",
"order_type": "MARKET",
"time_in_force": "DAY",
"time_placed": "2024-07-30T22:51:49.746270Z",
"time_executed": "2024-08-05T00:05:57.409000Z",
"quote_currency": "USD",
"execution_price": "12.34",
"limit_price": "12.34",
"stop_price": "12.50",
"trailing_stop": {
"amount": "0.60"
},
"legs": [
{
"instrument": {
"symbol": "AAPL",
"description": "Apple Inc.",
"asset_type": "EQUITY",
"exchange_mic_code": "XNAS",
"figi_code": "BBG000B9XRY4"
},
"execution_price": "12.34",
"total_quantity": "10",
"canceled_quantity": "1",
"filled_quantity": "9"
}
]
}
]
}