websocket: support events pu, pc, pn

This commit is contained in:
JacobPlaster
2020-07-07 11:08:39 +01:00
parent 3fa6feb888
commit 84dd5d8d09
3 changed files with 84 additions and 50 deletions

View File

@@ -368,7 +368,17 @@ class BfxRest:
async def get_ledgers(self, symbol, start, end, limit=25, category=None):
"""
Get all ledgers on account associated with API_KEY - Requires authentication.
You can emit the symbol param in order to receive ledger entries for all symbols.
See category filters here: https://docs.bitfinex.com/reference#rest-auth-ledgers
# Attributes
@param symbol string: pair symbol i.e tBTCUSD - can be omitted to receive all entries
@param start int: start of window
@param end int: end of window
@param limit int: max number of entries
@param category int: filter category to receive specific ledger entries
@return Array <models.Ledger>
"""
endpoint = ("auth/r/ledgers/{}/hist".format(symbol)