From e3aa778907d4f71c5adafa08c52e97bc01d3cb3d Mon Sep 17 00:00:00 2001 From: John Tashiro Date: Sun, 29 May 2022 09:33:39 -0400 Subject: [PATCH] add getLedger method --- ctapi/ctapi.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/ctapi/ctapi.py b/ctapi/ctapi.py index 77d9477..ff2c323 100644 --- a/ctapi/ctapi.py +++ b/ctapi/ctapi.py @@ -237,3 +237,19 @@ def getGains(self, **args): params.update(args) return self._api_query('getGains', params) + + + # + # getLedger + # + def getLedger(self, **args): + """ + Used to get Returns your Ledger + """ + + params = { + 'show_advanced': '1', + } + params.update(args) + + return self._api_query('getLedger', params)