mirror of
https://github.com/freqtrade/freqtrade.git
synced 2025-12-13 19:31:15 +00:00
feat: add get_funding_rate_timeframe to dataprovider
This commit is contained in:
@@ -620,3 +620,12 @@ class DataProvider:
|
|||||||
except ExchangeError:
|
except ExchangeError:
|
||||||
logger.warning(f"Could not fetch market data for {pair}. Assuming no delisting.")
|
logger.warning(f"Could not fetch market data for {pair}. Assuming no delisting.")
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
def get_funding_rate_timeframe(self) -> str:
|
||||||
|
"""
|
||||||
|
Get the funding rate timeframe from exchange options
|
||||||
|
:return: Timeframe string
|
||||||
|
"""
|
||||||
|
if self._exchange is None:
|
||||||
|
raise OperationalException(NO_EXCHANGE_EXCEPTION)
|
||||||
|
return self._exchange.get_option("funding_fee_timeframe")
|
||||||
|
|||||||
Reference in New Issue
Block a user