feat: add "live_mode" flag to pair_history

This commit is contained in:
Matthias
2025-02-01 17:25:58 +01:00
parent 7dd0f2174c
commit 6fb74fa166
2 changed files with 7 additions and 1 deletions

View File

@@ -60,7 +60,12 @@ def pair_history_filtered(payload: PairHistoryRequest, config=Depends(get_config
exchange = get_exchange(config_loc)
try:
return RPC._rpc_analysed_history_full(
config_loc, payload.pair, payload.timeframe, exchange, payload.columns, False
config_loc,
payload.pair,
payload.timeframe,
exchange,
payload.columns,
payload.live_mode,
)
except Exception as e:
raise HTTPException(status_code=502, detail=str(e))

View File

@@ -528,6 +528,7 @@ class PairHistoryRequest(PairCandlesRequest, ExchangeModePayloadMixin):
timerange: str
strategy: str
freqaimodel: str | None = None
live_mode: bool = False
class PairHistory(BaseModel):