Skip to content
This repository has been archived by the owner on Apr 2, 2024. It is now read-only.

Add ticker_1000 ws channel #655

Merged
merged 1 commit into from Jan 3, 2022

Conversation

hjoelr
Copy link
Contributor

@hjoelr hjoelr commented Jan 3, 2022

Coinbase Pro uses a special version of the ticker channel named 'ticker_1000' which only provides a ticker message about every 5 seconds instead of as each tick happens. This can lighten the load on the client if it doesn't need every single ticker message. In this commit I'm adding that channel name.

@hjoelr hjoelr force-pushed the feature/ticker_1000-channel branch from 5258299 to 292ee1d Compare January 3, 2022 17:22
@codecov-commenter
Copy link

Codecov Report

Merging #655 (292ee1d) into main (6adf233) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##              main      #655   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           19        19           
  Lines          508       509    +1     
  Branches        39        39           
=========================================
+ Hits           508       509    +1     
Flag Coverage Δ
unittests 100.00% <100.00%> (ø)

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

Impacted Files Coverage Δ
src/client/WebSocketClient.ts 100.00% <100.00%> (ø)

@hjoelr
Copy link
Contributor Author

hjoelr commented Jan 3, 2022

@bennycode This is ready for review/merge. Thanks!

@bennycode
Copy link
Owner

Thank you and a happy 2022! 🎉 I am merging your PR now and I will release it in a bit.

@bennycode bennycode merged commit 6c79874 into bennycode:main Jan 3, 2022
@hjoelr
Copy link
Contributor Author

hjoelr commented Jan 3, 2022

@bennycode Awesome. Thank you! Happy new year to you too! I can tell you've put a ton of thought and work into this SDK and it's much appreciated.

@hjoelr hjoelr deleted the feature/ticker_1000-channel branch January 3, 2022 20:53
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants