2021-04-13 10:28:07 +00:00
|
|
|
""" Kucoin exchange subclass """
|
|
|
|
import logging
|
2021-10-09 18:36:00 +00:00
|
|
|
from typing import Dict, List
|
2021-04-13 10:28:07 +00:00
|
|
|
|
|
|
|
from freqtrade.exchange import Exchange
|
|
|
|
|
|
|
|
|
|
|
|
logger = logging.getLogger(__name__)
|
|
|
|
|
|
|
|
|
|
|
|
class Kucoin(Exchange):
|
|
|
|
"""
|
|
|
|
Kucoin 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 = {
|
|
|
|
"l2_limit_range": [20, 100],
|
|
|
|
"l2_limit_range_required": False,
|
2021-09-16 04:28:10 +00:00
|
|
|
"order_time_in_force": ['gtc', 'fok', 'ioc'],
|
|
|
|
"time_in_force_parameter": "timeInForce",
|
2021-04-13 10:28:07 +00:00
|
|
|
}
|
2021-10-09 18:36:00 +00:00
|
|
|
|
|
|
|
funding_fee_times: List[int] = [4, 12, 20] # hours of the day
|