mirror of
https://github.com/freqtrade/freqtrade.git
synced 2025-12-14 03:41:14 +00:00
feat: support dynamic funding fees in dry/live mode
This commit is contained in:
@@ -2744,7 +2744,11 @@ class Exchange:
|
|||||||
has_cache = cache and (pair, timeframe, c_type) in self._klines
|
has_cache = cache and (pair, timeframe, c_type) in self._klines
|
||||||
# in case of existing cache, fill_missing happens after concatenation
|
# in case of existing cache, fill_missing happens after concatenation
|
||||||
ohlcv_df = ohlcv_to_dataframe(
|
ohlcv_df = ohlcv_to_dataframe(
|
||||||
ticks, timeframe, pair=pair, fill_missing=not has_cache, drop_incomplete=drop_incomplete
|
ticks,
|
||||||
|
timeframe,
|
||||||
|
pair=pair,
|
||||||
|
fill_missing=not has_cache and c_type != CandleType.FUNDING_RATE,
|
||||||
|
drop_incomplete=drop_incomplete,
|
||||||
)
|
)
|
||||||
# keeping parsed dataframe in cache
|
# keeping parsed dataframe in cache
|
||||||
if cache:
|
if cache:
|
||||||
@@ -2755,7 +2759,7 @@ class Exchange:
|
|||||||
concat([old, ohlcv_df], axis=0),
|
concat([old, ohlcv_df], axis=0),
|
||||||
timeframe,
|
timeframe,
|
||||||
pair,
|
pair,
|
||||||
fill_missing=True,
|
fill_missing=c_type != CandleType.FUNDING_RATE,
|
||||||
drop_incomplete=False,
|
drop_incomplete=False,
|
||||||
)
|
)
|
||||||
candle_limit = self.ohlcv_candle_limit(timeframe, self._config["candle_type_def"])
|
candle_limit = self.ohlcv_candle_limit(timeframe, self._config["candle_type_def"])
|
||||||
|
|||||||
Reference in New Issue
Block a user