From 1812942c5fa7770e3fb8089288950a5b8da2d53f Mon Sep 17 00:00:00 2001 From: JacobPlaster Date: Tue, 7 Jul 2020 10:33:27 +0100 Subject: [PATCH] bfx_rest: get_ledgers support None symbol --- bfxapi/rest/bfx_rest.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 , }