mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-26 00:35:15 +00:00
adjust pnl timer
This commit is contained in:
parent
4f3432d4bf
commit
094da9d3d3
|
@ -212,7 +212,7 @@ func (trader *Trader) RunStrategy(ctx context.Context, strategy Strategy) (chan
|
||||||
trader.reportTimer.Stop()
|
trader.reportTimer.Stop()
|
||||||
}
|
}
|
||||||
|
|
||||||
trader.reportTimer = time.AfterFunc(5*time.Second, func() {
|
trader.reportTimer = time.AfterFunc(1*time.Minute, func() {
|
||||||
trader.ReportPnL()
|
trader.ReportPnL()
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue
Block a user