From 8741a63783c11ec3035a81ea4ba3b40ad15a38c3 Mon Sep 17 00:00:00 2001 From: misagh Date: Tue, 2 Oct 2018 12:20:48 +0200 Subject: [PATCH] return type of stake_amount set to float --- freqtrade/edge/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/freqtrade/edge/__init__.py b/freqtrade/edge/__init__.py index ecc7544a9..edcd66337 100644 --- a/freqtrade/edge/__init__.py +++ b/freqtrade/edge/__init__.py @@ -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)