WAPRO API v2
currencyRates.list
Kursy walut z paginacją keyset.
Nagłówki
HTTP
Authorization: Bearer rvn_api_TUTAJ_WPROWADZ_KLUCZ Content-Type: application/json
Request
json
{
"method": "currencyRates.list",
"limit": 100,
"after_id": 0,
"source_currency": "EUR",
"target_currency": "PLN"
}
Przykładowa odpowiedź
json
{
"ok": true,
"data": [
{
"rate_id": 11,
"source_currency": "EUR",
"target_currency": "PLN",
"buy_rate": 123.45,
"sell_rate": 123.45,
"average_rate": 123.45
}
],
"paging": {
"limit": 250,
"next_after_id": 465,
"has_more": false
},
"trace_id": "api_demo_001"
}
Najważniejsze pola odpowiedzi
data[].rate_iddata[].source_currencydata[].target_currencydata[].buy_ratedata[].sell_ratedata[].average_ratepaging