latestSwagger 2.02026-08-12187723.0 MB

c4a12725cdb5

currencies

Exchange rate

The exchange rate endpoint provides real-time exchange rates for specified currency pairs, including both forex and cryptocurrency. It returns the current exchange rate value between two currencies, allowing users to quickly access up-to-date conversion rates for financial transactions or market analysis.

get/exchange_rate

Query parameters

symbolstring required

The currency pair you want to request can be either forex or cryptocurrency. Slash(/) delimiter is used. E.g. EUR/USD or BTC/ETH will be correct

datestring

If not null, will use exchange rate from a specific date or time. Format 2006-01-02 or 2006-01-02T15:04:05. Is set in the local exchange time zone, use timezone parameter to specify a specific time zone

format'JSON' | 'CSV'

Value can be JSON or CSV. Default JSON

delimiterstring

Specify the delimiter used when downloading the CSV file. Default semicolon ;

dpinteger

The number of decimal places for the data

timezonestring

Timezone at which output datetime will be displayed. Supports:

<ul> <li>1. <code>Exchange</code> for local exchange time</li> <li>2. <code>UTC</code> for datetime at universal UTC standard</li> <li>3. Timezone name according to the IANA Time Zone Database. E.g. <code>America/New_York</code>, <code>Asia/Singapore</code>. Full list of timezones can be found <a href="https://en.wikipedia.org/wiki/List_of_tz_database_time_zones" target="blank">here</a>.</li> </ul> <i>Take note that the IANA Timezone name is case-sensitive</i>

Response

symbolstring required

Requested currency symbol

ratenumber double required

Real-time exchange rate for the corresponding symbol

timestampinteger required

Unix timestamp of the rate

Example response

{
  "symbol": "USD/JPY",
  "rate": 105.12,
  "timestamp": 1602714051
}