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

Name
Value

Content-Type

application/vnd.api+json

Authorization

Bearer <api_token>

Query parameters

Name
Type
Description

sell_currency_code

string

buy_currency_code

string

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