Retrieve Currency Rates
GET /currencies/rates
Returns a complete list of currency rates.
Headers
Name
Value
Content-Type
application/json
Response
[
{
"name": "USDTBEP20",
"rate": 1
},
...
{
"name": "BNB",
"rate": 672
}
...
]Examples
curl -X GET "https://api.nord-pay.com/currencies/rates" \
-H "Content-Type: application/json"import requests
def get_rates():
response = requests.get(
"https://api.nord-pay.com/currencies/rates",
headers={
"Content-Type": "application/json"
}
)
response.raise_for_status()
return response.json()
# usage:
rates = get_rates()<?php
function getRates(): array {
$ch = curl_init("https://api.nord-pay.com/currencies/rates");
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($ch);
curl_close($ch);
return json_decode($response, true);
}
// usage:
$rates = getRates();Last updated