Trading

Get symbol quotes

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

Returns quotes from the brokerage for the specified symbols and account. The quotes returned can be delayed depending on the brokerage the account belongs to. It is highly recommended that you use your own market data provider for real-time quotes instead of relying on this endpoint. This endpoint does not work for options quotes.

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.

symbolsstringrequired

List of Universal Symbol IDs or tickers to get quotes for.

use_tickerboolean

Should be set to True if symbols are comprised of tickers. Defaults to False if not provided.

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

Response fields

array of objects

List of symbols with the latest quotes from the brokerage.

object
1
[
2
{
3
"symbol": {
4
"id": "2bcd7cc3-e922-4976-bce1-9858296801c3",
5
"symbol": "VAB.TO",
6
"raw_symbol": "VAB",
7
"description": "VANGUARD CDN AGGREGATE BOND INDEX ETF",
8
"currency": {
9
"id": "87b24961-b51e-4db8-9226-f198f6518a89",
10
"code": "USD",
11
"name": "US Dollar"
12
},
13
"exchange": {
14
"id": "2bcd7cc3-e922-4976-bce1-9858296801c3",
15
"code": "TSX",
16
"mic_code": "XTSE",
17
"name": "Toronto Stock Exchange",
18
"timezone": "America/New_York",
19
"start_time": "09:30:00",
20
"close_time": "16:00:00",
21
"suffix": ".TO"
22
},
23
"type": {
24
"id": "2bcd7cc3-e922-4976-bce1-9858296801c3",
25
"code": "cs",
26
"description": "Common Stock",
27
"is_supported": true
28
},
29
"figi_code": "BBG000B9XRY4",
30
"figi_instrument": {
31
"figi_code": "BBG000B9Y5X2",
32
"figi_share_class": "BBG001S5N8V8"
33
},
34
"currencies": [
35
{
36
"id": "87b24961-b51e-4db8-9226-f198f6518a89",
37
"code": "USD",
38
"name": "US Dollar"
39
}
40
]
41
},
42
"last_trade_price": 8.74,
43
"bid_price": 8.43,
44
"ask_price": 8.43,
45
"bid_size": 260,
46
"ask_size": 344
47
}
48
]