Closed gbjk closed 3 months ago
Attention: Patch coverage is 85.71429%
with 3 lines
in your changes are missing coverage. Please review.
Project coverage is 36.06%. Comparing base (
7b842c2
) to head (f91b833
). Report is 1 commits behind head on master.
I like your new helper function!
APIs like this should not require the pair to be enabled
Wrapper functions tend to respect enabled pairs over available pairs. This has had some back and forth over a long time. To that end, if you were to comply what you're saying, you are after a considerable change to many implementations across many exchanges.
So with current approach applied, it would initially appear as though exchange_wrapper_standards
has an intermittent issue with enabling pairs. However, upon inspection it's because I did not add a flag to test the endpoint against all asset types. It only tested against one asset type, which may not be one which is supported for funding rates.
As for the reason it failed when it tested the correct asset type, it is because the developer (me) did the inappropriate implementation of not formatting a pair before calling String()
on it, so -TEST-DELIM-
remained, which is not an available pair within Kraken and so it fails the test.
So in that sense I've made a diff of the changes to apply for fixing exchange_wrapper_standards
handling of GetLatestFundingRates
and bow my head in shame for the double test bugs introduced
if you were to comply what you're saying, you are after a considerable change to many implementations across many exchanges.
Agreed. This has come up a few times with @thrasher-.
The direction I'm following:
So on this task, I'll add your fix, but keep the addition to allow FundingRates on Available pairs
APIs like this should not require the pair to be enabled. Fixes intermittent test failure on cmd/exchange_wrapper_standards:
Type of change
How has this been tested