我需要在iqoption.com
等网络/移动应用中显示实时外汇汇率。
我已经尝试过雅虎财务,但他们并没有按照我想要的速度更新费率。
我可以在哪里获取数据?
答案 0 :(得分:2)
可能的原因很少 - (传输+处理)延迟+分配策略约束延迟&合成“子采样”(发送比报价流提供者记录更少的更新)
市场不会产生价格变化,所以“经常”会像您希望或预期观察到的那样(一个浅层流动性市场,没有大量人群制造合约作为一个微不足道的例子)
市场在特定时间(非市场或周末)关闭
您可能希望测试something like this并处理应用中的服务器端更新。
您的应用程序设计应该能够生存下来。
通常在黄金时间内每隔几毫秒几十次更新 虚假突发更新,有一毫秒或两秒处理 ...摆脱'em all
某些协议甚至会在重置之后将无数方案暴露给协议握手(智能和兼容的错误处理是您生存的主要面包和黄油问题)------------------------------------------------------------------------[mini-flash-crash 2014-01-06 15h14m [UTC+0000]]
15:43:17,812 <44 MarketDataIncrementalRefresh (8=FIX.4.29=97835=X34=4449=:::52=20140106-14:43:14.67756=/\/\/\/\/262=20140106-14:43:17.171268=13279=0269=0278=83655=EUR/USD270=1.3612215=EUR271=1500000346=2279=0269=0278=83455=EUR/USD270=1.3612115=EUR271=1000000346=1279=0269=0278=84255=EUR/USD270=1.3612615=EUR271=6500000346=1279=0269=0278=84455=EUR/USD270=1.3612515=EUR271=11000000346=2279=0269=0278=84055=EUR/USD270=1.3612415=EUR271=4000000346=1279=0269=0278=83855=EUR/USD270=1.3612315=EUR271=10500000346=2279=0269=0278=84655=EUR/USD270=1.3612715=EUR271=4100000346=1279=0269=1278=86755=EUR/USD270=1.3613815=EUR271=500000346=1279=0269=1278=86155=EUR/USD270=1.3613415=EUR271=7100000346=1279=0269=1278=86355=EUR/USD270=1.3613515=EUR271=6500000346=1279=0269=1278=86555=EUR/USD270=1.3613615=EUR271=6000000346=1279=0269=1278=86955=EUR/USD270=1.3613715=EUR271=3000000346=1279=0269=1278=85955=EUR/USD270=1.3613315=EUR271=3500000346=110=183)
15:43:17,812 WARNING: Received garbled message : NOT_FIX_MESSAGE - Not enough bytes in the message :
15:43:17,812 WARNING: Received garbled message : NOT_FIX_MESSAGE - Not enough bytes in the message :
15:43:17,812 WARNING: Received garbled message : NOT_FIX_MESSAGE - End of stream while reading fix-message
15:43:17,812 WARNING: Received garbled message : NOT_FIX_MESSAGE - End of stream while reading fix-message
15:43:17,812 WARNING: Received garbled message : INCORRECT_SECOND_TAG - Incorrect body length tag : 8=227
15:43:17,812 WARNING: Received garbled message : INCORRECT_SECOND_TAG - Incorrect body length tag : 8=227
15:43:17,812 WARNING: Received garbled message : INCORRECT_SECOND_TAG - Incorrect body length tag : 8=83255
15:43:17,812 WARNING: Received garbled message : INCORRECT_SECOND_TAG - Incorrect body length tag : 8=83255
15:43:17,812 WARNING: Received garbled message : INCORRECT_SECOND_TAG - Incorrect body length tag : 8=83455
15:43:17,812 WARNING: Received garbled message : INCORRECT_SECOND_TAG - Incorrect body length tag : 8=83455
15:43:17,812 <46 MarketDataIncrementalRefresh (8=FIX.4.29=29735=X34=4649=:::52=201401
15:43:17,812 WARNING: MsgSeqNum too high, expecting 45 but received 46 in MarketDataIncrementalRefresh