Skip to content

Commit

Permalink
GateIO: Remove duplicate DeliveryTradingHistory
Browse files Browse the repository at this point in the history
  • Loading branch information
gbjk committed Jan 5, 2025
1 parent ad954a6 commit 4b9a789
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
4 changes: 2 additions & 2 deletions exchanges/gateio/gateio.go
Original file line number Diff line number Diff line change
Expand Up @@ -2655,7 +2655,7 @@ func (g *Gateio) GetDeliveryOrderbook(ctx context.Context, settle currency.Code,
}

// GetDeliveryTradingHistory retrieves futures trading history
func (g *Gateio) GetDeliveryTradingHistory(ctx context.Context, settle currency.Code, lastID string, contract currency.Pair, limit uint64, from, to time.Time) ([]DeliveryTradingHistory, error) {
func (g *Gateio) GetDeliveryTradingHistory(ctx context.Context, settle currency.Code, lastID string, contract currency.Pair, limit uint64, from, to time.Time) ([]TradingHistoryItem, error) {
if settle.IsEmpty() {
return nil, errEmptyOrInvalidSettlementCurrency
}
Expand All @@ -2676,7 +2676,7 @@ func (g *Gateio) GetDeliveryTradingHistory(ctx context.Context, settle currency.
if lastID != "" {
params.Set("last_id", lastID)
}
var histories []DeliveryTradingHistory
var histories []TradingHistoryItem
return histories, g.SendHTTPRequest(ctx, exchange.RestSpot, publicTradingHistoryDeliveryEPL, common.EncodeURLValues(deliveryPath+settle.Item.Lower+"/trades", params), &histories)
}

Expand Down
9 changes: 0 additions & 9 deletions exchanges/gateio/gateio_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -836,15 +836,6 @@ type DeliveryContract struct {
InDelisting bool `json:"in_delisting"`
}

// DeliveryTradingHistory represents futures trading history
type DeliveryTradingHistory struct {
ID int64 `json:"id"`
CreateTime types.Time `json:"create_time"`
Contract string `json:"contract"`
Size float64 `json:"size"`
Price types.Number `json:"price"`
}

// OptionUnderlying represents option underlying and it's index price.
type OptionUnderlying struct {
Name string `json:"name"`
Expand Down

0 comments on commit 4b9a789

Please sign in to comment.