mirror of
https://github.com/microsoft/qlib.git
synced 2026-07-15 16:56:54 +08:00
update handler & fix some bugs
This commit is contained in:
@@ -160,7 +160,7 @@ class Position:
|
||||
def save_position(self, path, last_trade_date):
|
||||
path = pathlib.Path(path)
|
||||
p = copy.deepcopy(self.position)
|
||||
cash = pd.Series()
|
||||
cash = pd.Series(dtype=np.float)
|
||||
cash["init_cash"] = self.init_cash
|
||||
cash["cash"] = p["cash"]
|
||||
cash["today_account_value"] = p["today_account_value"]
|
||||
|
||||
Reference in New Issue
Block a user