mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-26 16:55:15 +00:00
use OnStart instead of OnConnect
this is for avoiding re-connect issue
This commit is contained in:
parent
e311a182fa
commit
2bf4a555ec
|
@ -367,7 +367,7 @@ func (s *Strategy) Run(ctx context.Context, orderExecutor bbgo.OrderExecutor, se
|
||||||
})
|
})
|
||||||
|
|
||||||
session.Stream.OnTradeUpdate(s.tradeUpdateHandler)
|
session.Stream.OnTradeUpdate(s.tradeUpdateHandler)
|
||||||
session.Stream.OnConnect(func() {
|
session.Stream.OnStart(func() {
|
||||||
s.placeGridOrders(orderExecutor, session)
|
s.placeGridOrders(orderExecutor, session)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user