logo
Account Information

List account recent orders

get
https://api.snaptrade.com/api/v1/accounts/{accountId}/orders

Returns a list of recent orders in the specified account.

The data returned here is cached. How long the data is cached for varies by brokerage. Check the brokerage integrations doc and look for "Cache Expiry Time" to see the exact value for a specific brokerage. If you need real-time data, please use the manual refresh endpoint.

Execute an API Request

Path
accountIdstring (format: uuid)required

Unique identifier for the connected brokerage account. This is the UUID used to reference the account in SnapTrade.

Query
userIdstringrequired

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.

userSecretstringrequired

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.

statestring

defaults value is set to "all"

daysinteger (format: int32)

Number of days in the past to fetch the most recent orders. Defaults to the last 30 days if no value is passed in.

Authorization
Request
Installation
$
npm install snaptrade-typescript-sdk
1
Loading...

Response fields

array of objects
object

Describes a single recent order in an account. Each record here represents a single order leg. For multi-leg orders, there will be multiple records.

1
[
2
{
3
"brokerage_order_id": "66a033fa-da74-4fcf-b527-feefdec9257e",
4
"status": "NONE",
5
"symbol": "2bcd7cc3-e922-4976-bce1-9858296801c3",
6
"universal_symbol": {
7
"id": "2bcd7cc3-e922-4976-bce1-9858296801c3",
8
"symbol": "VAB.TO",
9
"raw_symbol": "VAB",
10
"description": "VANGUARD CDN AGGREGATE BOND INDEX ETF",
11
"currency": {
12
"id": "87b24961-b51e-4db8-9226-f198f6518a89",
13
"code": "USD",
14
"name": "US Dollar"
15
},
16
"exchange": {
17
"id": "2bcd7cc3-e922-4976-bce1-9858296801c3",
18
"code": "TSX",
19
"mic_code": "XTSE",
20
"name": "Toronto Stock Exchange",
21
"timezone": "America/New_York",
22
"start_time": "09:30:00",
23
"close_time": "16:00:00",
24
"suffix": ".TO"
25
},
26
"type": {
27
"id": "2bcd7cc3-e922-4976-bce1-9858296801c3",
28
"code": "cs",
29
"description": "Common Stock",
30
"is_supported": true
31
},
32
"currencies": [
33
{
34
"id": "87b24961-b51e-4db8-9226-f198f6518a89",
35
"code": "USD",
36
"name": "US Dollar"
37
}
38
],
39
"figi_code": "BBG000B9XRY4",
40
"figi_instrument": {
41
"figi_code": "BBG000B9Y5X2",
42
"figi_share_class": "BBG001S5N8V8"
43
}
44
},
45
"option_symbol": {
46
"id": "2bcd7cc3-e922-4976-bce1-9858296801c3",
47
"ticker": "SPY 220819P00200000",
48
"option_type": "CALL",
49
"strike_price": 200,
50
"expiration_date": "2026-12-18",
51
"is_mini_option": false,
52
"underlying_symbol": {
53
"id": "2bcd7cc3-e922-4976-bce1-9858296801c3",
54
"symbol": "SPY",
55
"raw_symbol": "VAB",
56
"description": "SPDR S&P 500 ETF Trust",
57
"currency": {
58
"id": "87b24961-b51e-4db8-9226-f198f6518a89",
59
"code": "USD",
60
"name": "US Dollar"
61
},
62
"exchange": {
63
"id": "2bcd7cc3-e922-4976-bce1-9858296801c3",
64
"code": "ARCX",
65
"mic_code": "ARCA",
66
"name": "NYSE ARCA",
67
"timezone": "America/New_York",
68
"start_time": "09:30:00",
69
"close_time": "16:00:00",
70
"suffix": "None",
71
"allows_cryptocurrency_symbols": false
72
},
73
"type": {
74
"id": "2bcd7cc3-e922-4976-bce1-9858296801c3",
75
"code": "cs",
76
"description": "Common Stock",
77
"is_supported": true
78
},
79
"currencies": [
80
{
81
"id": "87b24961-b51e-4db8-9226-f198f6518a89",
82
"code": "USD",
83
"name": "US Dollar"
84
}
85
],
86
"figi_code": "BBG000B9XRY4",
87
"figi_instrument": {
88
"figi_code": "BBG000B9Y5X2",
89
"figi_share_class": "BBG001S5N8V8"
90
}
91
}
92
},
93
"action": "string",
94
"total_quantity": 100,
95
"open_quantity": 10,
96
"canceled_quantity": 10,
97
"filled_quantity": 80,
98
"execution_price": 12.34,
99
"limit_price": 12.34,
100
"stop_price": 12.5,
101
"order_type": "Market",
102
"time_in_force": "string",
103
"time_placed": "2024-07-30T22:51:49.746Z",
104
"time_updated": "2024-08-05T00:05:57.409Z",
105
"time_executed": "2024-08-05T00:05:57.409Z",
106
"expiry_date": "2024-08-05T00:05:57.409Z"
107
}
108
]