mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 09:11:55 +00:00
grid2: add one more check for profitStats.InitialOrderID
This commit is contained in:
parent
8c53346020
commit
55c84e005b
|
@ -51,7 +51,7 @@ func (f *ProfitFixer) Fix(ctx context.Context, since, until time.Time, initialOr
|
|||
continue
|
||||
}
|
||||
|
||||
if profitStats.InitialOrderID == 0 {
|
||||
if profitStats.InitialOrderID == 0 || order.OrderID < profitStats.InitialOrderID {
|
||||
profitStats.InitialOrderID = order.OrderID
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user