|
|
|
|
@ -247,14 +247,17 @@ def pair_candles(
|
|
|
|
|
|
|
|
|
|
@router.get('/pair_history', response_model=PairHistory, tags=['candle data'])
|
|
|
|
|
def pair_history(pair: str, timeframe: str, timerange: str, strategy: str,
|
|
|
|
|
freqaimodel: Optional[str] = None,
|
|
|
|
|
config=Depends(get_config), exchange=Depends(get_exchange)):
|
|
|
|
|
# The initial call to this endpoint can be slow, as it may need to initialize
|
|
|
|
|
# the exchange class.
|
|
|
|
|
config = deepcopy(config)
|
|
|
|
|
config.update({
|
|
|
|
|
'strategy': strategy,
|
|
|
|
|
'timerange': timerange,
|
|
|
|
|
'freqaimodel': freqaimodel if freqaimodel else config.get('freqaimodel'),
|
|
|
|
|
})
|
|
|
|
|
return RPC._rpc_analysed_history_full(config, pair, timeframe, timerange, exchange)
|
|
|
|
|
return RPC._rpc_analysed_history_full(config, pair, timeframe, exchange)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@router.get('/plot_config', response_model=PlotConfig, tags=['candle data'])
|
|
|
|
|
|