Account Information

List account recent orders (last 24 hours only)

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

A lightweight endpoint that returns a list of orders executed in the last 24 hours in the specified account. This endpoint is realtime and can be used to quickly check if account state has recently changed due to an execution, or check status of recently placed orders Differs from /orders in that it is realtime, and only checks the last 24 hours as opposed to the last 30 days By default only returns executed orders, but that can be changed by setting only_executed to false Please contact support for access as this endpoint is not enabled by default.

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.

only_executedboolean

Defaults to true. Indicates if request should fetch only executed orders. Set to false to retrieve non executed orders as well

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

Response fields

object

List of orders executed within the last 24 hours

ordersarray of objects

List of orders executed in the last 24 hours

1
{
2
"orders": [
3
{
4
"brokerage_order_id": "66a033fa-da74-4fcf-b527-feefdec9257e",
5
"status": "NONE",
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
"figi_code": "BBG000B9XRY4",
33
"figi_instrument": {
34
"figi_code": "BBG000B9Y5X2",
35
"figi_share_class": "BBG001S5N8V8"
36
},
37
"currencies": [
38
{
39
"id": "87b24961-b51e-4db8-9226-f198f6518a89",
40
"code": "USD",
41
"name": "US Dollar"
42
}
43
]
44
},
45
"option_symbol": {
46
"id": "2bcd7cc3-e922-4976-bce1-9858296801c3",
47
"ticker": "AAPL 261218C00240000",
48
"option_type": "CALL",
49
"strike_price": 240,
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
"figi_code": "BBG000B9XRY4",
80
"figi_instrument": {
81
"figi_code": "BBG000B9Y5X2",
82
"figi_share_class": "BBG001S5N8V8"
83
},
84
"currencies": [
85
{
86
"id": "87b24961-b51e-4db8-9226-f198f6518a89",
87
"code": "USD",
88
"name": "US Dollar"
89
}
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
"symbol": "2bcd7cc3-e922-4976-bce1-9858296801c3"
108
}
109
]
110
}