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

Fixed shared client balance subscription handling #134

Merged
merged 1 commit into from
Mar 28, 2025

Conversation

nils2525
Copy link
Contributor

Updated the IBalanceSocketClient.SubscribeToBalanceUpdatesAsync() implementation to subscribe using the mode "2". This will result in socket messages for every "Total", "Available" balance update. Each update will then include both numbers (Total, Available)

Excerpt from the docs:

4、Specify "mode" as 2:
accounts.update#2
Whenever account balance or available balance changed, it will be updated together.

(https://www.htx.com/en-us/opend/newApiPages/?id=7ec52e28-7773-11ed-9966-0242ac110003)

@JKorf JKorf merged commit f1c9034 into JKorf:master Mar 28, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants