diff --git a/pkg/backtest/matching.go b/pkg/backtest/matching.go index f95a5fca4..dc6581725 100644 --- a/pkg/backtest/matching.go +++ b/pkg/backtest/matching.go @@ -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,