From e78df59e308965800c3c8185bbe2b920aa62c273 Mon Sep 17 00:00:00 2001 From: Matthias Date: Tue, 2 Nov 2021 19:49:53 +0100 Subject: [PATCH] Configure candle length for OKEX --- freqtrade/exchange/__init__.py | 1 + freqtrade/exchange/okex.py | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 freqtrade/exchange/okex.py diff --git a/freqtrade/exchange/__init__.py b/freqtrade/exchange/__init__.py index b08213d28..614e8ad68 100644 --- a/freqtrade/exchange/__init__.py +++ b/freqtrade/exchange/__init__.py @@ -19,3 +19,4 @@ from freqtrade.exchange.gateio import Gateio from freqtrade.exchange.hitbtc import Hitbtc from freqtrade.exchange.kraken import Kraken from freqtrade.exchange.kucoin import Kucoin +from freqtrade.exchange.okex import Okex diff --git a/freqtrade/exchange/okex.py b/freqtrade/exchange/okex.py new file mode 100644 index 000000000..5ab6f3147 --- /dev/null +++ b/freqtrade/exchange/okex.py @@ -0,0 +1,18 @@ +import logging +from typing import Dict + +from freqtrade.exchange import Exchange + + +logger = logging.getLogger(__name__) + + +class Okex(Exchange): + """ + Okex exchange class. Contains adjustments needed for Freqtrade to work + with this exchange. + """ + + _ft_has: Dict = { + "ohlcv_candle_limit": 100, + }