« Back to All Blogs

Historical Forex Data Conversion API For Currency Rates


Whether you need historical foreign currency data for a financial settlement, production, historical currency conversion directly into your app, website, ERP system, or accounting automation, or any software development purpose.
In this article, I'll explain the best the electronic source for historical currency exchange rates that'll fulfil all your above needs and manymore.

What Are Historical Currency Exchange Rates

As we know, currency history blongs to the historical representation of different currency pairs on the foreign currency exchange, showing differentiate in the exchange rates between specific dates in the past.
Historical foreign exchange rates are the currency rates from which traders can determine how a currency pair has exchanged in the past. Historical rates data is also really informatve for those, have deep interest on the foreign currency exchange market to know what rate is getting today compared with the exchange rates in the past.

What Is The Use Of Historical Foreign Currency And Cryptocurrency Rates?

  • Historical exchange rates helps many forex market traders to observe fluctuation of any currency pair between a specific time period.
  • Historical currency data is also useful to predict future rates fluctuation for the currencies.
  • Historical foreign currency exchange data is useful to generate the currency reports.
  • Forex dealers utilize historical currency exchange rates to understand how a currency pair has exchanged in the past corresponding to the latest trade.
  • Forex traders utilize historical exchange rates data as part of their quantitative analysis.
  • Software developers use currency historical data to the web UI plateforms for technical analysis and forex charting to make better-informed trades.

I'll also answer the following frequently asked questions by people regarding historical foreign currency exchange rates

Where can I find historical exchange rates?
Where can I find historical stock data?
Where can I get per tick historical bitcoin price data?
Where can I get stock market data set for data analysis?
What is the best source to get money currency historical rates?

The availability of historical forex currency rates has made it possible to get historical stock market data to monitor all forex, metals and crypto pricing.
Although, there are huge businesses that offer historical rates services. One of them is CurrencyFreaks, which is providing historical currency exchange rates of 229 major currencies over 52441 currency pairs including many crypto currencies and precious metals as well.

Using CurrencyFreaks services you can:

  1. Get historical exchange rates tool & forex history data.
  2. Get USD historical exchange rates and other currencies as well.
  3. Get live currency rates conversion.
  4. Get historical currency rates conversion.
  5. Get access of 35 years back historical exchange rates data.
  6. Get most accurate world currency convertor API
  7. Manage multiple currencies online

Forex history exchange rates data is very important to forex brokers as well as to worldwide organizations that do direct business in foreign countries and they need to change one currency price into another currency using live exchange rates as well.

CurrencyFreaks also offers prices of historical currency data, along with an exchange rate query tool, to help for research into past relationships between currency paires. Even if you are not a developer, you can use online historical currency converter which provide the access of 35 years back historical forex currency rates conversion.

Meanwhile, for developers CurrencyFreaks offers a professional API which covers a broad range of functions that will allow you to trade automatically and get live and historical currency exchange rates efficiently. You can access vast amount of currency rates data into useful formats Json and Xml for your applications or anything which you build or the ability to get data for spot checking, analysis, and reporting.

CurrencyFreaks API provide great services to the developers which solves all of your following common questions related to getting historical forex rates and cryptocurrencies prices.

Which APIs can provide historical crypto-currency market data?
Where do I get cryptocurrencies’ APIs to access historical data?
What is best cryptoCurrency price and historical data API which service is fast and reliable?
Is there an API with which I could obtain the exchange rate of bitcoin to dollar some time in the past by giving the desired date as parameter?
What is a currency converter API?
Where can I find the best API for making a currency converter website?
Is there any currency conversion api that responds with realtime data conversion?

CurrencyFreaks has several resources to help track currencies, analyze the historical relationship between them, and evaluate their potential future values.

CurrencyFreaks API Features

  • Accurate currency conversion for 229 world currencies.
  • Provides hourly/daily currency conversion rates.
  • Provide real time currency conversion.
  • The most reliable API for currency conversion.
  • Affordable currency conversion API with lowest pricing plans.
  • Currency switcher allows you to change one currency to another.
  • It boasts an easy to understand documentation.
  • It comes with the following ten unique endpoints.

    1. Get list of all supported currencies with detail.
    2. Get list of all currency symbols with their names.
    3. Get historical data limits
    4. Get the real-time exchange rates.
    5. Get historical currency rates data.
    6. Get live currency rates conversion.
    7. Get historical currency rates conversion.
    8. Get historical currency exchange rates between two dates.
    9. Get information how currencies fluctuate on a day-to-day basis.
    10. Get automatic geolocation currency converter for website. It auto detect country and currency of website's visitor and display the converted amount in the local currency.

