mobirise.com

Documentation

CurrencyDataFeed.com API is a REST API that provides realtime exchange rates, historical exchange rates and conversion service between currencies for more than 100 currency pairs and precious metals.

Other than these 100+ currency pairs, we provide many other pairs. Check included symbols for details.

The API provides a JSON response to each query. Every user is provided with an API key which they have to use with every request. There are different methods for different requests. You can find detailed explanations about using the API below.

How API Requests Are Counted

Nearly all the data feed companies count each quote request as 1 API request. For example, if you make a single request that asks for multiple currencies like EUR/USD , USD/JPY, EUR/SEK, USD/RUB and GBP/USD , this counts 5 API requests but with CurrencyDataFeed.Com , to give you more opportunities and space , we count this example request as 1 API request. We count 1 API request for each 5 quotes.

Some Examples:

  • You made a single request to get 5 currency pairs. This counts as 1 API request.
  • You made a single requestI to get 9 currency pairs. This counts as 2 API requests.
  • You made a single request to get 45 currency pairs. This counrs as 9 API requests.
  • You made a single request to get 1 currency pair only. This counts as 1 API request.

For Source Currency requests , each 5 target currency counts as 1 API request.

Some Examples:

  • You set the source currency as NZD and set 5 target currencies. This counts as 1 API request.
  • You set the source currency as NZD and set 9 target currencies. This counts as 2 API request.
For historical and time range queries, every request for a single currency is counted as 1 API request. Only 1 currency pair may be requested for time range queries but you can ask for many currencies for a historical close price with a single call.

Some Examples:

  • You made a request to get the EUR/USD Close Value for 01/04/2017 , this counts as 1 API request.
  • You made a request to get the EUR/USD , USD/RUB and EUR/SEK Close Value for 01/04/2017 , this counts as 3 API requests.

For Currency Conversion queries, each request is counted as 1 API request.

Which Values Are Provided

The values provided vary according to subscribed plan. You can check all the plans here.

  • For historical values, we provide open,close,low and high values.
  • For time-range queries, we provide open,close,low and high values.
  • For classical currency requests, we provide last price,change number,change percent,ask,bid,daily low and daily high values.
  • For currency conversion, we convert the requested value between requested currencies and provide the converted result.
  • For source & target currency requests , we provide last price.
Which Currency Pairs and Metals Are Included

We provide more than 100 currency pairs and precious metals and also USD-Converted pairs described here.

For daily values like daily low,high,open and close, what is the server time

Our server time is GMT +3 Moscow Time.

API Usage

You can send any request easily to our API with http request. API will return a response with json. API usage examples are also available in the API page of your panel with more details.

Single Currency Requests :
API Url : https://currencydatafeed.com/api/data.php
Parameters:
token= ACCESS_TOKEN
currency= CURRENCY
Example:
https://currencydatafeed.com/api/data.php?token=YOUR_ACCESS_TOKEN&currency=EUR/USD

Multiple Currency Requests :
API Url : https://currencydatafeed.com/api/data.php
Parameters:
token= ACCESS_TOKEN
currency= CURRENCIES
Example:
https://currencydatafeed.com/api/data.php?token=YOUR_ACCESS_TOKEN&currency=EUR/USD+USD/JPY+EUR/NOK+AUD/USD+USD/SGD+USD/MXN+XAU/USD+GBP/CAD

Source Currency Switching :
Switching the source currency is an important feature as you can set a source currency and get values of the target currencies according to source currency. For example, if you set JPY as source currency and want to get USD,EUR,NOK,AUD,KRW,NZD , API will give you the values of target currencies for 1 JPY.
 API Url : https://currencydatafeed.com/api/source_currency.php
Parameters:
token= ACCESS_TOKEN
source= SOURCE CURRENCY
target= TARGET_CURRENCIES
Example:
https://currencydatafeed.com/api/source_currency.php?token=YOUR_ACCESS_TOKEN&source=AUD&target=USD+EUR+KRW+NZD+JPY

Currency Conversion Requests :
API Url : https://currencydatafeed.com/api/converter.php
Parameters:
token= ACCESS_TOKEN
from= CURRENCY
to= CURRENCY
amount= AMOUNT
Example:
https://currencydatafeed.com/api/converter.php?token=YOUR_ACCESS_TOKEN&from=EUR&to=AUD&amount=5500

Historical Data Requests ( Multiple Quotes Available ) :
API Url : https://currencydatafeed.com/api/historical.php
Parameters:
token= ACCESS_TOKEN
currency= CURRENCIES
date= DATE (YYYY-MM-DD)
Example:
https://currencydatafeed.com/api/historical.php?token=ACCESS_TOKEN&currency=EUR/USD+EUR/GBP&date=2016-11-20

Historical Time-Frame Requests :
API Url : https://currencydatafeed.com/api/timeframe.php
Parameters :
token= ACCESS_TOKEN
currency= CURRENCY
from= FROM_DATE (YYYY-MM-DD)
to= TO_DATE (YYYY-MM-DD)
Example:
https://currencydatafeed.com/api/timeframe.php?token=ACCESS_TOKEN&currency=EUR/USD&from=2016-11-18&to=2017-01-10

For more details and example response, visit the api page in your panel.