From 223e919b8ce09989174730fda9db5d2bd811f8de Mon Sep 17 00:00:00 2001 From: Gareth Kirwan Date: Wed, 21 Aug 2024 08:19:17 +0700 Subject: [PATCH] fixup! Gemini: Add subscription configuration --- exchanges/gemini/gemini_websocket.go | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/exchanges/gemini/gemini_websocket.go b/exchanges/gemini/gemini_websocket.go index dd308256368..34d11d36bfe 100644 --- a/exchanges/gemini/gemini_websocket.go +++ b/exchanges/gemini/gemini_websocket.go @@ -103,19 +103,14 @@ func (g *Gemini) Unsubscribe(subs subscription.List) error { } func (g *Gemini) manageSubs(subs subscription.List, op wsSubOp) error { - format, err := g.GetPairFormat(asset.Spot, true) - if err != nil { - return err - } - req := wsSubscribeRequest{ Type: op, Subscriptions: make([]wsSubscriptions, 0, len(subs)), } for _, s := range subs { req.Subscriptions = append(req.Subscriptions, wsSubscriptions{ - Name: s.Channel, - Symbols: s.Pairs.Format(format).Strings(), + Name: s.QualifiedChannel, + Symbols: s.Pairs.Strings(), }) }