Trading

Get cryptocurrency pair quote

get
https://api.snaptrade.com/api/v1/accounts/{accountId}/trading/instruments/cryptocurrencyPairs/{instrumentSymbol}/quote

Gets a quote for the specified account.

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.

instrumentSymbolstringrequired

Cryptocurrency pair instrument symbol

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

object
bidstring (format: decimal)

The highest price a buyer is willing to pay.

askstring (format: decimal)

The lowest price a seller is willing to accept.

midstring (format: decimal)

The market mid price.

timestampstring (format: date-time)

The timestamp of the quote.

1
{
2
"bid": "123.45",
3
"ask": "123.45",
4
"mid": "123.45",
5
"timestamp": "2024-01-24T15:00:00.000Z"
6
}