diff --git a/exchanges/gateio/gateio_types.go b/exchanges/gateio/gateio_types.go index 3c1453b3..2153f3e1 100644 --- a/exchanges/gateio/gateio_types.go +++ b/exchanges/gateio/gateio_types.go @@ -167,14 +167,15 @@ type TradHistoryResponse struct { // TradesResponse details trade history type TradesResponse struct { - ID string `json:"id"` - OrderID string `json:"orderid"` + ID int64 `json:"tradeID"` + OrderID int64 `json:"orderNumber"` Pair string `json:"pair"` Type string `json:"type"` Rate float64 `json:"rate,string"` Amount float64 `json:"amount,string"` - Time string `json:"time"` - TimeUnix int64 `json:"time_unix,string"` + Total float64 `json:"total"` + Time string `json:"date"` + TimeUnix int64 `json:"time_unix"` } // WithdrawalFees the large list of predefined withdrawal fees diff --git a/exchanges/gateio/gateio_wrapper.go b/exchanges/gateio/gateio_wrapper.go index cf1873cf..158e60eb 100644 --- a/exchanges/gateio/gateio_wrapper.go +++ b/exchanges/gateio/gateio_wrapper.go @@ -395,7 +395,7 @@ func (g *Gateio) GetOrderHistory(getOrdersRequest exchange.GetOrdersRequest) ([] side := exchange.OrderSide(strings.ToUpper(trade.Type)) orderDate := time.Unix(trade.TimeUnix, 0) orders = append(orders, exchange.OrderDetail{ - ID: trade.OrderID, + ID: strconv.FormatInt(trade.OrderID, 10), Amount: trade.Amount, Price: trade.Rate, OrderDate: orderDate,