chore: bitvavo uses DECIMAL_PLACES for amount rounding

closes #9560
This commit is contained in:
Matthias
2024-08-13 14:30:01 +02:00
parent f64786543d
commit 6ea450a4e1

View File

@@ -1,8 +1,10 @@
"""Kucoin exchange subclass.""" """Bitvavo exchange subclass."""
import logging import logging
from typing import Dict from typing import Dict
from ccxt import DECIMAL_PLACES
from freqtrade.exchange import Exchange from freqtrade.exchange import Exchange
@@ -22,3 +24,11 @@ class Bitvavo(Exchange):
_ft_has: Dict = { _ft_has: Dict = {
"ohlcv_candle_limit": 1440, "ohlcv_candle_limit": 1440,
} }
@property
def precisionMode(self) -> int:
"""
Exchange ccxt precisionMode
Override due to https://github.com/ccxt/ccxt/issues/20408
"""
return DECIMAL_PLACES