From 15cfd735a08555a8e852803f2839ab82187c99dd Mon Sep 17 00:00:00 2001 From: c9s Date: Sun, 17 Oct 2021 22:23:21 +0800 Subject: [PATCH] bbgo: add doc comment for ExchangeSessionSubscriber --- pkg/bbgo/trader.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/bbgo/trader.go b/pkg/bbgo/trader.go index 94a48fbf5..0c452d2b9 100644 --- a/pkg/bbgo/trader.go +++ b/pkg/bbgo/trader.go @@ -18,6 +18,8 @@ type SingleExchangeStrategy interface { Run(ctx context.Context, orderExecutor OrderExecutor, session *ExchangeSession) error } +// ExchangeSessionSubscriber provides an interface for collecting subscriptions from different strategies +// Subscribe method will be called before the user data stream connection is created. type ExchangeSessionSubscriber interface { Subscribe(session *ExchangeSession) }