32

I need to get live forex exchange rates for my personal application. I know that there's no free service that has this data available for download. I've been using Yahoo Finance, but I've just found out that it has a delay of 15 minutes or so. Is there any way I could get fresher rates somewhere? Say, 5-minute old instead of 15?

Many forex brokers offer free "informers" that autoload data in an interval of seconds, so maybe there's a few that allow this data to be downloaded in bigger intervals without the use of their informers strictly for personal use?

ЯegDwight
  • 23,615
  • 10
  • 43
  • 51
Marius
  • 3,726
  • 5
  • 33
  • 50
  • 8
    5 minute lag is not live data and there's services like that all over the web. So i don't think it's stupid to wonder if there might be something like that for forex as well. – Marius Jul 26 '10 at 22:21
  • please stop priggishly closing things. these are helpful posts, stop being such snobs. – user1130176 Aug 12 '17 at 14:56

3 Answers3

54

TrueFX has free real-time (multiple updates per second) forex quotes, but only for a limited number of pairs: http://webrates.truefx.com/rates/connect.html?f=html

They also have free downloadable tick data for the same pairs, going back to May 2009: http://truefx.com/?page=downloads

You can get real-time quotes for a larger selection of pairs from FXCM: http://rates.fxcm.com/RatesXML

Realtime rates for about 40 currency pairs are available here: http://1forge.com/forex-data-api, eg: https://1forge.com/forex-quotes/quotes

They also have free downloadable tick-data, going back to 2007, but you need to create a demo account and use a COM based Windows API called Order2Go to retrieve it.

They promised that they will make available the same tick data in CSV format for free sometime this year here: http://www.forexcodesource.com/index.php/Category:Historical_Data

Robert F
  • 23
  • 3
Meh
  • 6,366
  • 10
  • 51
  • 73
  • You have to poll fxcm to see if the rates changed, so it's not real-time. – Arron S Feb 03 '11 at 19:30
  • @Arron - the only "real-time" quotes are the ones seen by the co-located high-frequency trading algorithms. Everything else is indicative – Meh Feb 04 '11 at 22:43
  • 1
    http://webrates.truefx.com/rates/connect.html?f=html&c=EUR/USD That I needed, thanks –  Sep 13 '12 at 17:16
  • cant I get response with ajax request? from rates.fxcm.com/RatesXML – hsn0331 Jul 26 '16 at 15:29
6

Here are a bunch of equity/fx data providers, however they are not free.

http://finviz.com/store/market-data-providers.ashx

If you're trying to keep everything free, then you'll probably have to hack something together.

For example, in MT4 there is a DDE hook that you can use to broadcast the quotes. You'll need a windows box(or vm) running MT4 and an app listening to the DDE server, that would forward the quotes off to your linux server via a TCP socket, or even HTTP. The lag should be less than a second if done right.

Here's the .net library I use to receive the DDE quotes.

http://www.4xlab.net/cs/forums/136/ShowPost.aspx

Also, if you are looking for historical tick data, then this is a great source.

http://ratedata.gaincapital.com/

Arron S
  • 5,395
  • 6
  • 47
  • 57
4

download metatrader from any broker, and write an expert adviser to log all the data you want to a file. have another process that read the file. if you really want to get fancy, you can call c functions from mt4 code. its not that hard to write some c code to store data to a db instead of logging it to a file.

clarson
  • 545
  • 1
  • 6
  • 15