Skip to content

Commit

Permalink
Fix None limit on pair_candles RPC call
Browse files Browse the repository at this point in the history
  • Loading branch information
froggleston committed Mar 12, 2023
1 parent b23841f commit aa283a0
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions scripts/rest_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -340,12 +340,14 @@ def pair_candles(self, pair, timeframe, limit=None):
: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
Expand Down

0 comments on commit aa283a0

Please sign in to comment.