Added dry run capability to funding-fee

This commit is contained in:
Sam Germain
2021-10-22 09:35:50 -06:00
parent 2533d3b420
commit 3eda9455b9
5 changed files with 95 additions and 45 deletions

View File

@@ -1,6 +1,6 @@
""" Gate.io exchange subclass """
import logging
from typing import Dict, List
from typing import Dict, List, Optional
from freqtrade.exceptions import OperationalException
from freqtrade.exchange import Exchange
@@ -36,12 +36,13 @@ class Gateio(Exchange):
def get_funding_rate_history(
self,
pair: str,
start: int,
end: int
end: Optional[int] = None
) -> Dict:
'''
:param start: timestamp in ms of the beginning time
:param end: timestamp in ms of the end time
'''
# TODO-lev: Has a max limit into the past of 333 days
return super().get_funding_rate_history(start, end)
return super().get_funding_rate_history(pair, start, end)