added support for waves.exchange

This commit is contained in:
Peter Willemsen 2022-01-31 16:01:50 +01:00
parent b3e36def34
commit 97f11309fe
No known key found for this signature in database
GPG Key ID: 5C9DD4BFB96A28F0
3 changed files with 30 additions and 0 deletions

View File

@ -21,3 +21,4 @@ from freqtrade.exchange.hitbtc import Hitbtc
from freqtrade.exchange.kraken import Kraken from freqtrade.exchange.kraken import Kraken
from freqtrade.exchange.kucoin import Kucoin from freqtrade.exchange.kucoin import Kucoin
from freqtrade.exchange.okex import Okex from freqtrade.exchange.okex import Okex
from freqtrade.exchange.waves import Waves

View File

@ -34,6 +34,7 @@ BAD_EXCHANGES = {
MAP_EXCHANGE_CHILDCLASS = { MAP_EXCHANGE_CHILDCLASS = {
'binanceus': 'binance', 'binanceus': 'binance',
'binanceje': 'binance', 'binanceje': 'binance',
'wavesexchange': 'waves',
} }

View File

@ -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