Skip to content

Commit

Permalink
fixup! Gemini: Add subscription configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
gbjk committed Aug 21, 2024
1 parent 2111398 commit 223e919
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions exchanges/gemini/gemini_websocket.go
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
})
}

Expand Down

0 comments on commit 223e919

Please sign in to comment.