return type of stake_amount set to float

This commit is contained in:
misagh 2018-10-02 12:20:48 +02:00
parent 26b3c3f7a8
commit 8741a63783

View File

@ -135,7 +135,7 @@ class Edge():
return True
def stake_amount(self, pair: str) -> str:
def stake_amount(self, pair: str) -> float:
info = [x for x in self._cached_pairs if x[0] == pair][0]
stoploss = info[1]
allowed_capital_at_risk = round(self._total_capital * self._allowed_risk, 5)