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

`Create order` method runs infinitely #30

Closed Ability42 closed 4 years ago

Ability42 commented 4 years ago

huobi_client = RequestClient(api_key=CFG_HUOBI['api_key'], secret_key=CFG_HUOBI['api_secret'])


try:    
        order_id = huobi_client.create_order(trade_pair.lower(), OrderType.BUY_LIMIT, 0.0000000100, 1000)
    except HuobiApiException as e:
        print(e.error_code)
        print(e.error_message)

This thing runs infinitely. Can provide some example where it runs well?

Ability42 commented 4 years ago

Seems I was aI was debugged it through PyCharm and see that I was named parameter labels wrong in RequestClient initialization.

All works fine🎈