Reading exchange rates

Read exchange rate

GET /api/public/v1/exchange/rate

This endpoint returns indicative mid-market exhange rate for a specified currency pair.

You cannot specify quantity as it is defaulted to 1.

Headers

NameValue

Content-Type

application/vnd.api+json

Authorization

Bearer <api_token>

Query parameters

NameTypeDescription

sell_currency_code

string

Currency code to sell. E.g. EUR. Refer to Supported currency pairs.

buy_currency_code

string

Currency code to buy. E.g. USDT. Refer to Supported currency pairs.

Response

{
  "data": {
    "id": "USDTEUR/1.0EUR",
    "type": "exchangeRates",
    "attributes": {
      "baseCurrencyCode": "USDT",
      "quoteCurrencyCode": "EUR",
      "direction": "buy",
      "price": "0.9392394",
      "quantity": "1.0"
    }
  },
  "meta": {},
  "jsonapi": {
    "version": "1.0"
  }
}

Last updated