Fix problem with inf values returned from dataframe for api methods

This commit is contained in:
Matthias
2021-02-11 20:21:07 +01:00
parent aa79574c0c
commit 843fb204e9
2 changed files with 3 additions and 2 deletions

View File

@@ -167,7 +167,7 @@ def reload_config(rpc: RPC = Depends(get_rpc)):
@router.get('/pair_candles', response_model=PairHistory, tags=['candle data'])
def pair_candles(pair: str, timeframe: str, limit: Optional[int], rpc=Depends(get_rpc)):
def pair_candles(pair: str, timeframe: str, limit: Optional[int], rpc: RPC = Depends(get_rpc)):
return rpc._rpc_analysed_dataframe(pair, timeframe, limit)