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.
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.
从任何经纪商下载 Metatrader,并编写一个专家顾问将您想要的所有数据记录到文件中。有另一个进程读取该文件。如果你真的想变得更奇特,你可以从 mt4 代码调用 c 函数。编写一些 C 代码将数据存储到数据库而不是将其记录到文件中并不难。
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.
发布评论
评论(3)
TrueFX 提供免费的实时(每秒多次更新)外汇报价,但仅限有限数量的货币对:http://webrates.truefx.com/rates/connect.html?f=html
他们还提供相同货币对的免费可下载报价数据,可追溯到 2009 年 5 月:http://truefx.com/?page=downloads
您可以从以下位置获取更多货币对的实时报价FXCM:http://rates.fxcm.com/RatesXML
此处提供约 40 种货币对的实时汇率:http://1forge.com/forex-data-api,例如:https://1forge.com/forex-quotes/quotes
他们还有免费可下载的报价数据,回到2007 年,但您需要创建一个模拟帐户并使用名为 Order2Go 的基于 COM 的 Windows API 来检索它。
他们承诺今年某个时候将在此处免费提供 CSV 格式的相同报价数据: http://www.forexcodesource.com/index.php/Category:Historical_Data
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
这里有很多股票/外汇数据提供商,但它们不是免费的。
http://finviz.com/store/market-data-providers.ashx
如果你想让一切都免费,那么你可能不得不将一些东西拼凑在一起。
例如,在 MT4 中,有一个 DDE 挂钩,您可以使用它来广播报价。您需要一个运行 MT4 的 Windows 盒子(或虚拟机)和一个监听 DDE 服务器的应用程序,该应用程序将通过 TCP 套接字甚至 HTTP 将报价转发到您的 Linux 服务器。如果做得好,延迟应该小于一秒。
这是我用来接收 DDE 报价的 .net 库。
http://www.4xlab.net/cs/forums/136/ShowPost.aspx
此外,如果您正在寻找历史报价数据,那么这是一个很好的来源。
http://ratedata.gaincapital.com/
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/
从任何经纪商下载 Metatrader,并编写一个专家顾问将您想要的所有数据记录到文件中。有另一个进程读取该文件。如果你真的想变得更奇特,你可以从 mt4 代码调用 c 函数。编写一些 C 代码将数据存储到数据库而不是将其记录到文件中并不难。
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.