mirror of
https://github.com/c9s/bbgo.git
synced 2024-09-20 16:21:09 +00:00
grid2: another fix
This commit is contained in:
parent
01b013fcc7
commit
ea34b3a962
|
@ -804,7 +804,7 @@ func (s *Strategy) Run(ctx context.Context, orderExecutor bbgo.OrderExecutor, se
|
||||||
}
|
}
|
||||||
|
|
||||||
session.UserDataStream.OnStart(func() {
|
session.UserDataStream.OnStart(func() {
|
||||||
if !s.TriggerPrice.IsZero() {
|
if s.TriggerPrice.IsZero() {
|
||||||
if err := s.openGrid(ctx, session); err != nil {
|
if err := s.openGrid(ctx, session); err != nil {
|
||||||
s.logger.WithError(err).Errorf("failed to setup grid orders")
|
s.logger.WithError(err).Errorf("failed to setup grid orders")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user