Adding balance_available to the wallet (#132)

* Adding balance_available to the wallet
* Refactoring bfx_rest.py/get_wallets to use the updated Wallet class, which has available_balance i it

Co-authored-by: jon <fcmisc@gmail.com>
This commit is contained in:
Jon
2021-04-14 11:53:05 +01:00
committed by GitHub
parent 4b4a17ebd8
commit e1f5254372
5 changed files with 11 additions and 7 deletions

View File

@@ -383,7 +383,7 @@ class BfxRest:
"""
endpoint = "auth/r/wallets"
raw_wallets = await self.post(endpoint)
return [Wallet(*rw[:4]) for rw in raw_wallets]
return [Wallet(*rw[:5]) for rw in raw_wallets]
async def get_active_orders(self, symbol):
"""