Skip to content
This repository has been archived by the owner on Sep 14, 2022. It is now read-only.

Commit

Permalink
Fixes an issue where the bot was checking the total balance of a coin…
Browse files Browse the repository at this point in the history
…, rather than the available balance
  • Loading branch information
Jamie Wade committed Jul 9, 2021
1 parent 969d35a commit 09e2efc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def get_coin_balance(coin):
headers={'Content-type': 'application/json'},
data=json.dumps(sign_request(req=coin_balance_request)))
coin_balance_data = json.loads(coin_balance_response.content)
coin_total_balance = coin_balance_data['result']['accounts'][0]['balance']
coin_total_balance = coin_balance_data['result']['accounts'][0]['available']

return coin_total_balance

Expand Down

0 comments on commit 09e2efc

Please sign in to comment.