-
Notifications
You must be signed in to change notification settings - Fork 91
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
binance: Retry keep alive. #2958
base: master
Are you sure you want to change the base?
Conversation
f436428
to
7b64763
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's do something like this so that we can test.
Also, please look into the LIST_SUBSCRIPTIONS
websocket message to see if we can leverage that in a periodic check to catch discrepancies.
Looking into querying the subscriptions. |
Sorry I have not tested this on testnet/mainnet yet, but I should be able to use on testnet correct? |
Maybe? I haven't found testing mm on testnet very useful. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe a better technique would be if an orderbook has not received an update within a certain period, maybe 30 seconds, then resync the orderbook. Currently we will only know that an orderbook is stale every time checkSubs
is run, so it could remain stale for 30 mins.
This would result in tons of unnecessary reloads on low-volume markets. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've been using this diff to test on mainnet. I've turned off my internet connection for 20 mins, then turned it back on, and the orderbooks immediately resync without hitting the new code here. The code looks good otherwise and works fine with the simnet test. Would be nice to be able to reproduce the issue though.
f0a39b4
to
1a223db
Compare
1a223db
to
56ed9ba
Compare
56ed9ba
to
e3cf2a8
Compare
@martonp does the order book desync look ok? https://github.com/decred/dcrdex/compare/1a223db8b8ae83b3e4da70b6ddd1adbf421ef027..e3cf2a8358ff0ac4a6e6e61507439a2b1478f56b |
Untested. Attempting to solve a problem with stuck books.