🔗 REST API - Real-timeExchange Rates

Get all current rates

Get the current exchange rate between requested asset and all other assets.

If you are using an exchange rate for mission-critical operations, then for best reliability, you should measure the difference between current time and the time returned from the response to ensure that value of the difference between those meets your internal requirements.

You can invert the rates by using Y = 1 / X equation, for example BTC/USD = 1 / (USD/BTC);

GET
/v1/exchangerate/{asset_id_base}
Authorization<token>

API Key is required to access the endpoints

In: header

Path Parameters

asset_id_base*string

Requested exchange rates base asset identifier (from the Metadata -> Assets)

Query Parameters

filter_asset_id?string

Comma or semicolon delimited asset identifiers used to filter response (optional)

invert?boolean

True will invert all the rates (optional, if true then rates will be calculated as rate = 1 / actual_rate eg. USD/BTC as BTC/USD)

Defaultfalse

Response Body

curl -X GET "https://api-realtime.fx.finfeedapi.com/v1/exchangerate/string"
{
  "asset_id_base": "BTC",
  "rates": [
    {
      "time": "2017-08-09T14:31:37.0520000Z",
      "asset_id_quote": "USD",
      "rate": 3258.887541779804
    },
    {
      "time": "2017-08-09T14:31:36.7570000Z",
      "asset_id_quote": "EUR",
      "rate": 2782.5255080599272
    },
    {
      "time": "2017-08-09T14:31:36.7570000Z",
      "asset_id_quote": "CNY",
      "rate": 21756.295595926054
    },
    {
      "time": "2017-08-09T14:31:36.7570000Z",
      "asset_id_quote": "GBP",
      "rate": 2509.602420379958
    }
  ]
}
Service StatusGitHub SDK