HuobiRDCenter / huobi_Python

Python SDK for Huobi Spot API
https://huobiapi.github.io/docs/spot/v1/en
Apache License 2.0
680 stars 332 forks source link

Reqeusts raised exception for generic example codes. #100

Closed liupgd closed 3 years ago

liupgd commented 3 years ago

Hi, I just runned your examples, but failed with exceptions:
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='api.huobi.pro', port=443): Max retries exceeded with url: /v1/common/currencys (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x0000013D3EA12BA8>: Failed to establish a new connection: [WinError 10060] 由于连接方在一段时间后没有正确答复或连接的主机没有反应,连接尝试 失败。',))

Almost all generic example codes failed except "get_system_status.py".

What I did? I just cloned your repo, and then: python setup.py install, and then cd to examples/generic folder, run the codes. Anything I missed? BTW, I think you should give installation specs in the Readme.

Appreciated.

liupgd commented 3 years ago

It's working now.

sgz9527 commented 10 months ago

how does is work i met the same case