Skip to content
New issue

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

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

Already on GitHub? # to your account

Example to reconstruct full order book from updates #11

Open
elyase opened this issue Jan 18, 2022 · 4 comments
Open

Example to reconstruct full order book from updates #11

elyase opened this issue Jan 18, 2022 · 4 comments

Comments

@elyase
Copy link

elyase commented Jan 18, 2022

It would be great to have an example on how to keep a full order book from updates.
Related gateio example

@soulmachine
Copy link
Collaborator

Each OrderBookMsg has a seq_id and a prev_seq_id, see msg.rs#L107-L109, if there are gaps, which means some messages are missing.

I'll submit an example for Binance soon.

@elyase
Copy link
Author

elyase commented May 16, 2022

that would be great! I am curious to know what other people are doing

@xtuyaowu
Copy link

Each OrderBookMsg has a seq_id and a prev_seq_id, see msg.rs#L107-L109, if there are gaps, which means some messages are missing.

I'll submit an example for Binance soon.

dose the example submited? thanks

@soulmachine
Copy link
Collaborator

@xtuyaowu No, there is no example for now. You can read the "How to manage a local order book correctly" section from Binance

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

No branches or pull requests

3 participants