Get specific rate
GET/v1/exchangerate/:asset_id_base/:asset_id_quote
Retrieves the exchange rate for a specific base and quote asset at a given time or the current rate.
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.
Request
Path Parameters
Requested exchange rate base asset identifier (from the Metadata -> Assets)
Requested exchange rate quote asset identifier (from the Metadata -> Assets)
Query Parameters
Time at which exchange rate is calculated (optional, if not supplied then current rate is returned)
Responses
- 200
successful operation
- text/plain
- application/json
- text/json
- application/x-msgpack
- Schema
- Example (from schema)
- Example response
Schema
Gets or sets the time of the exchange rate.
Gets or sets the base asset ID of the exchange rate.
Gets or sets the quote asset ID of the exchange rate.
Gets or sets the exchange rate value.
{
"time": "2024-11-26T19:36:39.531Z",
"asset_id_base": "string",
"asset_id_quote": "string",
"rate": 0
}
{
"time": "2024-11-26T16:00:52.5532159Z",
"asset_id_base": "BTC",
"asset_id_quote": "USD",
"rate": 10000
}
- Schema
- Example (from schema)
- Example response
Schema
Gets or sets the time of the exchange rate.
Gets or sets the base asset ID of the exchange rate.
Gets or sets the quote asset ID of the exchange rate.
Gets or sets the exchange rate value.
{
"time": "2024-11-26T19:36:39.531Z",
"asset_id_base": "string",
"asset_id_quote": "string",
"rate": 0
}
{
"time": "2024-11-26T16:00:52.5532159Z",
"asset_id_base": "BTC",
"asset_id_quote": "USD",
"rate": 10000
}
- Schema
- Example (from schema)
- Example response
Schema
Gets or sets the time of the exchange rate.
Gets or sets the base asset ID of the exchange rate.
Gets or sets the quote asset ID of the exchange rate.
Gets or sets the exchange rate value.
{
"time": "2024-11-26T19:36:39.532Z",
"asset_id_base": "string",
"asset_id_quote": "string",
"rate": 0
}
{
"time": "2024-11-26T16:00:52.5532159Z",
"asset_id_base": "BTC",
"asset_id_quote": "USD",
"rate": 10000
}
- Schema
- Example (from schema)
- Example response
Schema
Gets or sets the time of the exchange rate.
Gets or sets the base asset ID of the exchange rate.
Gets or sets the quote asset ID of the exchange rate.
Gets or sets the exchange rate value.
{
"time": "2024-11-26T19:36:39.532Z",
"asset_id_base": "string",
"asset_id_quote": "string",
"rate": 0
}
{
"time": "2024-11-26T16:00:52.5532159Z",
"asset_id_base": "BTC",
"asset_id_quote": "USD",
"rate": 10000
}