bbgo: add doc comment for ExchangeSessionSubscriber

This commit is contained in:
c9s 2021-10-17 22:23:21 +08:00
parent 39b7a956e0
commit 15cfd735a0

View File

@ -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)
}