diff --git a/pkg/exchange/ftx/stream.go b/pkg/exchange/ftx/stream.go index dd4fb8d2d..8da44f6d9 100644 --- a/pkg/exchange/ftx/stream.go +++ b/pkg/exchange/ftx/stream.go @@ -41,5 +41,8 @@ func (s *Stream) Subscribe(channel types.Channel, symbol string, _ types.Subscri } } func (s *Stream) Close() error { - return s.wsService.Close() + if s.wsService != nil { + return s.wsService.Close() + } + return nil }