mirror of
https://github.com/aljazceru/bitfinex-api-py.git
synced 2025-12-23 08:44:25 +01:00
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:
@@ -17,13 +17,13 @@ class WalletManager:
|
||||
wData = raw_ws_data[2]
|
||||
self.wallets = {}
|
||||
for wallet in wData:
|
||||
new_wallet = Wallet(wallet[0], wallet[1], wallet[2], wallet[3])
|
||||
new_wallet = Wallet(wallet[0], wallet[1], wallet[2], wallet[3], wallet[4])
|
||||
self.wallets[new_wallet.key] = new_wallet
|
||||
return self.get_wallets()
|
||||
|
||||
def _update_from_event(self, raw_ws_data):
|
||||
wallet = raw_ws_data[2]
|
||||
new_wallet = Wallet(wallet[0], wallet[1], wallet[2], wallet[3])
|
||||
new_wallet = Wallet(wallet[0], wallet[1], wallet[2], wallet[3], wallet[4])
|
||||
self.wallets[new_wallet.key] = new_wallet
|
||||
return new_wallet
|
||||
|
||||
|
||||
Reference in New Issue
Block a user