Skip to content

Commit 0d4b413

Browse files
committed
Fixes unrelated test
1 parent 16e145f commit 0d4b413

File tree

3 files changed

+60616
-12479
lines changed

3 files changed

+60616
-12479
lines changed

exchanges/binance/binance.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1174,7 +1174,7 @@ func (b *Binance) FetchSpotExchangeLimits(ctx context.Context) ([]order.MinMaxLe
11741174
assets = append(assets, asset.Spot)
11751175
case "MARGIN":
11761176
assets = append(assets, asset.Margin)
1177-
case "LEVERAGED": // leveraged tokens not available for spot trading
1177+
case "LEVERAGED", "TRD_GRP_003": // unused permissions
11781178
default:
11791179
return nil, fmt.Errorf("unhandled asset type for exchange limits loading %s",
11801180
spot.Symbols[x].Permissions[y])

exchanges/binance/binance_test.go

+11
Original file line numberDiff line numberDiff line change
@@ -2797,3 +2797,14 @@ func TestFormatUSDTMarginedFuturesPair(t *testing.T) {
27972797
t.Errorf("received '%v' expected '%v'", resp.String(), "DOGE_1234567890")
27982798
}
27992799
}
2800+
2801+
func TestFetchSpotExchangeLimits(t *testing.T) {
2802+
t.Parallel()
2803+
limits, err := b.FetchSpotExchangeLimits(context.Background())
2804+
if !errors.Is(err, nil) {
2805+
t.Errorf("received '%v', epected '%v'", err, nil)
2806+
}
2807+
if len(limits) == 0 {
2808+
t.Error("expected a response")
2809+
}
2810+
}

0 commit comments

Comments
 (0)