kucoin watch_order_book initial snapshot error
See original GitHub issue- OS: ubuntu 16.04
- Programming Language version: python 3.6.5
- CCXT version: 0.1.67
Happens intermittently when trying to subscribe to many pairs. Once it happens the stream never recovers. Would be great if there was a way to detect stale streams and automatically restart
Having trouble reproducing locally, I think it’s related to rate limiting where kucoin will return a blank response or something. Is it possible to add a retry on the initial book snapshot?
enableRateLimiting is set to True here
File "/python3.6/site-packages/ccxtpro/kucoin.py", line 227, in watch_order_book
return await self.after(future, self.limit_order_book, symbol, limit, params)
File "/python3.6/site-packages/ccxtpro/base/exchange.py", line 77, in after
return method(await future, *args)
File "/python3.6/site-packages/ccxtpro/base/exchange.py", line 80, in after_async
return await method(await future, *args)
File "/python3.6/site-packages/ccxtpro/kucoin.py", line 111, in subscribe
return await self.watch(url, messageHash, request, messageHash, subscription)
File "/python3.6/site-packages/ccxtpro/kucoin.py", line 243, in fetch_order_book_snapshot
previousSequence = sequenceStart - 1
TypeError: unsupported operand type(s) for -: 'NoneType' and 'int'
Issue Analytics
- State:
- Created 3 years ago
- Comments:23 (23 by maintainers)
Top Results From Across the Web
Manual — ccxt 2.4.71 documentation
watchOrderBook (symbol, limit) // do something or react somehow based on that ... the updates received from the exchange server into the local...
Read more >What Should I Do If Deposit Wrong Crypto? - KuCoin
(4) The screenshot of the transfer record from the withdrawal platform. Ensure that the TXID, coin type, amount, and address are shown on...
Read more >KuCoin API Documentation: General
Add Get Market List; Add Symbol Snapshot Feed; Add Market Snapshot Feed ... 500, Internal Server Error -- We had a problem with...
Read more >Deposit FAQ - KuCoin
... make sure to confirm it with KuCoin admins or customer support first. ... The correct deposit address and the screenshot of the...
Read more >How to Make a Trade on KuCoin
This article will guide you through the process of making your first trade on KuCoin. Watch the YouTube video below for a step-by-step...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Yep, basically, you can play with those settings to adjust for the networking environment. Let me know if you experience any further difficulties with it. In the meantime we will try to address that in a more robust way. Thx for your involvement, appreciate it!
Looks like this works, awesome thanks!
None