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 25, 2025
1 parent dd74cde commit 570c96e
Show file tree
Hide file tree
Showing 3 changed files with 118 additions and 125 deletions.
3 changes: 2 additions & 1 deletion exchanges/gateio/gateio.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,8 @@ var (
errMultipleOrders = errors.New("multiple orders passed")
errMissingWithdrawalID = errors.New("missing withdrawal ID")
errInvalidSubAccountUserID = errors.New("sub-account user id is required")
errCannotParseSettlementCurrency = errors.New("cannot derive settlement currency")
errInvalidSettlementQuote = errors.New("symbol quote currency does not match asset settlement currency")
errInvalidSettlementBase = errors.New("symbol base currency does not match asset settlement currency")
errMissingAPIKey = errors.New("missing API key information")
errInvalidTextValue = errors.New("invalid text value, requires prefix `t-`")
)
Expand Down
5 changes: 5 additions & 0 deletions exchanges/gateio/gateio_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2842,6 +2842,11 @@ func TestGetUnifiedAccount(t *testing.T) {
require.NotEmpty(t, payload)
}

func TestGetSettlementCurrency(t *testing.T) {
t.Parallel()
t.Error("Not implemented")
}

func TestGenerateWebsocketMessageID(t *testing.T) {
t.Parallel()
require.NotEmpty(t, g.GenerateWebsocketMessageID(false))
Expand Down
Loading

0 comments on commit 570c96e

Please sign in to comment.