2024-08-13 12:30:01 +00:00
|
|
|
"""Bitvavo exchange subclass."""
|
2024-05-12 14:58:33 +00:00
|
|
|
|
2023-04-17 05:25:09 +00:00
|
|
|
import logging
|
|
|
|
|
2024-08-13 12:30:01 +00:00
|
|
|
from ccxt import DECIMAL_PLACES
|
|
|
|
|
2023-04-17 05:25:09 +00:00
|
|
|
from freqtrade.exchange import Exchange
|
2024-09-04 05:15:17 +00:00
|
|
|
from freqtrade.exchange.exchange_types import FtHas
|
2023-04-17 05:25:09 +00:00
|
|
|
|
|
|
|
|
|
|
|
logger = logging.getLogger(__name__)
|
|
|
|
|
|
|
|
|
|
|
|
class Bitvavo(Exchange):
|
|
|
|
"""Bitvavo exchange class.
|
|
|
|
|
|
|
|
Contains adjustments needed for Freqtrade to work with this exchange.
|
|
|
|
|
|
|
|
Please note that this exchange is not included in the list of exchanges
|
|
|
|
officially supported by the Freqtrade development team. So some features
|
|
|
|
may still not work as expected.
|
|
|
|
"""
|
|
|
|
|
2024-09-04 05:15:17 +00:00
|
|
|
_ft_has: FtHas = {
|
2023-04-17 05:25:09 +00:00
|
|
|
"ohlcv_candle_limit": 1440,
|
|
|
|
}
|
2024-08-13 12:30:01 +00:00
|
|
|
|
|
|
|
@property
|
|
|
|
def precisionMode(self) -> int:
|
|
|
|
"""
|
|
|
|
Exchange ccxt precisionMode
|
|
|
|
Override due to https://github.com/ccxt/ccxt/issues/20408
|
|
|
|
"""
|
|
|
|
return DECIMAL_PLACES
|