Okex get balance bug

Author: Jandy 0xDc4

Original Post Date: 21 Jun 2022

in the file:

hummingbot\hummingbot\connector\exchange\okex\okex_exchange.pyx

at line 308

when the field ‘availBal’ is empty, an exception is thrown.

I change to this:

self._account_available_balances[balance[‘ccy’]] = Decimal(balance[‘availBal’] if balance[‘availBal’] else ‘0’)

Author: Carlito 0x0c3

Hi, thank you for highlighting this issue.

However, the appropriate medium is to post at github whereby other developers and exchange maintainer can see, & resolve the issue.

Please use the link below to re-create the issue:

Author: Jandy 0xDc4

I will try to fix the bug and make a pull request.