mirror of
https://github.com/aljazceru/bitfinex-api-py.git
synced 2025-12-22 08:14: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
|
See category filters here: https://docs.bitfinex.com/reference#rest-auth-ledgers
|
||||||
@return Array <models.Ledger>
|
@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)
|
params = "?start={}&end={}&limit={}".format(start, end, limit)
|
||||||
if (category):
|
if (category):
|
||||||
payload = { "category": category , }
|
payload = { "category": category , }
|
||||||
|
|||||||
Reference in New Issue
Block a user