From f64786543d76bdac5198c3af66df0aaaa532de2d Mon Sep 17 00:00:00 2001 From: Matthias Date: Tue, 13 Aug 2024 09:49:46 +0200 Subject: [PATCH] feat: hyperliquid requires different precision modes --- freqtrade/exchange/hyperliquid.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/freqtrade/exchange/hyperliquid.py b/freqtrade/exchange/hyperliquid.py index 9b8598432..1255b977a 100644 --- a/freqtrade/exchange/hyperliquid.py +++ b/freqtrade/exchange/hyperliquid.py @@ -3,6 +3,8 @@ import logging from typing import Dict +from ccxt import SIGNIFICANT_DIGITS + from freqtrade.exchange import Exchange @@ -22,3 +24,10 @@ class Hyperliquid(Exchange): "trades_has_history": False, # Trades endpoint doesn't seem available. "exchange_has_overrides": {"fetchTrades": False}, } + + @property + def precision_mode_price(self) -> int: + """ + Override the default precision mode for price. + """ + return SIGNIFICANT_DIGITS