logo
Reference Data

Get exchange rate of a currency pair

get
https://api.snaptrade.com/api/v1/currencies/rates/{currencyPair}

Returns an Exchange Rate Pair object for the specified Currency Pair.

Execute an API Request

Path
currencyPairstringrequired

A currency pair based on currency code for example, {CAD-USD}

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

Response fields

object

The exchange rate of a pair of currencies

srcobject

Currency

dstobject

Currency

exchange_ratenumber
1
{
2
"src": {
3
"id": "87b24961-b51e-4db8-9226-f198f6518a89",
4
"code": "USD",
5
"name": "US Dollar"
6
},
7
"dst": {
8
"id": "87b24961-b51e-4db8-9226-f198f6518a89",
9
"code": "USD",
10
"name": "US Dollar"
11
},
12
"exchange_rate": 1.32
13
}