« Back to All Blogs Exchange Rate History API

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 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 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 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/v2.0/rates/historical/{DATE} and here is a curl example to get historical currency rates based on USD for date 2022-03-20 :

$ curl 'https://api.currencyfreaks.com/v2.0/rates/historical?apikey=YOUR_APIKEY&date=2022-03-20'

{
    "date": "2022-03-20",
    "base": "USD",
    "rates": {
        "FJD": "2.1176",
        "MATIC": "0.6832001093120175",
        "MXN": "20.385892",
        "STD": "21382.190504",
        "SCR": "14.408136",
        "CDF": "2005.74861",
        "BBD": "2.0",
        "HNL": "24.411536",
        "UGX": "3583.338449",
        "ZAR": "14.9602",
        "STN": "22.425165",
        .
        .
        .
    }
}
           

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 --location --request GET 'https://api.currencyfreaks.com/v2.0/rates/historical?date=2022-03-20&base=gbp&symbols=usd,eur,pkr,cad&apikey=YOUR_APIKEY'

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/v2.0/rates/latest?apikey=YOUR_APIKEY&symbols=PKR,GBP,EUR,INR&base=EUR'

{
   "date": "2023-03-21 13:29:00+00",
   "base": "EUR",
   "rates": {
       "EUR": "1.0",
       "GBP": "0.8810222794437683",
       "PKR": "303.60317616075287",
       "USD": "1.0780547579946744"
   }
}

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/v2.0/convert/latest?apikey=YOUR_APIKEY&from={CURRENCYCODE}&to={CURRECNYCODE}&amount={NUMBER} and here is a curl example to convert 500 USD (United States Dollar) to PKR (Pakistani Rupee):

$ curl 'https://api.currencyfreaks.com/v2.0/convert/latest?apikey=YOUR_APIKEY&from=USD&to=PKR&amount=500'

{
   "date": "2023-03-21 15:22:00+00",
   "from": "USD",
   "to": "PKR",
   "rate": "281.683",
   "givenAmount": "500.0",
   "convertedAmount": "140841.475"
}

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 --location --request GET 'https://api.currencyfreaks.com/v2.0/rates/historical?date=2021-04-05&base=SGD&symbols=QAR,CNH,BTC&apikey=YOUR_APIKEY'
{
   "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/v2.0/convert/historical/?apikey=YOUR_APIKEY&date={DATE}&from={CURRENCYCODE}&to={CURRENCYCODE}&amount={AMOUNT} and here is a curl example to convert 500 USD (United States Dollar) to PKR (Pakistani Rupee) on 2022-01-10:

$ curl 'https://api.currencyfreaks.com/v2.0/convert/historical/?apikey=YOUR_APIKEY&date=2022-01-10&from=USD&to=PKR&amount=500'

{
   "date": "2022-01-10",
   "from": "USD",
   "to": "PKR",
   "rate": "176.750",
   "givenAmount": "500.0",
   "convertedAmount": "88375.000"
}

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/v2.0/timeseries?apikey=YOUR_APIKEY&startDate={DATE}&endDate={DATE}&base={CURRENCYCODE}&symbols={CURRENCYCODE, CURRENCYCODE} and below is a curl example to get 7 days time series data of PKR (Pakistani Rupee) and USD (United States Dollar) from 2022-06-01 to 2022-06-07 by base EUR (Euro).


$ curl 'https://api.currencyfreaks.com/v2.0/timeseries?apikey=YOUR_APIKEY&startDate=2022-06-01&endDate=2022-06-07&base=eur&symbols=pkr,usd'

{
   "startDate": "2022-06-01",
   "endDate": "2022-06-07",
   "base": "EUR",
   "historicalRatesList": [
       {
           "date": "2022-06-01",
           "rates": {
               "PKR": "210.58073648790247",
               "USD": "1.0651300000000001"
           }
       },
       {
           "date": "2022-06-02",
           "rates": {
               "PKR": "212.41441993262268",
               "USD": "1.07504"
           }
       },
       {
           "date": "2022-06-03",
           "rates": {
               "PKR": "211.80743999999882",
               "USD": "1.0719"
           }
       },
       {
           "date": "2022-06-04",
           "rates": {
               "PKR": "212.3705498572507",
               "USD": "1.0719"
           }
       },
       {
           "date": "2022-06-05",
           "rates": {
               "PKR": "212.49419555477172",
               "USD": "1.0725240781655547"
           }
       },
       {
           "date": "2022-06-06",
           "rates": {
               "PKR": "213.19503849443953",
               "USD": "1.06928999144568"
           }
       },
       {
           "date": "2022-06-07",
           "rates": {
               "PKR": "215.71624763798502",
               "USD": "1.0696700000000001"
           }
       }
   ]
}

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/v2.0/fluctuation?apikey=YOUR_APIKEY&startDate={DATE}&endDate={DATE}&symbols={CURRENCYCODE}&base={CURRENCYCODE} and here is a curl example to get currency fluctuation of PKR (Pakistani Rupee) for 15 days from 2022-10-01 to 2022-10-15 by base GBP (Great British Pound).


$ curl 'https://api.currencyfreaks.com/v2.0/fluctuation?apikey=YOUR_APIKEY&startDate=2022-10-01&endDate=2022-10-15&symbols=PKR&base=GBP'

{
   "startDate": "2022-10-01",
   "endDate": "2022-10-15",
   "base": "GBP",
   "rateFluctuations": {
       "PKR": {
           "startRate": "254.331",
           "endRate": "243.874",
           "change": "10.457",
           "percentChange": "4.11"
       }
   }
}
     

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.