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);
Authorization<token>API key. Send it in the Authorization header. X-CoinAPI-Key, X-APIBricks-Key and X-APIKey are also accepted.
asset_id_base*stringRequested exchange rates base asset identifier (from the Metadata -> Assets)
filter_asset_id?stringComma or semicolon delimited asset identifiers used to filter response (optional)
invert?booleanTrue will invert all the rates (optional, if true then rates will be calculated as rate = 1 / actual_rate eg. USD/BTC as BTC/USD)
falsesuccessful operation
- response
Represents exchange rates for a specific base asset.
asset_id_base?|Gets or sets the base asset ID.
rates?array<>|Gets or sets the list of exchange rates.
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 } ]}