List exchange rates
curl --request GET \
--url https://staging.api.krypta-pay.com/v1/fx/ratesconst options = {method: 'GET'};
fetch('https://staging.api.krypta-pay.com/v1/fx/rates', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://staging.api.krypta-pay.com/v1/fx/rates"
response = requests.get(url)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://staging.api.krypta-pay.com/v1/fx/rates",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}{
"ok": true,
"data": {
"spreadBps": 123,
"generatedAt": "<string>",
"rates": [
{
"from": "XOF",
"to": "XOF",
"mid": "<string>",
"buy": "<string>",
"sell": "<string>",
"source": "<string>",
"validFrom": "<string>"
}
]
}
}{
"ok": false,
"error": {
"code": "rate_limited",
"message": "Rate limit exceeded, retry in 1 minute"
}
}FX
List exchange rates
Current mid, buy and sell rates for every supported pair. Public — no API key needed.
GET
/
v1
/
fx
/
rates
List exchange rates
curl --request GET \
--url https://staging.api.krypta-pay.com/v1/fx/ratesconst options = {method: 'GET'};
fetch('https://staging.api.krypta-pay.com/v1/fx/rates', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://staging.api.krypta-pay.com/v1/fx/rates"
response = requests.get(url)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://staging.api.krypta-pay.com/v1/fx/rates",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}{
"ok": true,
"data": {
"spreadBps": 123,
"generatedAt": "<string>",
"rates": [
{
"from": "XOF",
"to": "XOF",
"mid": "<string>",
"buy": "<string>",
"sell": "<string>",
"source": "<string>",
"validFrom": "<string>"
}
]
}
}{
"ok": false,
"error": {
"code": "rate_limited",
"message": "Rate limit exceeded, retry in 1 minute"
}
}⌘I
