Options

List account option positions

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

Returns a list of option positions in the specified account. For stock/ETF/crypto/mutual fund positions, please use the positions endpoint.

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.

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

Response fields

array of objects
object

Describes a single option position in an account.

1
[
2
{
3
"symbol": {
4
"id": "2bcd7cc3-e922-4976-bce1-9858296801c3",
5
"description": "SPY CALL 7/17 200",
6
"option_symbol": {
7
"id": "2bcd7cc3-e922-4976-bce1-9858296801c3",
8
"ticker": "AAPL 261218C00240000",
9
"option_type": "CALL",
10
"strike_price": 240,
11
"expiration_date": "2026-12-18",
12
"is_mini_option": false,
13
"underlying_symbol": {
14
"id": "2bcd7cc3-e922-4976-bce1-9858296801c3",
15
"symbol": "SPY",
16
"raw_symbol": "VAB",
17
"description": "SPDR S&P 500 ETF Trust",
18
"currency": {
19
"id": "87b24961-b51e-4db8-9226-f198f6518a89",
20
"code": "USD",
21
"name": "US Dollar"
22
},
23
"exchange": {
24
"id": "2bcd7cc3-e922-4976-bce1-9858296801c3",
25
"code": "ARCX",
26
"mic_code": "ARCA",
27
"name": "NYSE ARCA",
28
"timezone": "America/New_York",
29
"start_time": "09:30:00",
30
"close_time": "16:00:00",
31
"suffix": "None",
32
"allows_cryptocurrency_symbols": false
33
},
34
"type": {
35
"id": "2bcd7cc3-e922-4976-bce1-9858296801c3",
36
"code": "cs",
37
"description": "Common Stock",
38
"is_supported": true
39
},
40
"currencies": [
41
{
42
"id": "87b24961-b51e-4db8-9226-f198f6518a89",
43
"code": "USD",
44
"name": "US Dollar"
45
}
46
],
47
"figi_code": "BBG000B9XRY4",
48
"figi_instrument": {
49
"figi_code": "BBG000B9Y5X2",
50
"figi_share_class": "BBG001S5N8V8"
51
}
52
}
53
}
54
},
55
"price": 38.4,
56
"units": -50,
57
"currency": {
58
"id": "87b24961-b51e-4db8-9226-f198f6518a89",
59
"code": "USD",
60
"name": "US Dollar"
61
},
62
"average_purchase_price": 4126
63
}
64
]