Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

latency issue from websocket python #517

Open
LDN-Calling opened this issue Jul 20, 2022 · 1 comment
Open

latency issue from websocket python #517

LDN-Calling opened this issue Jul 20, 2022 · 1 comment

Comments

@LDN-Calling
Copy link

receiving updates at inconsistent and large intervals from server.

{'timestamp': '2022-07-20T11:23:25.061Z', 'symbol': 'XBTUSD', 'bidSize': 41600, 'bidPrice': 23656.5, 'askPrice': 23657, 'askSize': 2800} {'timestamp': '2022-07-20T11:23:27.036Z', 'symbol': 'XBTUSD', 'bidSize': 29000, 'bidPrice': 23656.5, 'askPrice': 23657, 'askSize': 15300} {'timestamp': '2022-07-20T11:23:28.051Z', 'symbol': 'XBTUSD', 'bidSize': 46600, 'bidPrice': 23656.5, 'askPrice': 23657, 'askSize': 2800} {'timestamp': '2022-07-20T11:23:28.416Z', 'symbol': 'XBTUSD', 'bidSize': 41600, 'bidPrice': 23656.5, 'askPrice': 23657, 'askSize': 2800}

timestamp is server time.

this is the endpoint I am using -> "wss://ws.bitmex.com/realtime"

Is this normal?

Is there a low latency feed accessible?

@byshing
Copy link
Contributor

byshing commented Aug 25, 2022

You may pick the quoteBin1m for quote coming in consistent 1 minute interval?
Sample data:

{"table":"quoteBin1m","action":"insert","data":[{"timestamp":"2022-08-25T02:17:00.000Z","symbol":"XBTUSD","bidSize":75100,"bidPrice":21539.5,"askPrice":21540,"askSize":226300}]}

if you're looking for instant update of price you may want to subscribe to other topics like instrument or trade instead?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants