mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-26 08:45:16 +00:00
rsmaker: refactor active OB
This commit is contained in:
parent
dd859390d9
commit
2f18ea230a
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user