1
0
mirror of https://github.com/microsoft/qlib.git synced 2026-07-13 15:56:57 +08:00

trade_account support multi bar report

This commit is contained in:
bxdd
2021-04-29 02:15:34 +08:00
parent 8920c1967f
commit 86a6f565e8
15 changed files with 362 additions and 209 deletions

View File

@@ -41,7 +41,7 @@ def parse_position(position: dict = None) -> pd.DataFrame:
for _trading_date, _value in position.items():
# pd_date type: pd.Timestamp
_cash = _value.pop("cash")
for _item in ["today_account_value"]:
for _item in ["now_account_value"]:
if _item in _value:
_value.pop(_item)