JKorf / HTX.Net

A C# .netstandard client library for the Huobi REST and Websocket Spot and Swap API focusing on clear usage and models
https://jkorf.github.io/HTX.Net/
MIT License
73 stars 53 forks source link

Please fix defenition for HuobiOpenOrder.ClientOrderId property #76

Closed deroc77 closed 2 years ago

deroc77 commented 2 years ago

Describe the bug According to https://huobiapi.github.io/docs/spot/v1/en/#get-all-open-orders "client-order-id" property is returned by "Get All Open Orders" method, however in current library implementation it is missed

To Reproduce call huobiClient.GetOpenOrdersAsync(...) and you will see that all returned orders have an empty ClientOrderId property Expected behavior ClientOrderId property is filled by value. To to achieve it ClientOrderId property should be marked with [JsonProperty("client-order-id")] attribute

JKorf commented 2 years ago

Has been fixed