diff --git a/freqtrade/exchange/__init__.py b/freqtrade/exchange/__init__.py index b356a8147..e9aa8eac7 100644 --- a/freqtrade/exchange/__init__.py +++ b/freqtrade/exchange/__init__.py @@ -21,3 +21,4 @@ from freqtrade.exchange.hitbtc import Hitbtc from freqtrade.exchange.kraken import Kraken from freqtrade.exchange.kucoin import Kucoin from freqtrade.exchange.okex import Okex +from freqtrade.exchange.waves import Waves \ No newline at end of file diff --git a/freqtrade/exchange/common.py b/freqtrade/exchange/common.py index 3916ee8f7..2d63a3e56 100644 --- a/freqtrade/exchange/common.py +++ b/freqtrade/exchange/common.py @@ -34,6 +34,7 @@ BAD_EXCHANGES = { MAP_EXCHANGE_CHILDCLASS = { 'binanceus': 'binance', 'binanceje': 'binance', + 'wavesexchange': 'waves', } diff --git a/freqtrade/exchange/waves.py b/freqtrade/exchange/waves.py new file mode 100644 index 000000000..a86d06daf --- /dev/null +++ b/freqtrade/exchange/waves.py @@ -0,0 +1,28 @@ +""" Waves exchange subclass """ +import logging +from typing import Dict, Optional + +from freqtrade.exchange import Exchange + + +logger = logging.getLogger(__name__) + + +class Waves(Exchange): + """ + Waves 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. + """ + + _ft_has: Dict = { + "ohlcv_candle_limit": 1440, + } + + # There seems to be no minumum? + def get_min_pair_stake_amount(self, pair: str, price: float, + stoploss: float) -> Optional[float]: + return 0 \ No newline at end of file