feat: add "live_mode" flag to pair_history
This commit is contained in:
@@ -60,7 +60,12 @@ def pair_history_filtered(payload: PairHistoryRequest, config=Depends(get_config
|
|||||||
exchange = get_exchange(config_loc)
|
exchange = get_exchange(config_loc)
|
||||||
try:
|
try:
|
||||||
return RPC._rpc_analysed_history_full(
|
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:
|
except Exception as e:
|
||||||
raise HTTPException(status_code=502, detail=str(e))
|
raise HTTPException(status_code=502, detail=str(e))
|
||||||
|
|||||||
@@ -528,6 +528,7 @@ class PairHistoryRequest(PairCandlesRequest, ExchangeModePayloadMixin):
|
|||||||
timerange: str
|
timerange: str
|
||||||
strategy: str
|
strategy: str
|
||||||
freqaimodel: str | None = None
|
freqaimodel: str | None = None
|
||||||
|
live_mode: bool = False
|
||||||
|
|
||||||
|
|
||||||
class PairHistory(BaseModel):
|
class PairHistory(BaseModel):
|
||||||
|
|||||||
Reference in New Issue
Block a user