mirror of
https://github.com/aljazceru/bitfinex-api-py.git
synced 2025-12-22 00:04:20 +01:00
bfx_rest: get_ledgers support None symbol
This commit is contained in:
@@ -371,7 +371,8 @@ class BfxRest:
|
||||
See category filters here: https://docs.bitfinex.com/reference#rest-auth-ledgers
|
||||
@return Array <models.Ledger>
|
||||
"""
|
||||
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 , }
|
||||
|
||||
Reference in New Issue
Block a user