mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-25 16:25:16 +00:00
print loaded position
This commit is contained in:
parent
6b760c72b7
commit
846f463cfc
|
@ -264,6 +264,8 @@ func (s *Strategy) CrossRun(ctx context.Context, _ bbgo.OrderExecutionRouter, se
|
|||
|
||||
if err := s.Persistence.Load(&s.Position, "position"); err != nil {
|
||||
log.WithError(err).Warnf("can not load position")
|
||||
} else {
|
||||
log.Infof("position is loaded successfully, position=%f", s.Position.Float64())
|
||||
}
|
||||
|
||||
go func() {
|
||||
|
|
Loading…
Reference in New Issue
Block a user