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: Add subscription configuration #1604

Merged
merged 6 commits into from
Nov 11, 2024

Conversation

gbjk
Copy link
Collaborator

@gbjk gbjk commented Aug 6, 2024

Just adds configurable subs.

This PR does not fix auth WS usage, which appears broken due to using deprecated v1 paths.
Also doesn't seek to make subs synchronous.

Stacked Dependencies

Type of change

  • New feature (non-breaking change which adds functionality)

@gbjk gbjk added the nomerge requires dependency This pull request is dependent on another, so it can't be merged until the dependent one is merged label Aug 6, 2024
@gbjk gbjk self-assigned this Aug 6, 2024
Copy link

codecov bot commented Aug 6, 2024

Codecov Report

Attention: Patch coverage is 52.27273% with 21 lines in your changes missing coverage. Please review.

Project coverage is 37.07%. Comparing base (d4c4bf1) to head (6d25b82).
Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
exchanges/huobi/huobi_websocket.go 48.78% 18 Missing and 3 partials ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1604      +/-   ##
==========================================
+ Coverage   37.04%   37.07%   +0.02%     
==========================================
  Files         414      414              
  Lines      180305   180275      -30     
==========================================
+ Hits        66800    66832      +32     
+ Misses     105657   105578      -79     
- Partials     7848     7865      +17     
Files with missing lines Coverage Δ
exchanges/huobi/huobi_wrapper.go 39.69% <100.00%> (+0.02%) ⬆️
exchanges/kraken/kraken_websocket.go 55.60% <100.00%> (ø)
exchanges/subscription/subscription.go 100.00% <ø> (ø)
exchanges/huobi/huobi_websocket.go 36.51% <48.78%> (+10.20%) ⬆️

... and 11 files with indirect coverage changes

@gbjk gbjk force-pushed the feature/huobi_sub_conf branch 2 times, most recently from b4f8fa0 to 315c634 Compare August 13, 2024 09:04
@gbjk gbjk added review me This pull request is ready for review and removed nomerge requires dependency This pull request is dependent on another, so it can't be merged until the dependent one is merged labels Aug 13, 2024
@gbjk gbjk requested review from shazbert, gloriousCode and thrasher- and removed request for shazbert and gloriousCode August 13, 2024 09:13
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.

Good stuff, minor potential nit

exchanges/huobi/huobi_websocket.go Outdated Show resolved Hide resolved
@gbjk gbjk requested a review from shazbert August 28, 2024 03:55
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.

LGTM.

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.

Also doesn't seek to make subs synchronous

Why not? Huobi has id support which would allow for SendMessageReceiveResponse

exchanges/subscription/list.go Outdated Show resolved Hide resolved
exchanges/huobi/huobi_websocket.go Show resolved Hide resolved
@gbjk
Copy link
Collaborator Author

gbjk commented Oct 10, 2024

Also doesn't seek to make subs synchronous

Why not? Huobi has id support which would allow for SendMessageReceiveResponse

It's just not the focus of this PR. I have a list of things to fix on Huobi after this is merged, and synchronous Subscribe is one of them.
The PRs that touch everything at once are painful to review, painful to merge, and conflict often.
So I'm trying to work with more agility, limited blast zones, and iterative improvements. 🙂

That said: I can sniff making it synchronous now it it's a dealbreaker for this to be merged.

@gbjk gbjk requested a review from gloriousCode October 10, 2024 08:00
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.

Tested OB levels ✅
One more thing

exchanges/huobi/huobi_test.go Show resolved Hide resolved
@gbjk gbjk force-pushed the feature/huobi_sub_conf branch from d789658 to fedd1ab Compare October 17, 2024 11:04
@gbjk gbjk added reconstructing Based on PR feedback, this is currently being reworked and is not to be merged and removed rebase/merge of master required review me This pull request is ready for review labels Oct 18, 2024
@gbjk gbjk force-pushed the feature/huobi_sub_conf branch 3 times, most recently from 8c132cd to bae9e4d Compare October 21, 2024 03:39
@gbjk gbjk force-pushed the feature/huobi_sub_conf branch 2 times, most recently from 2a8075d to 58a8c92 Compare October 28, 2024 08:04
@gbjk gbjk force-pushed the feature/huobi_sub_conf branch 2 times, most recently from c0c226c to 86b8b4c Compare November 4, 2024 02:50
@gbjk
Copy link
Collaborator Author

gbjk commented Nov 4, 2024

That said: I can sniff making it synchronous now it it's a dealbreaker for this to be merged.

This became too much for this PR. It just snowballed endlessly. I'm nearly done, but it should not get stacked on top of this.

So let's review this in the context of the title only.

@gbjk gbjk requested a review from gloriousCode November 4, 2024 02:54
@gbjk gbjk added review me This pull request is ready for review and removed reconstructing Based on PR feedback, this is currently being reworked and is not to be merged labels Nov 4, 2024
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.

Thanks for making those changes, one petty request

exchanges/huobi/huobi_test.go Show resolved Hide resolved
exchanges/huobi/huobi_websocket.go Outdated Show resolved Hide resolved
@gbjk gbjk requested a review from gloriousCode November 5, 2024 07:18
@gbjk gbjk mentioned this pull request Nov 6, 2024
5 tasks
@gloriousCode gloriousCode requested a review from shazbert November 8, 2024 00:04
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

@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.

All looks good, only minor things with the known caveat of disabled auth subs

exchanges/huobi/huobi_websocket.go Show resolved Hide resolved
exchanges/huobi/huobi_websocket.go Show resolved Hide resolved
exchanges/huobi/huobi_test.go Outdated Show resolved Hide resolved
@gbjk gbjk requested a review from thrasher- November 11, 2024 01:50
@gbjk gbjk force-pushed the feature/huobi_sub_conf branch from 8bbe191 to 6d25b82 Compare November 11, 2024 01:59
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 making those changes!

@thrasher- thrasher- changed the title Huobi: Add Subscription configuration Huobi: Add subscription configuration Nov 11, 2024
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.

Good stuff tACK!

@thrasher- thrasher- merged commit a2a7fed into thrasher-corp:master Nov 11, 2024
8 of 13 checks passed
@gbjk gbjk deleted the feature/huobi_sub_conf branch November 11, 2024 03:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
medium priority review me This pull request is ready for review
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

4 participants