From a3225491429c321022917e497ee01fb46f6d7396 Mon Sep 17 00:00:00 2001 From: Dario Moceri Date: Mon, 25 Jan 2021 17:34:57 +0100 Subject: [PATCH] better rewriting --- bfxapi/rest/bfx_rest.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bfxapi/rest/bfx_rest.py b/bfxapi/rest/bfx_rest.py index 4584bee..27fe912 100644 --- a/bfxapi/rest/bfx_rest.py +++ b/bfxapi/rest/bfx_rest.py @@ -218,7 +218,9 @@ class BfxRest: _PLACEHOLDER, FOLLOWERS, FOLLOWING, _PLACEHOLDER, _PLACEHOLDER, _PLACEHOLDER, TIPPING_STATUS ] ], COMMENTS, _PLACEHOLDER, _PLACEHOLDER ] """ - endpoint = f"pulse/hist?limit={limit}&end={end}" + endpoint = f"pulse/hist?limit={limit}" + if end: + endpoint += f'&end={end}' hist = await self.fetch(endpoint) return hist