Skip to content

Commit 1e1c9a2

Browse files
committed
chore: simplify types in exchange class
1 parent 6a01985 commit 1e1c9a2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

freqtrade/exchange/exchange.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -961,7 +961,7 @@ def price_get_one_pip(self, pair: str, price: float) -> float:
961961
return 1 / pow(10, precision)
962962

963963
def get_min_pair_stake_amount(
964-
self, pair: str, price: float, stoploss: float, leverage: float | None = 1.0
964+
self, pair: str, price: float, stoploss: float, leverage: float = 1.0
965965
) -> float | None:
966966
return self._get_stake_amount_limit(pair, price, stoploss, "min", leverage)
967967

@@ -980,7 +980,7 @@ def _get_stake_amount_limit(
980980
price: float,
981981
stoploss: float,
982982
limit: Literal["min", "max"],
983-
leverage: float | None = 1.0,
983+
leverage: float = 1.0,
984984
) -> float | None:
985985
isMin = limit == "min"
986986

0 commit comments

Comments
 (0)