Operation currency_rates

Getting currency exchange rates.

Query parameters

ParameterValue
operationcurrency_rates
login<Username>
token<TOKEN>. Obtained after invoking get_token.
encrypted_passwordEncrypted 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.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