BitMEX / api-connectors

Libraries for connecting to the BitMEX API.
https://www.bitmex.com/app/restAPI
910 stars 795 forks source link

Official adapters have larger latency than browser #93

Closed exceeddream closed 6 years ago

exceeddream commented 6 years ago

I have tried BitMEX Delta Server, NodeJS adapter and Python adapter. The trading datas in all the official adapters have larger latency than in browser (Chrome). The trading datas in Chrome proximately are ahead of 2s~15s.

I found that the trading datas from official adapters are also litter different from the datas in browser. For example the data in browser maybe: price: 10000, qty:200;price: 10000, qty:800; In official adapters, the data maybe price: 10000, qty:1000. The trading datas in official adapters are aggregated sometimes.

I tested many times getting the above results which are stable. I suppose it's a general problem.

What are the reasons cause these differents? How could I get really realtime trading datas which are not behind the browser?

bendelo commented 6 years ago

The browser and the adapters connect to the same WebSocket endpoint. Also none of our feeds have a qty field, so I am not sure what you are looking at.