mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 10:21:59 +00:00
Improve naming of the schema
This commit is contained in:
parent
8c39740105
commit
ccd788e2ce
|
@ -489,7 +489,7 @@ class AvailablePairs(BaseModel):
|
|||
pair_interval: List[List[str]]
|
||||
|
||||
|
||||
class PairHistoryRequest(BaseModel):
|
||||
class PairCandlesRequest(BaseModel):
|
||||
pair: str
|
||||
timeframe: str
|
||||
limit: Optional[int] = None
|
||||
|
|
|
@ -17,7 +17,7 @@ from freqtrade.rpc.api_server.api_schemas import (AvailablePairs, Balances, Blac
|
|||
ForceEnterResponse, ForceExitPayload,
|
||||
FreqAIModelListResponse, Health, Locks,
|
||||
LocksPayload, Logs, MixTag, OpenTradeSchema,
|
||||
PairHistory, PairHistoryRequest, PerformanceEntry,
|
||||
PairCandlesRequest, PairHistory, PerformanceEntry,
|
||||
Ping, PlotConfig, Profit, ResultMsg, ShowConfig,
|
||||
Stats, StatusMsg, StrategyListResponse,
|
||||
StrategyResponse, SysInfo, Version,
|
||||
|
@ -297,7 +297,7 @@ def pair_candles(
|
|||
|
||||
|
||||
@router.post('/pair_candles', response_model=PairHistory, tags=['candle data'])
|
||||
def pair_candles_filtered(payload: PairHistoryRequest, rpc: RPC = Depends(get_rpc)):
|
||||
def pair_candles_filtered(payload: PairCandlesRequest, rpc: RPC = Depends(get_rpc)):
|
||||
# Advanced pair_candles endpoint with column filtering
|
||||
return rpc._rpc_analysed_dataframe(
|
||||
payload.pair, payload.timeframe, payload.limit, payload.columns)
|
||||
|
|
Loading…
Reference in New Issue
Block a user