getting available balance from wallet instead of API call.
This commit is contained in:
parent
1810fc9efa
commit
27a6dcf3fc
@ -338,8 +338,8 @@ class FreqtradeBot(object):
|
||||
stake_amount = self.config['stake_amount']
|
||||
|
||||
# TODO: should come from the wallet
|
||||
avaliable_amount = self.exchange.get_balance(self.config['stake_currency'])
|
||||
# avaliable_amount = self.wallets.wallets[self.config['stake_currency']].free
|
||||
#avaliable_amount = self.exchange.get_balance(self.config['stake_currency'])
|
||||
avaliable_amount = self.wallets.wallets[self.config['stake_currency']].free
|
||||
|
||||
if stake_amount == constants.UNLIMITED_STAKE_AMOUNT:
|
||||
open_trades = len(Trade.query.filter(Trade.is_open.is_(True)).all())
|
||||
|
Loading…
Reference in New Issue
Block a user