Fix wrong typehint

This commit is contained in:
Matthias 2023-10-07 15:09:44 +02:00
parent 081411fba4
commit 094984eb2f
2 changed files with 3 additions and 4 deletions

View File

@ -2733,8 +2733,7 @@ class Exchange:
except KeyError: except KeyError:
raise ExchangeError("Could not find funding rates.") from None raise ExchangeError("Could not find funding rates.") from None
funding_mark_rates = self.combine_funding_and_mark( funding_mark_rates = self.combine_funding_and_mark(funding_rates, mark_rates)
funding_rates=funding_rates, mark_rates=mark_rates)
return self.calculate_funding_fees( return self.calculate_funding_fees(
funding_mark_rates, funding_mark_rates,
@ -2781,7 +2780,7 @@ class Exchange:
amount: float, amount: float,
is_short: bool, is_short: bool,
open_date: datetime, open_date: datetime,
close_date: Optional[datetime] = None, close_date: datetime,
time_in_ratio: Optional[float] = None time_in_ratio: Optional[float] = None
) -> float: ) -> float:
""" """

View File

@ -195,7 +195,7 @@ class Kraken(Exchange):
amount: float, amount: float,
is_short: bool, is_short: bool,
open_date: datetime, open_date: datetime,
close_date: Optional[datetime] = None, close_date: datetime,
time_in_ratio: Optional[float] = None time_in_ratio: Optional[float] = None
) -> float: ) -> float:
""" """