mirror of
https://github.com/freqtrade/freqtrade.git
synced 2025-12-14 11:51:19 +00:00
fix: Allow users to override the exchange check for FreqAI incase they know that they dont need historic data for their system
This commit is contained in:
@@ -1461,6 +1461,11 @@
|
|||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
"default": false
|
"default": false
|
||||||
},
|
},
|
||||||
|
"override_exchange_check": {
|
||||||
|
"description": "Override the exchange check to force FreqAI to use exchangesthat may not have enough historic data. Turn this to True if you know your FreqAI model and strategy do not require historical data.",
|
||||||
|
"type": "boolean",
|
||||||
|
"default": false
|
||||||
|
},
|
||||||
"feature_parameters": {
|
"feature_parameters": {
|
||||||
"description": "The parameters used to engineer the feature set",
|
"description": "The parameters used to engineer the feature set",
|
||||||
"type": "object",
|
"type": "object",
|
||||||
|
|||||||
@@ -1142,6 +1142,15 @@ CONF_SCHEMA = {
|
|||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
"default": False,
|
"default": False,
|
||||||
},
|
},
|
||||||
|
"override_exchange_check": {
|
||||||
|
"description": (
|
||||||
|
"Override the exchange check to force FreqAI to use exchanges"
|
||||||
|
"that may not have enough historic data. Turn this to True if "
|
||||||
|
"you know your FreqAI model and strategy do not require historical data."
|
||||||
|
),
|
||||||
|
"type": "boolean",
|
||||||
|
"default": False,
|
||||||
|
},
|
||||||
"feature_parameters": {
|
"feature_parameters": {
|
||||||
"description": "The parameters used to engineer the feature set",
|
"description": "The parameters used to engineer the feature set",
|
||||||
"type": "object",
|
"type": "object",
|
||||||
|
|||||||
@@ -832,7 +832,8 @@ class Exchange:
|
|||||||
|
|
||||||
def validate_freqai(self, config: Config) -> None:
|
def validate_freqai(self, config: Config) -> None:
|
||||||
freqai_enabled = config.get("freqai", {}).get("enabled", False)
|
freqai_enabled = config.get("freqai", {}).get("enabled", False)
|
||||||
if freqai_enabled and not self._ft_has["ohlcv_has_history"]:
|
override = config.get("freqai", {}).get("override_exchange_checks", False)
|
||||||
|
if not override and freqai_enabled and not self._ft_has["ohlcv_has_history"]:
|
||||||
raise ConfigurationError(
|
raise ConfigurationError(
|
||||||
f"Historic OHLCV data not available for {self.name}. Can't use freqAI."
|
f"Historic OHLCV data not available for {self.name}. Can't use freqAI."
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user