Forex and Stocks Live Data Feed API for Free

>> Friday 8 March 2013

Hi, My name is Rian. Let me share forex article for today :)
========================================================================
Lot of people were asking on Stack overflow where to find live forex data and how to use them in web apps. This article is good answer to this question. I was looking for reliable data feed for my Forex web app for Forex analysis, so I needed perfect near real-time Forex feed API. There are some paid APIs that provide this data, but they are mostly delayed or incmoplete and mainly they provide only current exchange rates without any history which I really needed for my app. After few days of searchnig I have found apirates.com API JSON provider.

You can visit their website www.apirates.com

They servers are running on Node.js server technology wich is pretty fast. They are storing forex values directly from the Forex and Stock markets in MongoDB noSQL databse wich is ideal for this purpose,
because storing directly Forex JSON objects is quite fast. More infomration about the technical solution can be found on the website or you can contact directly the developers via email. 

The Forex data feed API is quite simple. You need only to parse incoming data in JSON.

This is example of how the update data looks like:

Fetch current forex data updated every 5 seconds


And historical data for M1, M5, M10, M15, M30, M60

Historical data are limited for last 1000 records, that means M1 last 1000 minutes bars, but 1000 hours for M60.

http://api.apirates.com/api/history/M1    and similar for M5 ( /history/M5 ) etc.

API Examples:


{ "ticks": { "EURUSD": "1.30362", "USDJPY": "94.187", "GBPUSD": "1.49958", "USDCHF": ".94588", "EURCHF": "1.23318", "AUDUSD": "1.02643", "USDCAD": "1.03049", "NZDUSD": ".82921", "EURJPY": "122.787", "GBPJPY": "141.247", "EURGBP": ".8692", "CHFJPY": "99.556", "GBPCHF": "1.41856", "EURAUD": "1.26988", "EURCAD": "1.34355", "AUDCAD": "1.05788", "AUDJPY": "96.683", "CADJPY": "91.38", "NZDJPY": "78.106", "GBPAUD": "1.46072", "AUDNZD": "1.23757", "AUDCHF": ".971", "EURNZD": "1.57179", "USDSGD": "1.24649", "USDHKD": "7.75621", "USDMXN": "12.76084", "GBPNZD": "1.80803", "USDSEK": "6.37443", "USDDKK": "5.71812", "EURSEK": "8.31063", "EURNOK": "7.4414", "USDNOK": "5.70752", "USDZAR": "9.1111", "EURDKK": "7.45496", "GBPCAD": "1.5455", "NOKJPY": "16.479", "SEKJPY": "14.754", "USDTRY": "1.79687", "EURTRY": "2.34349", "NZDCHF": ".78438", "CADCHF": ".91768", "NZDCAD": ".85459", "US30": "14305", "SPX500": "1542.4", "NAS100": "2794", "UK100": "6450", "GER30": "7942", "ITA40": "15978", "ESP35": "8420", "FRA40": "3797", "HKG33": "22757", "JPN225": "11999", "AUS200": "5117", "USOil": "90.6", "UKOil": "111.05", "XAUUSD": "1582.5", "XAGUSD": "28.96", "USDPLN": "3.18022", "EURPLN": "4.1461", "USDOLLAR": "10491", "USDILS": "3.7248", "XPTUSD": "1598", "XPDUSD": "745.9", "TRYJPY": "52.361" }, "time": { "M1": "2013-03-07T09:48:00+00:00", "M5": "2013-03-07T09:45:00+00:00", "M15": "2013-03-07T09:45:00+00:00", "M10": "2013-03-07T09:40:00+00:00", "M30": "2013-03-07T09:30:00+00:00", "M60": "2013-03-07T09:00:00+00:00" } }


AND HISTORY DATA

{ "M1": [ { "timestamp": 1362589800, "time": "2013-03-06T17:10:00+00:00", "EURUSD": "1.29859", "USDJPY": "93.643", "GBPUSD": "1.50248", "USDCHF": ".94715", "EURCHF": "1.23006", "AUDUSD": "1.02391", "USDCAD": "1.03158", "NZDUSD": ".82812", "EURJPY": "121.616", "GBPJPY": "140.696", "EURGBP": ".8642", "CHFJPY": "98.854", "GBPCHF": "1.42316", "EURAUD": "1.2681", "EURCAD": "1.33975", "AUDCAD": "1.05637", "AUDJPY": "95.889", "CADJPY": "90.759", "NZDJPY": "77.55", "GBPAUD": "1.46711", "AUDNZD": "1.23618", "AUDCHF": ".96989", "EURNZD": "1.56779", "USDSGD": "1.24761", "USDHKD": "7.75549", "USDMXN": "12.7457", "GBPNZD": "1.81392", "USDSEK": "6.41163", "USDDKK": "5.74034", "EURSEK": "8.3274", "EURNOK": "7.4176", "USDNOK": "5.71168", "USDZAR": "9.0998", "EURDKK": "7.45503", "GBPCAD": "1.55001", "NOKJPY": "16.373", "SEKJPY": "14.583", "USDTRY": "1.79679", "EURTRY": "2.33379", "NZDCHF": ".78435", "CADCHF": ".91804", "NZDCAD": ".85433", "US30": "14265", "SPX500": "1538.4", "NAS100": "2788", "UK100": "6422", "GER30": "7917", "ITA40": "15933", "ESP35": "8359", "FRA40": "3768", "HKG33": "22713", "JPN225": "11973", "AUS200": "5115", "USOil": "90.01", "UKOil": "110.81", "XAUUSD": "1578.45", "XAGUSD": "28.88", "USDPLN": "3.1894", "EURPLN": "4.142", "USDOLLAR": "10489", "USDILS": "3.7311", "XPTUSD": "1577", "XPDUSD": "739.3", "TRYJPY": "52.075" },

By : Ondrej

0 comments:

  © Blogger templates Palm by Ourblogtemplates.com 2008

Back to TOP