Skip to main content

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.

info

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

    asset_id_base stringrequired

    Requested exchange rate base asset identifier (from the Metadata -> Assets)

    asset_id_quote stringrequired

    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)

Responses

successful operation

Schema

    time date-time

    Gets or sets the time of the exchange rate.

    asset_id_base stringnullable

    Gets or sets the base asset ID of the exchange rate.

    asset_id_quote stringnullable

    Gets or sets the quote asset ID of the exchange rate.

    rate double

    Gets or sets the exchange rate value.

Loading...