mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 10:21:59 +00:00
feat: hyperliquid requires different precision modes
This commit is contained in:
parent
c60e00c77f
commit
f64786543d
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user