various adjustement from PR discussion

This commit is contained in:
Ork Blutt
2020-04-06 11:00:31 +02:00
parent 8555c5b211
commit 6256025c73
4 changed files with 26 additions and 42 deletions

View File

@@ -156,12 +156,13 @@ class FtRestClient():
"""
return self._get("show_config")
def history(self, number=None):
"""Return the amount of open trades.
def history(self, limit=None):
"""Return trades history.
:param limit: Limits trades to the X last trades . No limit to get all the trades.
:return: json object
"""
return self._get("trades", params={"last_trades_number": number} if number else 0)
return self._get("trades", params={"limit": limit} if limit else 0)
def whitelist(self):
"""Show the current whitelist.