Add docs to get_trade_stake_amount function

This commit is contained in:
Luis Felipe Diaz Chica 2018-07-18 01:36:39 -05:00
parent 78205da4f0
commit ee8e890f50
1 changed files with 5 additions and 0 deletions

View File

@ -248,6 +248,11 @@ class FreqtradeBot(object):
return ticker['ask'] + balance * (ticker['last'] - ticker['ask'])
def _get_trade_stake_amount(self) -> Optional[float]:
"""
Check if stake amount can be fulfilled with the available balance
for the stake currency
:return: float: Stake Amount
"""
stake_amount = self.config['stake_amount']
avaliable_amount = self.exchange.get_balance(self.config['stake_currency'])