Added get_funding_rate_history method to exchange

This commit is contained in:
Sam Germain
2021-10-18 01:37:42 -06:00
parent ef8b617eb2
commit 2533d3b420
3 changed files with 63 additions and 1 deletions

View File

@@ -33,3 +33,15 @@ class Gateio(Exchange):
if any(v == 'market' for k, v in order_types.items()):
raise OperationalException(
f'Exchange {self.name} does not support market orders.')
def get_funding_rate_history(
self,
start: int,
end: int
) -> 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)