Skip to content

Commit

Permalink
fixup! GateIO: Split asset.Futures into CoinM and USDT
Browse files Browse the repository at this point in the history
  • Loading branch information
gbjk committed Jan 16, 2025
1 parent 7d7efc9 commit 6e80715
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions exchanges/gateio/gateio_websocket_futures.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import (
"time"

"github.com/gorilla/websocket"
"github.com/thrasher-corp/gocryptotrader/common"
"github.com/thrasher-corp/gocryptotrader/currency"
"github.com/thrasher-corp/gocryptotrader/exchanges/account"
"github.com/thrasher-corp/gocryptotrader/exchanges/asset"
Expand Down Expand Up @@ -93,10 +94,7 @@ func (g *Gateio) GenerateFuturesDefaultSubscriptions(a asset.Item) (subscription
}

pairs, err := g.GetEnabledPairs(a)
if err != nil {
if errors.Is(err, asset.ErrNotEnabled) {
return nil, nil // no enabled pairs, subscriptions require an associated pair.
}
if common.ExcludeError(err, asset.ErrNotEnabled) != nil {
return nil, err
}

Expand Down

0 comments on commit 6e80715

Please sign in to comment.