From 50dcd04816e26898d9cb4fcc7bde732069ce59e3 Mon Sep 17 00:00:00 2001 From: Matthias Date: Fri, 12 Jul 2024 07:09:52 +0200 Subject: [PATCH] chore: Add cryptocom base exchange class adjust candle-limit to the appropriate number --- freqtrade/exchange/__init__.py | 1 + freqtrade/exchange/cryptocom.py | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 freqtrade/exchange/cryptocom.py diff --git a/freqtrade/exchange/__init__.py b/freqtrade/exchange/__init__.py index 6510e8d4f..fc92ed5a9 100644 --- a/freqtrade/exchange/__init__.py +++ b/freqtrade/exchange/__init__.py @@ -11,6 +11,7 @@ from freqtrade.exchange.bitpanda import Bitpanda from freqtrade.exchange.bitvavo import Bitvavo from freqtrade.exchange.bybit import Bybit from freqtrade.exchange.coinbasepro import Coinbasepro +from freqtrade.exchange.cryptocom import Cryptocom from freqtrade.exchange.exchange_utils import ( ROUND_DOWN, ROUND_UP, diff --git a/freqtrade/exchange/cryptocom.py b/freqtrade/exchange/cryptocom.py new file mode 100644 index 000000000..e926f54f5 --- /dev/null +++ b/freqtrade/exchange/cryptocom.py @@ -0,0 +1,20 @@ +"""Crypto.com exchange subclass""" + +import logging +from typing import Dict + +from freqtrade.exchange import Exchange + + +logger = logging.getLogger(__name__) + + +class Cryptocom(Exchange): + """ + Crypto.com exchange class. Contains adjustments needed for Freqtrade to work + with this exchange. + """ + + _ft_has: Dict = { + "ohlcv_candle_limit": 300, + }