HuobiRDCenter / huobi_Golang

Go SDK for Huobi Spot API
https://www.htx.com/zh-cn/opend/newApiPages/
Apache License 2.0
176 stars 86 forks source link

SubscribeOrderV2Response.Data need OrderValue for buy-market order #21

Closed xyths closed 3 years ago

xyths commented 3 years ago
type SubscribeOrderV2Response struct {
    base.WebSocketV2ResponseBase
    Data *struct {
        EventType     string `json:"eventType"`
        Symbol        string `json:"symbol"`
        OrderId       int64 `json:"orderId"`
        ClientOrderId string `json:"clientOrderId"`
        OrderPrice    string `json:"orderPrice"`
        OrderSize string `json:"orderSize"`
        Type string `json:"type"`
        OrderStatus string `json:"orderStatus"`
        OrderCreateTime int64 `json:"orderCreateTime"`
        TradePrice string `json:"tradePrice"`
        TradeVolume string `json:"tradeVolume"`
        TradeId int64 `json:"tradeId"`
        TradeTime int64 `json:"tradeTime"`
        Aggressor bool `json:"aggressor"`
        RemainAmt string `json:"remainAmt"`
        LastActTime int64 `json:"lastActTime"`
    }
}

there is no OrderValue, can you upgrade and fix it, thanks!

eynzhang commented 3 years ago

@xyths this is new feature in this interface, SDK will be updated in next a few days, thanks!

eynzhang commented 3 years ago

@xyths this is now updated in latest master branch.