feat: add prepend_data to download_data endpoint
part of freqtrade/frequi#2743
This commit is contained in:
@@ -63,6 +63,7 @@ def pairlists_evaluate(
|
|||||||
config_loc["timeframes"] = payload.timeframes
|
config_loc["timeframes"] = payload.timeframes
|
||||||
config_loc["erase"] = payload.erase
|
config_loc["erase"] = payload.erase
|
||||||
config_loc["download_trades"] = payload.download_trades
|
config_loc["download_trades"] = payload.download_trades
|
||||||
|
config_loc["prepend_data"] = payload.prepend_data
|
||||||
if payload.candle_types is not None:
|
if payload.candle_types is not None:
|
||||||
config_loc["candle_types"] = payload.candle_types
|
config_loc["candle_types"] = payload.candle_types
|
||||||
|
|
||||||
|
|||||||
@@ -513,6 +513,7 @@ class DownloadDataPayload(ExchangeModePayloadMixin, BaseModel):
|
|||||||
erase: bool = False
|
erase: bool = False
|
||||||
download_trades: bool = False
|
download_trades: bool = False
|
||||||
candle_types: list[str] | None = None
|
candle_types: list[str] | None = None
|
||||||
|
prepend_data: bool = False
|
||||||
|
|
||||||
@model_validator(mode="before")
|
@model_validator(mode="before")
|
||||||
def check_mutually_exclusive(cls, values):
|
def check_mutually_exclusive(cls, values):
|
||||||
|
|||||||
@@ -59,7 +59,8 @@ logger = logging.getLogger(__name__)
|
|||||||
# 2.43: Add /profit_all endpoint
|
# 2.43: Add /profit_all endpoint
|
||||||
# 2.44: Add candle_types parameter to download-data endpoint
|
# 2.44: Add candle_types parameter to download-data endpoint
|
||||||
# 2.45: Add price to forceexit 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.
|
# Public API, requires no auth.
|
||||||
router_public = APIRouter()
|
router_public = APIRouter()
|
||||||
|
|||||||
Reference in New Issue
Block a user