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

get_order error #3

Closed vesslanjin closed 5 years ago

vesslanjin commented 5 years ago

have made a simple test, but get_order had error. would you pls have a look at it ?

from huobi import RequestClient from huobi.model import * import time request_client = RequestClient(api_key="xxx", secret_key="xxx") theid = request_client.create_order("etcusdt", AccountType.SPOT, OrderType.SELL_LIMIT, 0.1, 6.2) print(theid) od = request_client.get_order( "etcusdt", theid) print(od) request_client.cancel_order("etcusdt", theid)

have an error: huobi.exception.huobiapiexception.HuobiApiException: ('ExecuteError', '[Executing] validation-format-error: Format Error: order-id.')

macomfan commented 5 years ago

Thanks for your feedback, it is fixed. please check again. Best regards

vesslanjin commented 5 years ago

thanks