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

Huobi: Fix invalid contract type error when autoUpdatePairs is false #1707

Merged
merged 1 commit into from
Nov 11, 2024

Conversation

gbjk
Copy link
Collaborator

@gbjk gbjk commented Nov 8, 2024

We were relying on autoUpdatePairs to fetch contract types before we need them. If the user disables it in config, we'll lazily fetch just the relevant Futures.

Type of change

Please delete options that are not relevant and add an x in [] as item is complete.

  • Bug fix (non-breaking change which fixes an issue)

How has this been tested

  • go test ./... -race
  • golangci-lint run

@gbjk gbjk added bug review me This pull request is ready for review labels Nov 8, 2024
@gbjk gbjk self-assigned this Nov 8, 2024
Copy link

codecov bot commented Nov 8, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 37.09%. Comparing base (a2a7fed) to head (c36bb36).
Report is 2 commits behind head on master.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1707      +/-   ##
==========================================
+ Coverage   37.07%   37.09%   +0.02%     
==========================================
  Files         414      414              
  Lines      180275   180282       +7     
==========================================
+ Hits        66828    66874      +46     
+ Misses     105589   105556      -33     
+ Partials     7858     7852       -6     
Files with missing lines Coverage Δ
exchanges/huobi/huobi_wrapper.go 39.88% <100.00%> (+0.19%) ⬆️

... and 10 files with indirect coverage changes

exchanges/huobi/huobi_futures.go Outdated Show resolved Hide resolved
@gbjk gbjk force-pushed the bugfix/huobi_cw branch 2 times, most recently from 5264e09 to ccdcf0e Compare November 11, 2024 03:00
@gbjk gbjk requested a review from gloriousCode November 11, 2024 03:01
Copy link
Collaborator

@gloriousCode gloriousCode left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tACK!

Copy link
Collaborator

@shazbert shazbert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tACK please rebase. ⭐

We were relying on autoUpdatePairs to fetch contract types before we
need them. If the user disables it in config, we'll get them upfront.
@gbjk
Copy link
Collaborator Author

gbjk commented Nov 11, 2024

tACK please rebase. ⭐

Done.

@thrasher- thrasher- changed the title Huobi: Fix invalid contract type err when autoUpdatePairs is false Huobi: Fix invalid contract type error when autoUpdatePairs is false Nov 11, 2024
Copy link
Collaborator

@thrasher- thrasher- left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for resolving this + @gloriousCode for test coverage C+P

@thrasher- thrasher- merged commit 56fa304 into thrasher-corp:master Nov 11, 2024
12 of 13 checks passed
@gbjk gbjk deleted the bugfix/huobi_cw branch November 11, 2024 06:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug review me This pull request is ready for review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants