feat: add prepend_data to download_data endpoint

part of freqtrade/frequi#2743
This commit is contained in:
Matthias
2026-02-07 13:51:31 +01:00
parent 65a713a569
commit 351fe62d18
3 changed files with 4 additions and 1 deletions

View File

@@ -63,6 +63,7 @@ def pairlists_evaluate(
config_loc["timeframes"] = payload.timeframes
config_loc["erase"] = payload.erase
config_loc["download_trades"] = payload.download_trades
config_loc["prepend_data"] = payload.prepend_data
if payload.candle_types is not None:
config_loc["candle_types"] = payload.candle_types

View File

@@ -513,6 +513,7 @@ class DownloadDataPayload(ExchangeModePayloadMixin, BaseModel):
erase: bool = False
download_trades: bool = False
candle_types: list[str] | None = None
prepend_data: bool = False
@model_validator(mode="before")
def check_mutually_exclusive(cls, values):

View File

@@ -59,7 +59,8 @@ logger = logging.getLogger(__name__)
# 2.43: Add /profit_all endpoint
# 2.44: Add candle_types parameter to download-data endpoint
# 2.45: Add price to forceexit endpoint
API_VERSION = 2.45
# 2.46: Add prepend_data to download-data endpoint
API_VERSION = 2.46
# Public API, requires no auth.
router_public = APIRouter()