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

Merge github.com:microsoft/qlib into bxdd-qlib_highfreq_backtest

This commit is contained in:
bxdd
2021-05-27 21:16:35 +08:00
13 changed files with 1074 additions and 62 deletions

View File

@@ -172,7 +172,7 @@ class Position:
def save_position(self, path):
path = pathlib.Path(path)
p = copy.deepcopy(self.position)
cash = pd.Series(dtype=np.float)
cash = pd.Series(dtype=float)
cash["init_cash"] = self.init_cash
cash["cash"] = p["cash"]
cash["now_account_value"] = p["now_account_value"]