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.
Route
/exchange_rateAPI credits cost
1 per symbol
✱ symbol
stringThe 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
Example:
EUR/USD
date
stringIf 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
Example:
2006-01-02T15:04:05
format
stringValue can be JSON or CSV. Default JSON
Supports: JSON, CSV
Default:
JSON
delimiter
stringSpecify the delimiter used when downloading the CSV file. Default semicolon ;
Default:
;
dp
integerThe number of decimal places for the data
Default:
5
timezone
stringTimezone at which output datetime will be displayed. Supports:
Exchange for local exchange timeUTC for datetime at universal UTC standardAmerica/New_York, Asia/Singapore. Full list of timezones can be found here.
Example:
UTC
Response
{
"symbol": "USD/JPY",
"rate": 105.12,
"timestamp": 1602714051
}
The currency conversion endpoint provides real-time exchange rates and calculates the converted amount for specified currency pairs, including both forex and cryptocurrencies. This endpoint is useful for obtaining up-to-date conversion values between two currencies, facilitating tasks such as financial reporting, e-commerce transactions, and travel budgeting.
Route
/currency_conversionAPI credits cost
1 per symbol
✱ symbol
stringThe 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
Example:
EUR/USD
✱ amount
doubleAmount of base currency to be converted into quote currency. Supports values in the range from 0 and above
Example:
100
date
stringIf 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
Example:
2006-01-02T15:04:05
format
stringValue can be JSON or CSV. Default JSON
Supports: JSON, CSV
Default:
JSON
delimiter
stringSpecify the delimiter used when downloading the CSV file. Default semicolon ;
Default:
;
dp
integerThe number of decimal places for the data
Default:
5
timezone
stringTimezone at which output datetime will be displayed. Supports:
Exchange for local exchange timeUTC for datetime at universal UTC standardAmerica/New_York, Asia/Singapore. Full list of timezones can be found here.
Example:
UTC
Request example
Response
{
"symbol": "USD/JPY",
"rate": 105.12,
"amount": 12824.64,
"timestamp": 1602714051
}