-
Notifications
You must be signed in to change notification settings - Fork 790
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
Bybit: Fix WS ticker processing #1538
base: master
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1538 +/- ##
==========================================
- Coverage 37.76% 35.86% -1.91%
==========================================
Files 409 409
Lines 147697 177282 +29585
==========================================
+ Hits 55780 63577 +7797
- Misses 84055 105864 +21809
+ Partials 7862 7841 -21
|
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.
Thanks for the improvements! I found an issue earlier than this change though
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.
Thanks for the updates, it all looks swell. Just a linter fix regarding 32bit
exchanges/bybit/bybit_test.go
Outdated
assert.Equal(t, 11.00, v.Ask, "Ask should be correct") | ||
assert.Equal(t, 5.10, v.AskSize, "AskSize should be correct") | ||
assert.Equal(t, "BTC-USD-220930-28000-P", v.Pair.String(), "Pair should be correct") | ||
assert.EqualValues(t, 233366401000, v.LastUpdated.UnixMilli(), "LastUpdated should be correct") |
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.
looks like you'll need to wrap with int64(...)
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.
Yep. That's EqualValues out the window for most use cases then 🪟
Fixed 2639b11
2639b11
to
64977cc
Compare
Type of change
How has this been tested