mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-22 14:55:16 +00:00
feature: use NewFromFloat
This commit is contained in:
parent
324c7ea432
commit
cf8603e30b
|
@ -418,7 +418,7 @@ func (s *Strategy) Run(ctx context.Context, orderExecutor bbgo.OrderExecutor, se
|
|||
|
||||
s.OnEmergencyStop(func() error {
|
||||
// Close 100% position
|
||||
percentage, _ := fixedpoint.NewFromString("100%")
|
||||
percentage := fixedpoint.NewFromFloat(1.0)
|
||||
err := s.ClosePosition(context.Background(), percentage)
|
||||
err2 := s.Suspend()
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user