0
Follow
0
Followers
リアルディスクで GetTicker,GetDepthの関数,rest,wsのプロトコルを使っていますか?
Related Recommendations
Get Started with FMZ Quant PlatformSECURITY BUGI keep getting error: Exchange_GetAccount: Invalid ContractTypeWe have an incredibly profitable market making algorithm for sideways markets on Bitmex - but need expert to help eliminate wait times during downward volatility in the marketError with deribitLimitations of the backtesting engineHow to install ta-lib on linux docker?5.5 Trading strategy optimization5.4 Why do we need an off-sample test5.3 How to read the strategy backtest performance report
Comment
All comments (3)
谢谢,您的回答,我用okex的v3 ws
param1 = {"op": "subscribe", "args": ["futures/ticker:ETH-USD-190927"]}
client1 = Dial( "wss://real.okex.com:8443/ws/v3|compress=gzip_raw&mode=recv&reconnect=true&payload=" + json.dumps(param1))
while 1:
tick = json.loads(client1.read())
Log(tick)
Sleep(100)
为什么实际接收到的数据间隔至少在4s以上,比用GetTicker还慢,这是什么原因呢?
7 years ago
- 1
