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

Fix "kraken.spot.OrderbookClient is not able to resubscribe to book feeds after connection lost" #149

Conversation

btschwertfeger
Copy link
Owner

@btschwertfeger btschwertfeger commented Aug 30, 2023

Summary

During the investigation of the bug it has shown, that the bug described in #148 also occurs for the ohlc, trade and ticker feeds. This has been fixed by pre-processing the subscriptions before caching.

@btschwertfeger btschwertfeger self-assigned this Aug 30, 2023
@btschwertfeger btschwertfeger added this to the v1.6.2 milestone Aug 30, 2023
@btschwertfeger btschwertfeger changed the title Fix "kraken.spot.OrderbookClient is not able to resubscribe to book feeds after connection lost" Fix "kraken.spot.OrderbookClient is not able to resubscribe to book feeds after connection lost" Aug 30, 2023
@codecov
Copy link

codecov bot commented Aug 30, 2023

Codecov Report

Merging #149 (1b19036) into master (99f6092) will increase coverage by 0.05%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #149      +/-   ##
==========================================
+ Coverage   90.04%   90.10%   +0.05%     
==========================================
  Files          20       20              
  Lines        1728     1738      +10     
==========================================
+ Hits         1556     1566      +10     
  Misses        172      172              
Flag Coverage Δ
unittests 90.10% <100.00%> (+0.05%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Changed Coverage
kraken/spot/orderbook.py 100.00%
kraken/spot/websocket/connectors.py 100.00%

@btschwertfeger btschwertfeger marked this pull request as ready for review August 30, 2023 15:40
@btschwertfeger btschwertfeger merged commit a8d7e35 into master Aug 31, 2023
59 checks passed
@btschwertfeger btschwertfeger deleted the 148-krakenspotorderbookclient-is-not-able-to-resubscribe-to-book-feeds-after-connection-lost branch August 31, 2023 14:36
btschwertfeger added a commit that referenced this pull request Mar 12, 2024
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.

kraken.spot.OrderbookClient is not able to resubscribe to book feeds after connection lost
1 participant