added support for waves.exchange
This commit is contained in:
parent
b3e36def34
commit
97f11309fe
@ -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
|
@ -34,6 +34,7 @@ BAD_EXCHANGES = {
|
|||||||
MAP_EXCHANGE_CHILDCLASS = {
|
MAP_EXCHANGE_CHILDCLASS = {
|
||||||
'binanceus': 'binance',
|
'binanceus': 'binance',
|
||||||
'binanceje': 'binance',
|
'binanceje': 'binance',
|
||||||
|
'wavesexchange': 'waves',
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
28
freqtrade/exchange/waves.py
Normal file
28
freqtrade/exchange/waves.py
Normal 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
|
Loading…
Reference in New Issue
Block a user