rsmaker: refactor active OB

This commit is contained in:
austin362667 2022-06-19 17:59:00 +08:00
parent dd859390d9
commit 2f18ea230a

View File

@ -147,7 +147,7 @@ type Strategy struct {
state *State state *State
activeMakerOrders *bbgo.LocalActiveOrderBook activeMakerOrders *bbgo.ActiveOrderBook
orderStore *bbgo.OrderStore orderStore *bbgo.OrderStore
tradeCollector *bbgo.TradeCollector tradeCollector *bbgo.TradeCollector
@ -737,7 +737,7 @@ func (s *Strategy) Run(ctx context.Context, orderExecutor bbgo.OrderExecutor, se
//s.stopC = make(chan struct{}) //s.stopC = make(chan struct{})
s.activeMakerOrders = bbgo.NewLocalActiveOrderBook(s.Symbol) s.activeMakerOrders = bbgo.NewActiveOrderBook(s.Symbol)
s.activeMakerOrders.BindStream(session.UserDataStream) s.activeMakerOrders.BindStream(session.UserDataStream)
s.orderStore = bbgo.NewOrderStore(s.Symbol) s.orderStore = bbgo.NewOrderStore(s.Symbol)