Skip to content

Commit

Permalink
fixup! GateIO: Abstract GetOpenInterest
Browse files Browse the repository at this point in the history
  • Loading branch information
gbjk committed Jan 12, 2025
1 parent 1401f84 commit 0d2be12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exchanges/gateio/gateio_wrapper.go
Original file line number Diff line number Diff line change
Expand Up @@ -2204,7 +2204,7 @@ func (g *Gateio) GetOpenInterest(ctx context.Context, keys ...key.PairAsset) ([]
resp := make([]futures.OpenInterest, 0, len(keys))
assets := asset.Items{}
if len(keys) == 0 {
assets = g.GetAssetTypes(true)
assets = asset.Items{asset.DeliveryFutures, asset.CoinMarginedFutures, asset.USDTMarginedFutures}
} else {
for _, k := range keys {
if !slices.Contains(assets, k.Asset) {
Expand Down

0 comments on commit 0d2be12

Please sign in to comment.