diff --git a/environment.yml b/environment.yml index 780fda7fb..fa71b5fe9 100644 --- a/environment.yml +++ b/environment.yml @@ -59,7 +59,6 @@ dependencies: - plotly - jupyter - - pip: - pycoingecko - py_find_1st diff --git a/freqtrade/exchange/gateio.py b/freqtrade/exchange/gateio.py index e6ee01c8a..cb6b7a2ac 100644 --- a/freqtrade/exchange/gateio.py +++ b/freqtrade/exchange/gateio.py @@ -1,6 +1,6 @@ """ Gate.io exchange subclass """ import logging -from typing import Dict +from typing import Dict, List from freqtrade.exchange import Exchange @@ -23,3 +23,5 @@ class Gateio(Exchange): } _headers = {'X-Gate-Channel-Id': 'freqtrade'} + + funding_fee_times: List[int] = [0, 8, 16] # hours of the day diff --git a/freqtrade/exchange/kucoin.py b/freqtrade/exchange/kucoin.py index 5d818f6a2..51de75ea4 100644 --- a/freqtrade/exchange/kucoin.py +++ b/freqtrade/exchange/kucoin.py @@ -1,6 +1,6 @@ """ Kucoin exchange subclass """ import logging -from typing import Dict +from typing import Dict, List from freqtrade.exchange import Exchange @@ -24,3 +24,5 @@ class Kucoin(Exchange): "order_time_in_force": ['gtc', 'fok', 'ioc'], "time_in_force_parameter": "timeInForce", } + + funding_fee_times: List[int] = [4, 12, 20] # hours of the day diff --git a/freqtrade/freqtradebot.py b/freqtrade/freqtradebot.py index 2673feed1..f104de56f 100644 --- a/freqtrade/freqtradebot.py +++ b/freqtrade/freqtradebot.py @@ -4,7 +4,7 @@ Freqtrade is the main module of this bot. It contains the class Freqtrade() import copy import logging import traceback -from datetime import datetime, time, timezone, timedelta, tzinfo +from datetime import datetime, time, timezone from math import isclose from threading import Lock from typing import Any, Dict, List, Optional