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

Subscribe to Order book updates: Request snapshot data. #5

Open
serj20 opened this issue Nov 25, 2024 · 0 comments
Open

Subscribe to Order book updates: Request snapshot data. #5

serj20 opened this issue Nov 25, 2024 · 0 comments

Comments

@serj20
Copy link

serj20 commented Nov 25, 2024

Please add op: "request" for BitMartSocketOperation

When subscribing to order book updates (SubscribeToOrderBookUpdatesAsync), data reloading is not possible if the version sequence is broken.

Here's the documentation on how it works:

https://developer-pro.bitmart.com/en/spot/#public-depth-increase-channel

7. Request through request {"op": "request", "args": ["spot/depth/increase100:<symbol>"] }to obtain the latest depth snapshot (type=snapshot in the message), and add the depth The content in the snapshot is overwritten to the local cache, and then the logic continues from step 2.
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

1 participant