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

Add "pu" final update Id in last stream(ie u in last stream) #489

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

goriunov
Copy link

As per Binance specs we should be using "pu" (Final update Id in last stream(ie u in last stream) to detect that our local order book is out of order. This PR adds pu to the WsDepthEvent

https://binance-docs.github.io/apidocs/futures/en/#how-to-manage-a-local-order-book-correctly

v2/websocket_service.go Outdated Show resolved Hide resolved
@goriunov
Copy link
Author

@adshao i have tried running it but for some reason binance does not return the "pu" field from their side, which is quite interesting as their documentation states that it should be available, may be i have missed some details. If you have some tips would be great!

I have also fixed missing Event value on the Combined Feed

@adshao
Copy link
Owner

adshao commented May 20, 2023

@goriunov
Copy link
Author

@adshao doing abit more investigation looks like this only works for the fstream from binance instead of the stream we subscribe to in the library

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

Successfully merging this pull request may close these issues.

None yet

2 participants