Rate methods
Rate object
Name | Type | Description |
---|---|---|
| string | The base currency. |
| string | The quote currency. |
| string | The current bid price. |
| string | The current ask price. |
| number | The currency precision, that is the number of digits after the decimal separator, for the |
| string | The date and time when a rate was received. |
| string | The date and time of rate expiration. |
Rate object example
Get rates
Request
GET
[base]/rates/
Rates can be filtered by the left
and right
parameters according to the JSON API Specification. For example, the response body will only contain the rates with the BTC base currency: /rates?filter[left]=BTC
. You can specify more than one currency, for example, the response body will contain the rates with the BTC and USDT base currencies: /rates?filter[left]=BTC,USDT
.
Request example
Response
In case of success, the response body contains an array of rate objects.
Response codes
HTTP code | Application code | Description | Suggested action |
---|---|---|---|
| — | The request succeeded. | — |
| — | bad request. | — |
| — | Internal server error. | Try again later. |
| — | Bad gateway. | Try again later. |
| — | Service unavailable. | Try again later. |
| — | Gateway timeout. | Try again later. |
| — | Other server errors. | Try again later. |
Last updated