I've explained the first four API endpoints from above in the previous post. Here, I'll tell you the features of next five API endpoints from 5 to 9. Soon I'll post about further endpoints.

5. Get historical currency rates data.

If you are looking for an API to get live and historical rates then you're at right place. CurrencyFreaks API give you the historical data, closing rates of the day, and historical currency exchange rates back to 35 years. Also it's a great API to get cryptocurrency data including current and historical prices. An effcient historical forex API provide support for more than 228 currencies including cryptos, precious metals as well.

Historical rates are available for most of the currencies since 1984-11-28. You can query the CurrencyFreaks API for historical rates by appending a date (format YYYY-MM-DD) to the base URL.
The URL for this endpoint is https://api.currencyfreaks.com/historical/{DATE} and here is a curl example to get historical currency rates based on USD for date 2021-04-26 :

$ curl 'https://api.currencyfreaks.com/historical/2021-04-26?apikey=YOUR_APIKEY'
{
    "date": "2021-04-26",
    "base": "USD",
    "rates": {
        "FJD": "2.033",
        "MXN": "19.8618",
        "STD": "20738.069016",
        "SCR": "14.146",
        "CDF": "1991.5905",
        "BBD": "2.0",
        "HNL": "24.0876",
        "UGX": "3600.499",
        "ZAR": "14.2733",
        "STN": "20.500089"
        }
}

Moreover, you can also get historical currency rates based on currency selection. For this purpose you just need to pass a URL parameter "symbols" and set its value with required currency codes or symbols as shown in the curl example below:

$ curl 'https://api.currencyfreaks.com/historical/2021-04-26?apikey=YOUR_APIKEY&symbols=CAD,EUR,GBP'
{
    "date": "2021-02-04",
    "base": "USD",
    "rates": {
        "EUR": "0.8357",
        "GBP": "0.7313",
        "CAD": "1.2822"
    }
}

6. Get live currency rates conversion.

This rates conversion endpoint has two useful features, from the first one you can switch currency rates by changing base currency to get live rates of all currencies with desired base currency.
This currency converter endpoint uses cross rates to deliver other currencies values, which means you can calculate the values of the CAD (Canadian dollar), GBP (Pound sterling), and EUR (Euro) to SAR (Saudi riyal) as shown in the example below.
Note: You can change the base currency of any endpoint by passing the value of query parameter "base". Its value can be any currency code which you want to use as a base currency. Here is its curl example to get live cross rates conversion.

$ curl 'https://api.currencyfreaks.com/latest?apikey=YOUR_APIKEY&symbols=CAD,EUR,GBP,SAR&base=SAR'
{
   "date": "2021-02-04",
   "base": "SAR",
   "rates": {
       "CAD": "0.3419",
       "EUR": "0.2229",
       "GBP": "0.195",
       "SAR": "1.0"
   }
}

Through the second conversion feature you can convert amount/money to foreign currency based on the current exchange rates.
You just need to pass the values of three query parameters "amount", "from" currency code, "to" currency code. The URL for this endpoint is https://api.currencyfreaks.com/latest/convert and here is a curl example to convert 600 AED (United Arab Emirates dirham) to SAR (Saudi riyal):

$ curl 'https://api.currencyfreaks.com/latest/convert?apikey=YOUR_APIKEY&from=AED&to=SAR&amount=600'
{
   "date": "2021-04-28 12:26:00+00",
   "current_rates": {
       "AED": "1.0",
       "SAR": "1.0211"
   },
   "converted_amount": "612.639",
   "query": {
       "given_amount": "600.0",
       "from": "AED",
       "to": "SAR"
   }
}

7. Get historical currency rates conversion.

Historical rates conversion endpoint has also two great useful features, from the first one you can switch past currency rates by changing base currency in the history rates and get historical forex rates of all currencies with any base currency.
This historical currency converter endpoint uses historical cross rates to deliver other historical currency values, which means you can calculate the values of the QAR (Qatari Rial), CNH (Chinese Yuan Renminbi), and BTC (Bitcoin) to SGD (Singapore Dollar) as shown in the example below.
Note: You just need to pass the value of query parameter "base" and any date in the past. Here is its curl example to get historical cross rates conversion on 2021-04-05.

$ curl 'https://api.currencyfreaks.com/historical/2021-04-05?apikey=YOUR_APIKEY&symbols=QAR,CNH,BTC&base=SGD'
{
   "date": "2021-04-05",
   "base": "SGD",
   "rates": {
       "QAR": "2.7133",
       "CNH": "4.890211842443814",
       "BTC": "0.000012648815118471506"
   }
}

