Skip to content

encoding was remove in python 3.9 #137

@thaob1d6

Description

@thaob1d6

I use python 3.10, what should I do to use API sdk?
`

from huobi.client.account import AccountClient
from huobi.constant import *
from huobi.utils import LogInfo

account_client = AccountClient(api_key=g_api_key,
secret_key=g_secret_key)
LogInfo.output("====== (SDK encapsulated api) not recommend for low performance and frequence limitation ======")
account_balance_list = account_client.get_account_balance()
if account_balance_list and len(account_balance_list):
for account_obj in account_balance_list:
account_obj.print_object()
print()

`
Some error comeup
TypeError: JSONDecoder.init() got an unexpected keyword argument 'encoding'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions