Update small things

This commit is contained in:
Matthias 2022-03-01 19:23:14 +01:00
parent e8206bc751
commit 736a930152
1 changed files with 3 additions and 2 deletions

View File

@ -2057,7 +2057,8 @@ class Exchange:
def get_interest_rate(self) -> float:
"""
Calculate interest rate - necessary for Margin trading.
Retrieve interest rate - necessary for Margin trading.
Should not call the exchange directly when used from backtesting.
"""
return 0.0
@ -2070,7 +2071,7 @@ class Exchange:
is_short: bool
) -> Optional[float]:
if self.trading_mode in (TradingMode.SPOT, TradingMode.MARGIN):
if self.trading_mode in TradingMode.SPOT:
return None
elif (
self.margin_mode == MarginMode.ISOLATED and