Rename rest-client script history to trades

This commit is contained in:
Matthias 2020-04-07 19:52:34 +02:00
parent 296c616ce7
commit 492c2799dc

View File

@ -156,10 +156,10 @@ class FtRestClient():
"""
return self._get("show_config")
def history(self, limit=None):
def trades(self, limit=None):
"""Return trades history.
:param limit: Limits trades to the X last trades . No limit to get all the trades.
:param limit: Limits trades to the X last trades. No limit to get all the trades.
:return: json object
"""
return self._get("trades", params={"limit": limit} if limit else 0)