Merge remote-tracking branch 'origin/feat/outsource-data-pipeline' into use-datasieve
This commit is contained in:
@@ -16,7 +16,7 @@ from pandas import DataFrame
|
|||||||
from sklearn.model_selection import train_test_split
|
from sklearn.model_selection import train_test_split
|
||||||
|
|
||||||
from freqtrade.configuration import TimeRange
|
from freqtrade.configuration import TimeRange
|
||||||
from freqtrade.constants import Config
|
from freqtrade.constants import DOCS_LINK, Config
|
||||||
from freqtrade.data.converter import reduce_dataframe_footprint
|
from freqtrade.data.converter import reduce_dataframe_footprint
|
||||||
from freqtrade.exceptions import OperationalException
|
from freqtrade.exceptions import OperationalException
|
||||||
from freqtrade.exchange import timeframe_to_seconds
|
from freqtrade.exchange import timeframe_to_seconds
|
||||||
@@ -760,9 +760,9 @@ class FreqaiDataKitchen:
|
|||||||
" which was deprecated on March 1, 2023. Please refer "
|
" which was deprecated on March 1, 2023. Please refer "
|
||||||
"to the strategy migration guide to use the new "
|
"to the strategy migration guide to use the new "
|
||||||
"feature_engineering_* methods: \n"
|
"feature_engineering_* methods: \n"
|
||||||
"https://www.freqtrade.io/en/stable/strategy_migration/#freqai-strategy \n"
|
f"{DOCS_LINK}/strategy_migration/#freqai-strategy \n"
|
||||||
"And the feature_engineering_* documentation: \n"
|
"And the feature_engineering_* documentation: \n"
|
||||||
"https://www.freqtrade.io/en/latest/freqai-feature-engineering/"
|
f"{DOCS_LINK}/freqai-feature-engineering/"
|
||||||
)
|
)
|
||||||
|
|
||||||
tfs: List[str] = self.freqai_config["feature_parameters"].get("include_timeframes")
|
tfs: List[str] = self.freqai_config["feature_parameters"].get("include_timeframes")
|
||||||
@@ -956,11 +956,10 @@ class FreqaiDataKitchen:
|
|||||||
"""
|
"""
|
||||||
Deprecation warning, migration assistance
|
Deprecation warning, migration assistance
|
||||||
"""
|
"""
|
||||||
ft = "https://www.freqtrade.io/en/latest"
|
|
||||||
logger.warning(f"Your custom IFreqaiModel relies on the deprecated"
|
logger.warning(f"Your custom IFreqaiModel relies on the deprecated"
|
||||||
" data pipeline. Please update your model to use the new data pipeline."
|
" data pipeline. Please update your model to use the new data pipeline."
|
||||||
" This can be achieved by following the migration guide at "
|
" This can be achieved by following the migration guide at "
|
||||||
f"{ft}/strategy_migration/#freqai-new-data-pipeline "
|
f"{DOCS_LINK}/strategy_migration/#freqai-new-data-pipeline "
|
||||||
"We added a basic pipeline for you, but this will be removed "
|
"We added a basic pipeline for you, but this will be removed "
|
||||||
"in a future version.")
|
"in a future version.")
|
||||||
|
|
||||||
@@ -970,11 +969,10 @@ class FreqaiDataKitchen:
|
|||||||
"""
|
"""
|
||||||
Deprecation warning, migration assistance
|
Deprecation warning, migration assistance
|
||||||
"""
|
"""
|
||||||
ft = "https://www.freqtrade.io/en/latest"
|
|
||||||
logger.warning(f"Your custom IFreqaiModel relies on the deprecated"
|
logger.warning(f"Your custom IFreqaiModel relies on the deprecated"
|
||||||
" data pipeline. Please update your model to use the new data pipeline."
|
" data pipeline. Please update your model to use the new data pipeline."
|
||||||
" This can be achieved by following the migration guide at "
|
" This can be achieved by following the migration guide at "
|
||||||
f"{ft}/strategy_migration/#freqai-new-data-pipeline "
|
f"{DOCS_LINK}/strategy_migration/#freqai-new-data-pipeline "
|
||||||
"We added a basic pipeline for you, but this will be removed "
|
"We added a basic pipeline for you, but this will be removed "
|
||||||
"in a future version.")
|
"in a future version.")
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import logging
|
|||||||
from packaging import version
|
from packaging import version
|
||||||
from sqlalchemy import select
|
from sqlalchemy import select
|
||||||
|
|
||||||
from freqtrade.constants import Config
|
from freqtrade.constants import DOCS_LINK, Config
|
||||||
from freqtrade.enums.tradingmode import TradingMode
|
from freqtrade.enums.tradingmode import TradingMode
|
||||||
from freqtrade.exceptions import OperationalException
|
from freqtrade.exceptions import OperationalException
|
||||||
from freqtrade.persistence.pairlock import PairLock
|
from freqtrade.persistence.pairlock import PairLock
|
||||||
@@ -25,7 +25,7 @@ def migrate_binance_futures_names(config: Config):
|
|||||||
if version.parse("2.6.26") > version.parse(ccxt.__version__):
|
if version.parse("2.6.26") > version.parse(ccxt.__version__):
|
||||||
raise OperationalException(
|
raise OperationalException(
|
||||||
"Please follow the update instructions in the docs "
|
"Please follow the update instructions in the docs "
|
||||||
"(https://www.freqtrade.io/en/latest/updating/) to install a compatible ccxt version.")
|
f"({DOCS_LINK}/updating/) to install a compatible ccxt version.")
|
||||||
_migrate_binance_futures_db(config)
|
_migrate_binance_futures_db(config)
|
||||||
migrate_binance_futures_data(config)
|
migrate_binance_futures_data(config)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user