mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-26 08:45:16 +00:00
fix market data stream initialization
This commit is contained in:
parent
d932a686a0
commit
f190b1e66a
|
@ -255,6 +255,8 @@ func InitExchangeSession(name string, session *ExchangeSession) error {
|
|||
}
|
||||
session.Exchange = exchange
|
||||
session.UserDataStream = exchange.NewStream()
|
||||
session.MarketDataStream = exchange.NewStream()
|
||||
session.MarketDataStream.SetPublicOnly()
|
||||
|
||||
// pointer fields
|
||||
session.Subscriptions = make(map[types.Subscription]types.Subscription)
|
||||
|
|
Loading…
Reference in New Issue
Block a user