Skip to content

Commit

Permalink
Fixed invalid usage of balance response.
Browse files Browse the repository at this point in the history
  • Loading branch information
theag3nt committed Feb 27, 2014
1 parent d7159e9 commit 8888479
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cexbot/cexapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def buy_balance(self, balance_threshold=0.0001):
logging.error('price error')
return False
price = float(price)
balance = float(balance)
balance = float(balance['BTC']['available'])
amount = balance / price
order_total = amount * price
if amount > 0.0001:
Expand Down

0 comments on commit 8888479

Please sign in to comment.