]> Piment Noir Git Repositories - freqai-strategies.git/commit
fix: workaround freqtrade 2026.4 date column dtype regression
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Thu, 30 Apr 2026 22:14:55 +0000 (00:14 +0200)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Thu, 30 Apr 2026 22:14:55 +0000 (00:14 +0200)
commit8b32c1084a817dcdba815dd40a69933f1c039039
tree3945d628e08f5f3d22342b356f3e9e9f2db56dcb
parente6e0be017bf734afa65c030aa8fe4569d7ae026b
fix: workaround freqtrade 2026.4 date column dtype regression

Freqtrade 2026.4 (commit 2c5dc72) changed feather/parquet handlers to
use .dt.as_unit("ms") instead of to_datetime(col, unit="ms", utc=True).
This breaks when data files store dates as int64 epoch-ms, causing
AttributeError in feature_engineering_standard.

Use pd.to_datetime(col, utc=True) defensively to handle both int64 and
datetime inputs.

Ref: https://github.com/freqtrade/freqtrade/issues/13107
ReforceXY/user_data/strategies/RLAgentStrategy.py
quickadapter/user_data/strategies/QuickAdapterV3.py