Операция currency_rates
Операция получения обменных курсов.
Параметры запроса
| Параметр | Значение |
|---|---|
| operation | currency_rates |
| login | <Имя пользователя> |
| token | <TOKEN>. Получен при вызове get_token. |
| encrypted_password | Зашифрованный пароль. Получен в результате RSA шифрования пароля пользователя при помощи публичной экспоненты и модуля, полученных при вызове операции get_token. |
Примеры ответов
JSON (рекомендуемый, установите x-response-format=json)
{
"code": 0,
"message": "",
"data": {
"rates": {
"buy": [
{
"target": "EUR",
"amount": 1.1,
"amountCur": "USD"
},
{
"target": "BTC",
"amount": 3520.33,
"amountCur": "USD"
},
{
"target": "BTC",
"amount": 2998.06,
"amountCur": "EUR"
},
{
"target": "BTC",
"amount": 233035.62,
"amountCur": "RUR"
},
{
"target": "USD",
"amount": 66.19,
"amountCur": "RUR"
},
{
"target": "EUR",
"amount": 75.06,
"amountCur": "RUR"
}
],
"sell": [
{
"target": "EUR",
"amount": 1.17,
"amountCur": "USD"
},
{
"target": "BTC",
"amount": 3861.6,
"amountCur": "USD"
},
{
"target": "BTC",
"amount": 3073.04,
"amountCur": "EUR"
},
{
"target": "BTC",
"amount": 238663.48,
"amountCur": "RUR"
},
{
"target": "USD",
"amount": 67.86,
"amountCur": "RUR"
},
{
"target": "EUR",
"amount": 78.85,
"amountCur": "RUR"
}
],
"uahSell": [
{
"targetAmount": 100,
"target": "USD",
"amount": "2765.00",
"amountCur": "UAH"
},
{
"targetAmount": 100,
"target": "EUR",
"amount": "3060.02",
"amountCur": "UAH"
},
{
"targetAmount": 100,
"target": "RUR",
"amount": "40.64",
"amountCur": "UAH"
},
{
"targetAmount": 100,
"target": "BTC",
"amount": "9733719.9155",
"amountCur": "UAH"
}
]
}
}
}CSV
0;
buy;EUR;1.1;USD
buy;BTC;3520.33;USD
buy;BTC;2998.06;EUR
buy;BTC;233035.62;RUR
buy;USD;66.19;RUR
buy;EUR;75.06;RUR
sell;EUR;1.17;USD
sell;BTC;3861.6;USD
sell;BTC;3073.04;EUR
sell;BTC;238663.48;RUR
sell;USD;67.86;RUR
sell;EUR;78.85;RUR
uahSell;USD;2765.00;UAH
uahSell;EUR;3060.02;UAH
uahSell;RUR;40.64;UAH
uahSell;BTC;9733719.9155;UAH