huobi_Python icon indicating copy to clipboard operation
huobi_Python copied to clipboard

account_client sub_account_update() doesn't support mode 2

Open EUA opened this issue 4 years ago • 0 comments

The API support mode 2, which is required to me, to get available balance every time. https://huobiapi.github.io/docs/spot/v1/en/#subscribe-account-change

But it's not possible to set mode parameter by hand using mode="2" argument because it discarded by function:

        if str(mode) == AccountBalanceMode.TOTAL:
            mode = AccountBalanceMode.TOTAL
        else:
            mode = AccountBalanceMode.BALANCE
        

        params = {
            "mode" : mode,
        }

EUA avatar May 22 '21 21:05 EUA