From 4c78b8c6d115d97125f0b352944051edc8291c2d Mon Sep 17 00:00:00 2001 From: gaardiolor Date: Sat, 26 Oct 2024 14:13:57 +0200 Subject: [PATCH] updated dry_run_liquidation_price to match new signature fixed comment --- freqtrade/exchange/hyperliquid.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/freqtrade/exchange/hyperliquid.py b/freqtrade/exchange/hyperliquid.py index 2a25c73f6..31656d2d8 100644 --- a/freqtrade/exchange/hyperliquid.py +++ b/freqtrade/exchange/hyperliquid.py @@ -79,8 +79,7 @@ class Hyperliquid(Exchange): stake_amount: float, leverage: float, wallet_balance: float, # Or margin balance - mm_ex_1: float = 0.0, # (Binance) Cross only - upnl_ex_1: float = 0.0, # (Binance) Cross only + open_trades: list, ) -> Optional[float]: """ Optimized @@ -155,7 +154,7 @@ class Hyperliquid(Exchange): :return: funding fee since open_date :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: try: return self._fetch_and_calculate_funding_fees(pair, amount, is_short, open_date)