-
Notifications
You must be signed in to change notification settings - Fork 820
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
Deribit: bug fixes, test fixes and implement GetCurrencyTradeURL #1558
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1558 +/- ##
==========================================
+ Coverage 37.78% 38.20% +0.41%
==========================================
Files 409 419 +10
Lines 147697 152314 +4617
==========================================
+ Hits 55807 58191 +2384
- Misses 84031 86023 +1992
- Partials 7859 8100 +241
|
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.
Nice stuff!
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 changes tACK.
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 @gloriousCode ! Just one minor nit
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 making those changes
PR Description
These are the kinds of bugs that can only pop up after proper use, it was still an excellent PR Sam 🕊️
This PR does the following:
UpdateTradablePairs
utilising concurrency since its so slow. Reducesgo test -race -count=0
from28s
to20s
GetCurrencyTradeURL
IsPerpetualFuture
optionPairToString
and add test coverageguessAssetTypeFromInstrument
togetAssetFromPair
as its not guessinggetAssetPairByInstrument
to help parse WS pair data after getting some errorsany
subscriptions (eg trades) usinggetAssetPairByInstrument
any
can have multiple currencies in the slice/ the currency isn't in the channel nameTestGetHistoricTrades
to not check results, because sometimes there are no trades, but its an expensive test to go back further in time to ensure trades. If there is an issue, deribit will error.I made sure that
getAssetPairByInstrument
was performant before using itType of change
How has this been tested
TestOptionPairToString
GetCurrencyTradeURL
Checklist