From 1d073f45588ef2d02a82b09c88272527136fc656 Mon Sep 17 00:00:00 2001 From: Gareth Kirwan Date: Mon, 4 Nov 2024 11:11:07 +0700 Subject: [PATCH] fixup! Huobi: Add subscription configuration --- exchanges/huobi/huobi_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/exchanges/huobi/huobi_test.go b/exchanges/huobi/huobi_test.go index 7206169cc6b..b0a51bd72ef 100644 --- a/exchanges/huobi/huobi_test.go +++ b/exchanges/huobi/huobi_test.go @@ -2939,6 +2939,9 @@ func TestGenerateSubscriptions(t *testing.T) { require.NoError(t, err, "generateSubscriptions must not error") exp := subscription.List{} for _, s := range h.Features.Subscriptions { + if s.Authenticated && !h.Websocket.CanUseAuthenticatedEndpoints() { + continue + } for _, a := range h.GetAssetTypes(true) { if s.Asset != asset.All && s.Asset != a { continue