This repository was archived by the owner on Oct 30, 2023. It is now read-only.
Expose the 'U' (first update), as well as the 'u' (final update) on Depth Event#41
Merged
joaopsilva merged 2 commits intobinance-exchange:masterfrom Jan 23, 2018
Conversation
Member
|
Hi @datalorax , thanks for your contribution. Can you please add the |
Author
|
@joaopsilva thanks for the review. Javadocs updated. |
nilswx
pushed a commit
to nilswx/binance-java-api
that referenced
this pull request
Dec 14, 2018
…date Expose the 'U' (first update), as well as the 'u' (final update) on Depth Event.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hey,
Looking at the docs, it looks like its not possible to maintain a valid cache of open orders without back the 'U' and 'u' field on the Depth event, but only one was exposed. This PR exposes the other. I've left the old accessors in there for backwards compatibility, or they could be removed...
BTW - the example the
DepthCacheExampledoes not subscribe to changes via the WS api before getting a snapshot from the rest API, which is what is recommended by your docs.Also, if you run the example, you'll notice that the number of bid and ask orders increases over time and sometimes drops below the original snapshot size. I would of expected a consistent cache size after each update. Not sure if there is something that can be done to avoid this?
Thanks!
Andy