Fix missing order time info in backtesting.

This commit is contained in:
Reigo Reinmets 2022-01-23 20:51:15 +02:00
parent daee59f4f1
commit e67a54f7a9

View File

@ -531,6 +531,9 @@ class Backtesting:
side="buy", side="buy",
order_type="market", order_type="market",
status="closed", status="closed",
order_date=row[DATE_IDX].to_pydatetime(),
order_filled_date=row[DATE_IDX].to_pydatetime(),
order_update_date=row[DATE_IDX].to_pydatetime(),
price=propose_rate, price=propose_rate,
average=propose_rate, average=propose_rate,
amount=amount, amount=amount,