mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-26 00:35:15 +00:00
backtest: update order update time when new trade happen
This commit is contained in:
parent
323c94149d
commit
4e4912ebdc
|
@ -234,6 +234,9 @@ func (m *SimplePriceMatching) newTradeFromOrder(order types.Order, isMaker bool)
|
|||
|
||||
}
|
||||
|
||||
// update order time
|
||||
order.UpdateTime = types.Time(m.CurrentTime)
|
||||
|
||||
var id = incTradeID()
|
||||
return types.Trade{
|
||||
ID: id,
|
||||
|
|
Loading…
Reference in New Issue
Block a user