Skip to content

Commit

Permalink
fixup! Deribit: Add Subscription configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
gbjk committed Aug 31, 2024
1 parent 3bb37fe commit 04871d1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions exchanges/deribit/deribit_websocket.go
Original file line number Diff line number Diff line change
Expand Up @@ -799,8 +799,10 @@ func (d *Deribit) Unsubscribe(subs subscription.List) error {
}

func (d *Deribit) handleSubscription(method string, subs subscription.List) error {
if len(subs) == 0 {
return nil
var err error
subs, err = subs.ExpandTemplates(d)
if err != nil || len(subs) == 0 {
return err
}
r := WsSubscriptionInput{
JSONRPCVersion: rpcVersion,
Expand Down

0 comments on commit 04871d1

Please sign in to comment.