From 8371f858dcbb00b3d04bd0f1c9d97210a21e4bff Mon Sep 17 00:00:00 2001 From: JustARand0m Date: Sun, 18 Sep 2022 22:05:18 +0000 Subject: [PATCH] fix --- rltrading/data/data.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rltrading/data/data.py b/rltrading/data/data.py index 75772d6..00dae47 100644 --- a/rltrading/data/data.py +++ b/rltrading/data/data.py @@ -55,7 +55,7 @@ class Data(BaseModel): _symbol: str = PrivateAttr(default_factory=None) _data_frame: pd.DataFrame = PrivateAttr(default_factory=pd.DataFrame) - _curr_pos: int = PrivateAttr(default_factory=0) + _curr_pos: int = 0 def fetch(self: "Data", config: Config, dir_path: Optional[str], store: str = True): """Fetch the data via the ``MetaTrader5`` and the ``Finnhub API``.