Implment weekly/monthly RPC endpoints

This commit is contained in:
froggleston
2023-09-02 16:06:23 +01:00
parent e5a88fdeda
commit f838bc760f
5 changed files with 71 additions and 6 deletions

View File

@@ -134,6 +134,20 @@ class FtRestClient:
"""
return self._get("daily", params={"timescale": days} if days else None)
def weekly(self, weeks=None):
"""Return the profits for each week, and amount of trades.
:return: json object
"""
return self._get("weekly", params={"timescale": weeks} if weeks else None)
def monthly(self, months=None):
"""Return the profits for each month, and amount of trades.
:return: json object
"""
return self._get("monthly", params={"timescale": months} if months else None)
def edge(self):
"""Return information about edge.