Through the second historical conversion feature you can convert amount/money to historical foreign currency based on the past exchange rates.
For this purpose, you just need to pass the values of three query parameters "amount", "from" currency, "to" currency. The URL for this endpoint is https://api.currencyfreaks.com/latest/convert and here is a curl example to convert 2000 SYP (Syrian Pound) to RUB (Russian Ruble) on 2020-10-28:

$ curl 'https://api.currencyfreaks.com/convert/2020-10-28?apikey=YOUR_APIKEY&from=SYP&to=RUB&amount=2000'
{
   "date": "2020-10-28",
   "current_rates": {
       "SYP": "1",
       "RUB": "0.0629"
   },
   "converted_amount": "125.7734",
   "query": {
       "given_amount": "2000.0",
       "from": "SYP",
       "to": "RUB"
   }
}

8. Get historical currency exchange rates between two dates.

This endpoint lets you query the API for historical rates between two specific dates. It's a best approach to get time-series data for analysis trends over the forex historical data. Also it is used to show historical exchange rates on graph and charts between specific days, months or years.
The URL for this endpoint https://api.currencyfreaks.com/timeseries and below is a curl example to get 30 days time series data of LKR (Sri Lanka Rupee), OMR (Rial Omani), PHP (Philippine Piso), TRY (Turkish Lira) from 2021-03-025 to 2021-04-26 by base TWD (New Taiwan Dollar).

$ curl 'https://api.currencyfreaks.com/timeseries?apikey=YOUR_APIKEY&start_date=2021-03-025&end_date=2021-04-26&symbols=LKR,OMR,PHP,TRY&base=TWD'
{
   "start_date": "2021-03-25",
   "end_date": "2021-04-26",
   "base": "TWD",
   "rates": {
       "2021-03-25 00:00:00+00": {
           "LKR": "6.96",
           "OMR": "0.0136",
           "PHP": "1.7055",
           "TRY": "0.279"
       },
       "2021-03-26 00:00:00+00": {
           "LKR": "6.9554",
           "OMR": "0.0135",
           "PHP": "1.6893",
           "TRY": "0.2843"
       },
       "2021-03-27 00:00:00+00": {
           "LKR": "6.9554",
           "OMR": "0.0135",
           "PHP": "1.6893",
           "TRY": "0.2843"
       },
       [...]
   }
}

9. Get information how currencies fluctuate on a day-to-day basis.

Historical exchange rates helps many forex market traders to observe fluctuation of any currency pair between a specific time period. Forex traders utilize it to make money on currency fluctuations.

It is the most remarkable feature of CurrencyFreaks historical stock quote API which provide currency chart bars fluctuation, for example summed up, changed intra day market data of various intervals that are sufficiently adaptable to dynamically control graphing chart applications using currency fluctuation data.

This endpoint provides information about how currencies fluctuate on a day-to-day basis. To use this feature, provide a “start_date” and “end_date” as the query parameter and choose which currencies symbols you would like to query.
The URL for this endpoint is https://api.currencyfreaks.com/fluctuation and here is a curl example to get currency fluctuation of BRL (Brazilian Real), CZK (Czech Koruna), CNY (Yuan Renminbi) for 3 days from 2021-04-024 to 2021-04-26 by base CHF (Swiss Franc)

$ curl 'https://api.currencyfreaks.com/fluctuation?apikey=YOUR_APIKEY&start_date=2021-04-024&end_date=2021-04-26&symbols=BRL,CZK,CNY&base=CHF'
{
   "start_date": "2021-04-24",
   "end_date": "2021-04-26",
   "base": "CHF",
   "rates": {
       "BRL": {
           "start_rate": "5.9902",
           "end_rate": "5.9456",
           "change": "-0.0445",
           "change_per": "-0.7444"
       },
       "CZK": {
           "start_rate": "23.3474",
           "end_rate": "23.403",
           "change": "0.0556",
           "change_per": "0.2381"
       },
       "CNY": {
           "start_rate": "7.1048",
           "end_rate": "7.092",
           "change": "-0.0127",
           "change_per": "-0.1791"
       }
   }
}

Conclusion

CurrencyFreaks forex API doesn't just support widely traded currency pairs, it also provide calculated cross rates by connecting of major currencies. We always work hard to collect accurate data from multiple authentic sources to provide coverage of lightly traded currencies as well. You can see historical data coverage here. Thus you can trust CurrencyFreaks forex API for your most complicated entreprise needs.
To get access of CurrencyFreaks API create free account here and get your apikey, no credit card required. Moreover, you can also signup using your Google or Github account.