ensure proper integer type casting for timestamps. Add check test for backtesting subdaily time periods

This commit is contained in:
Robert Caulk
2022-07-25 15:07:09 +02:00
parent 7b105532d1
commit 897f18a8c8
3 changed files with 32 additions and 5 deletions

View File

@@ -909,10 +909,10 @@ class FreqaiDataKitchen:
coin, _ = pair.split("/")
self.data_path = Path(
self.full_path
/ str("sub-train" + "-" + pair.split("/")[0] + "_" + str(int(trained_timerange.stopts)))
/ f"sub-train-{pair.split('/')[0]}_{int(trained_timerange.stopts)}"
)
self.model_filename = "cb_" + coin.lower() + "_" + str(int(trained_timerange.stopts))
self.model_filename = f"cb_{coin.lower()}_{int(trained_timerange.stopts)}"
def download_all_data_for_training(self, timerange: TimeRange) -> None:
"""