i think it would be better to directly read available coins balance from wallet balance = client.get_asset_balance(asset='BTC')