From 704c6eed96b59eba59c3b6052eea6fbc117468b3 Mon Sep 17 00:00:00 2001 From: c9s Date: Mon, 13 Jul 2020 01:55:16 +0800 Subject: [PATCH] fix sub --- bbgo/exchange/binance/stream.go | 1 + 1 file changed, 1 insertion(+) diff --git a/bbgo/exchange/binance/stream.go b/bbgo/exchange/binance/stream.go index 0fa76d37e..4aae85ac2 100644 --- a/bbgo/exchange/binance/stream.go +++ b/bbgo/exchange/binance/stream.go @@ -158,6 +158,7 @@ func (s *PrivateStream) read(ctx context.Context, eventC chan interface{}) { return default: + s.Subscriptions = nil err = s.connect(ctx) time.Sleep(5 * time.Second) }