feat: hyperliquid requires different precision modes

This commit is contained in:
Matthias 2024-08-13 09:49:46 +02:00
parent c60e00c77f
commit f64786543d

View File

@ -3,6 +3,8 @@
import logging import logging
from typing import Dict from typing import Dict
from ccxt import SIGNIFICANT_DIGITS
from freqtrade.exchange import Exchange from freqtrade.exchange import Exchange
@ -22,3 +24,10 @@ class Hyperliquid(Exchange):
"trades_has_history": False, # Trades endpoint doesn't seem available. "trades_has_history": False, # Trades endpoint doesn't seem available.
"exchange_has_overrides": {"fetchTrades": False}, "exchange_has_overrides": {"fetchTrades": False},
} }
@property
def precision_mode_price(self) -> int:
"""
Override the default precision mode for price.
"""
return SIGNIFICANT_DIGITS