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);
API Key is required to access the endpoints
In: header
Path Parameters
Requested exchange rates base asset identifier (from the Metadata -> Assets)
Query Parameters
Comma or semicolon delimited asset identifiers used to filter response (optional)
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)
falseResponse 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
}
]
}