updated dry_run_liquidation_price to match new signature
fixed comment
This commit is contained in:
@@ -79,8 +79,7 @@ class Hyperliquid(Exchange):
|
|||||||
stake_amount: float,
|
stake_amount: float,
|
||||||
leverage: float,
|
leverage: float,
|
||||||
wallet_balance: float, # Or margin balance
|
wallet_balance: float, # Or margin balance
|
||||||
mm_ex_1: float = 0.0, # (Binance) Cross only
|
open_trades: list,
|
||||||
upnl_ex_1: float = 0.0, # (Binance) Cross only
|
|
||||||
) -> Optional[float]:
|
) -> Optional[float]:
|
||||||
"""
|
"""
|
||||||
Optimized
|
Optimized
|
||||||
@@ -155,7 +154,7 @@ class Hyperliquid(Exchange):
|
|||||||
:return: funding fee since open_date
|
:return: funding fee since open_date
|
||||||
:raises: ExchangeError if something goes wrong.
|
:raises: ExchangeError if something goes wrong.
|
||||||
"""
|
"""
|
||||||
# Bybit does not provide "applied" funding fees per position.
|
# Hyperliquid does not have fetchFundingHistory
|
||||||
if self.trading_mode == TradingMode.FUTURES:
|
if self.trading_mode == TradingMode.FUTURES:
|
||||||
try:
|
try:
|
||||||
return self._fetch_and_calculate_funding_fees(pair, amount, is_short, open_date)
|
return self._fetch_and_calculate_funding_fees(pair, amount, is_short, open_date)
|
||||||
|
|||||||
Reference in New Issue
Block a user