diff --git a/bfxapi/rest/bfx_rest.py b/bfxapi/rest/bfx_rest.py index 79f4f48..f75dba9 100644 --- a/bfxapi/rest/bfx_rest.py +++ b/bfxapi/rest/bfx_rest.py @@ -371,7 +371,8 @@ class BfxRest: See category filters here: https://docs.bitfinex.com/reference#rest-auth-ledgers @return Array """ - endpoint = "auth/r/ledgers/{}/hist".format(symbol) + endpoint = ("auth/r/ledgers/{}/hist".format(symbol) + if symbol else "auth/r/ledgers/hist") params = "?start={}&end={}&limit={}".format(start, end, limit) if (category): payload = { "category": category , }