Operation currency_rates
Getting currency exchange rates.
Query parameters
Parameter | Value |
---|---|
operation | currency_rates |
login | <User name> |
token | <TOKEN>. Obtained after invoking get_token. |
encrypted_password | Encrypted password. It is obtained after user password RSA encryption with the use of a public exponent and the modulus obtained in invoking the get_token operation. |
Response examples
JSON (recommended format, please set x-response-format=json header)
{
"code": 0,
"message": "",
"data": {
"rates": {
"buy": [
{
"target": "EUR",
"amount": 1.1000000000000001,
"amountCur": "USD"
},
{
"target": "BTC",
"amount": 3520.3299999999999,
"amountCur": "USD"
},
{
"target": "BTC",
"amount": 2998.0599999999999,
"amountCur": "EUR"
},
{
"target": "BTC",
"amount": 233035.62,
"amountCur": "RUR"
},
{
"target": "USD",
"amount": 66.189999999999998,
"amountCur": "RUR"
},
{
"target": "EUR",
"amount": 75.060000000000002,
"amountCur": "RUR"
}
],
"sell": [
{
"target": "EUR",
"amount": 1.1699999999999999,
"amountCur": "USD"
},
{
"target": "BTC",
"amount": 3861.5999999999999,
"amountCur": "USD"
},
{
"target": "BTC",
"amount": 3073.04,
"amountCur": "EUR"
},
{
"target": "BTC",
"amount": 238663.48000000001,
"amountCur": "RUR"
},
{
"target": "USD",
"amount": 67.859999999999999,
"amountCur": "RUR"
},
{
"target": "EUR",
"amount": 78.849999999999994,
"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
API Capitalist