feat: add get_funding_rate_timeframe to dataprovider

This commit is contained in:
Matthias
2025-12-06 14:13:53 +01:00
parent 730383ab18
commit 3bd911982f

View File

@@ -620,3 +620,12 @@ class DataProvider:
except ExchangeError:
logger.warning(f"Could not fetch market data for {pair}. Assuming no delisting.")
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")