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.
Path Parameters
- asset_id_base string required
Requested exchange rate base asset identifier (from the Metadata -> Assets)
- asset_id_quote string required
Requested exchange rate quote asset identifier (from the Metadata -> Assets)
Query Parameters
- time string
Time at which exchange rate is calculated (optional, if not supplied then current rate is returned)
- 200
successful operation
- text/plain
- application/json
- text/json
- application/x-msgpack
- Schema
- Example (from schema)
- Example response
Schema
- time date-time
Gets or sets the time of the exchange rate.
- asset_id_base string nullable
Gets or sets the base asset ID of the exchange rate.
- asset_id_quote string nullable
Gets or sets the quote asset ID of the exchange rate.
- rate double
Gets or sets the exchange rate value.
src_side_base object[] nullable
Gets or sets the VWAP24 reference rates for the base asset.
Array [time date-timeasset string nullablerate doublevolume double]src_side_quote object[] nullable
Gets or sets the VWAP24 reference rates for the quote asset.
Array [time date-timeasset string nullablerate doublevolume double]
{
"time": "2024-04-24T17:11:55.801Z",
"asset_id_base": "string",
"asset_id_quote": "string",
"rate": 0,
"src_side_base": [
{
"time": "2024-04-24T17:11:55.801Z",
"asset": "string",
"rate": 0,
"volume": 0
}
],
"src_side_quote": [
{
"time": "2024-04-24T17:11:55.801Z",
"asset": "string",
"rate": 0,
"volume": 0
}
]
}
{
"time": "2024-04-17T11:55:52.3953910Z",
"asset_id_base": "BTC",
"asset_id_quote": "USD",
"rate": 10000
}
- Schema
- Example (from schema)
- Example response
Schema
- time date-time
Gets or sets the time of the exchange rate.
- asset_id_base string nullable
Gets or sets the base asset ID of the exchange rate.
- asset_id_quote string nullable
Gets or sets the quote asset ID of the exchange rate.
- rate double
Gets or sets the exchange rate value.
src_side_base object[] nullable
Gets or sets the VWAP24 reference rates for the base asset.
Array [time date-timeasset string nullablerate doublevolume double]src_side_quote object[] nullable
Gets or sets the VWAP24 reference rates for the quote asset.
Array [time date-timeasset string nullablerate doublevolume double]
{
"time": "2024-04-24T17:11:55.801Z",
"asset_id_base": "string",
"asset_id_quote": "string",
"rate": 0,
"src_side_base": [
{
"time": "2024-04-24T17:11:55.801Z",
"asset": "string",
"rate": 0,
"volume": 0
}
],
"src_side_quote": [
{
"time": "2024-04-24T17:11:55.801Z",
"asset": "string",
"rate": 0,
"volume": 0
}
]
}
{
"time": "2024-04-17T11:55:52.3953910Z",
"asset_id_base": "BTC",
"asset_id_quote": "USD",
"rate": 10000
}
- Schema
- Example (from schema)
- Example response
Schema
- time date-time
Gets or sets the time of the exchange rate.
- asset_id_base string nullable
Gets or sets the base asset ID of the exchange rate.
- asset_id_quote string nullable
Gets or sets the quote asset ID of the exchange rate.
- rate double
Gets or sets the exchange rate value.
src_side_base object[] nullable
Gets or sets the VWAP24 reference rates for the base asset.
Array [time date-timeasset string nullablerate doublevolume double]src_side_quote object[] nullable
Gets or sets the VWAP24 reference rates for the quote asset.
Array [time date-timeasset string nullablerate doublevolume double]
{
"time": "2024-04-24T17:11:55.802Z",
"asset_id_base": "string",
"asset_id_quote": "string",
"rate": 0,
"src_side_base": [
{
"time": "2024-04-24T17:11:55.802Z",
"asset": "string",
"rate": 0,
"volume": 0
}
],
"src_side_quote": [
{
"time": "2024-04-24T17:11:55.802Z",
"asset": "string",
"rate": 0,
"volume": 0
}
]
}
{
"time": "2024-04-17T11:55:52.3953910Z",
"asset_id_base": "BTC",
"asset_id_quote": "USD",
"rate": 10000
}
- Schema
- Example (from schema)
- Example response
Schema
- time date-time
Gets or sets the time of the exchange rate.
- asset_id_base string nullable
Gets or sets the base asset ID of the exchange rate.
- asset_id_quote string nullable
Gets or sets the quote asset ID of the exchange rate.
- rate double
Gets or sets the exchange rate value.
src_side_base object[] nullable
Gets or sets the VWAP24 reference rates for the base asset.
Array [time date-timeasset string nullablerate doublevolume double]src_side_quote object[] nullable
Gets or sets the VWAP24 reference rates for the quote asset.
Array [time date-timeasset string nullablerate doublevolume double]
{
"time": "2024-04-24T17:11:55.802Z",
"asset_id_base": "string",
"asset_id_quote": "string",
"rate": 0,
"src_side_base": [
{
"time": "2024-04-24T17:11:55.802Z",
"asset": "string",
"rate": 0,
"volume": 0
}
],
"src_side_quote": [
{
"time": "2024-04-24T17:11:55.802Z",
"asset": "string",
"rate": 0,
"volume": 0
}
]
}
{
"time": "2024-04-17T11:55:52.3953910Z",
"asset_id_base": "BTC",
"asset_id_quote": "USD",
"rate": 10000
}