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 52 forks source link

HuobiOrderTrade can't define trade side (sell/buy) #83

Closed JohnSilver9999 closed 2 years ago

JohnSilver9999 commented 2 years ago

Hi. I try to get user trades by SpotApi.Trading.GetUserTradesAsync and parse the result IEnumerable but HuobiOrderTrade doesn't have any proterty of trade direction (side) - buy or sell. Before (in 6 version) this data was in OrderType property like LimitBuy/LimitSell Is it a bug?

JKorf commented 2 years ago

Seems like you're right. I've added it in as Side property in version 4.0.2. Should be available in a few minutes. Let me know if you have any other issues

JohnSilver9999 commented 2 years ago

tnx