Merge pull request #8311 from froggleston/develop

Fix None limit on pair_candles RPC call
This commit is contained in:
Matthias 2023-03-12 15:25:30 +01:00 committed by GitHub
commit d9bff68501
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -340,11 +340,13 @@ class FtRestClient():
:param limit: Limit result to the last n candles.
:return: json object
"""
return self._get("pair_candles", params={
params = {
"pair": pair,
"timeframe": timeframe,
"limit": limit,
})
}
if limit:
params['limit'] = limit
return self._get("pair_candles", params=params)
def pair_history(self, pair, timeframe, strategy, timerange=None):
"""Return historic, analyzed dataframe