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
Array [
]
Array [
]
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.
src_side_base
object[]
nullable
Gets or sets the VWAP24 reference rates for the base asset.
src_side_quote
object[]
nullable
Gets or sets the VWAP24 reference rates for the quote asset.
{
"time": "2024-11-12T12:17:30.153Z",
"asset_id_base": "string",
"asset_id_quote": "string",
"rate": 0,
"src_side_base": [
{
"time": "2024-11-12T12:17:30.153Z",
"asset": "string",
"rate": 0,
"volume": 0
}
],
"src_side_quote": [
{
"time": "2024-11-12T12:17:30.154Z",
"asset": "string",
"rate": 0,
"volume": 0
}
]
}
{
"time": "2024-08-05T13:35:34.3741337Z",
"asset_id_base": "BTC",
"asset_id_quote": "USD",
"rate": 10000
}
- Schema
- Example (from schema)
- Example response
Schema
Array [
]
Array [
]
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.
src_side_base
object[]
nullable
Gets or sets the VWAP24 reference rates for the base asset.
src_side_quote
object[]
nullable
Gets or sets the VWAP24 reference rates for the quote asset.
{
"time": "2024-11-12T12:17:30.154Z",
"asset_id_base": "string",
"asset_id_quote": "string",
"rate": 0,
"src_side_base": [
{
"time": "2024-11-12T12:17:30.154Z",
"asset": "string",
"rate": 0,
"volume": 0
}
],
"src_side_quote": [
{
"time": "2024-11-12T12:17:30.154Z",
"asset": "string",
"rate": 0,
"volume": 0
}
]
}
{
"time": "2024-08-05T13:35:34.3741337Z",
"asset_id_base": "BTC",
"asset_id_quote": "USD",
"rate": 10000
}
- Schema
- Example (from schema)
- Example response
Schema
Array [
]
Array [
]
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.
src_side_base
object[]
nullable
Gets or sets the VWAP24 reference rates for the base asset.
src_side_quote
object[]
nullable
Gets or sets the VWAP24 reference rates for the quote asset.
{
"time": "2024-11-12T12:17:30.155Z",
"asset_id_base": "string",
"asset_id_quote": "string",
"rate": 0,
"src_side_base": [
{
"time": "2024-11-12T12:17:30.155Z",
"asset": "string",
"rate": 0,
"volume": 0
}
],
"src_side_quote": [
{
"time": "2024-11-12T12:17:30.155Z",
"asset": "string",
"rate": 0,
"volume": 0
}
]
}
{
"time": "2024-08-05T13:35:34.3741337Z",
"asset_id_base": "BTC",
"asset_id_quote": "USD",
"rate": 10000
}
- Schema
- Example (from schema)
- Example response
Schema
Array [
]
Array [
]
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.
src_side_base
object[]
nullable
Gets or sets the VWAP24 reference rates for the base asset.
src_side_quote
object[]
nullable
Gets or sets the VWAP24 reference rates for the quote asset.
{
"time": "2024-11-12T12:17:30.155Z",
"asset_id_base": "string",
"asset_id_quote": "string",
"rate": 0,
"src_side_base": [
{
"time": "2024-11-12T12:17:30.155Z",
"asset": "string",
"rate": 0,
"volume": 0
}
],
"src_side_quote": [
{
"time": "2024-11-12T12:17:30.155Z",
"asset": "string",
"rate": 0,
"volume": 0
}
]
}
{
"time": "2024-08-05T13:35:34.3741337Z",
"asset_id_base": "BTC",
"asset_id_quote": "USD",
"rate": 10000
}