Update small things
This commit is contained in:
parent
e8206bc751
commit
736a930152
@ -2057,7 +2057,8 @@ class Exchange:
|
|||||||
|
|
||||||
def get_interest_rate(self) -> float:
|
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
|
return 0.0
|
||||||
|
|
||||||
@ -2070,7 +2071,7 @@ class Exchange:
|
|||||||
is_short: bool
|
is_short: bool
|
||||||
) -> Optional[float]:
|
) -> Optional[float]:
|
||||||
|
|
||||||
if self.trading_mode in (TradingMode.SPOT, TradingMode.MARGIN):
|
if self.trading_mode in TradingMode.SPOT:
|
||||||
return None
|
return None
|
||||||
elif (
|
elif (
|
||||||
self.margin_mode == MarginMode.ISOLATED and
|
self.margin_mode == MarginMode.ISOLATED and
|
||||||
|
Loading…
Reference in New Issue
Block a user