From 19140e9cfabc41969d5918919ff9511587cb1a47 Mon Sep 17 00:00:00 2001 From: Matthias Date: Sun, 7 Sep 2025 12:01:32 +0200 Subject: [PATCH] doc: fix funding fee doc sample --- docs/strategy-customization.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/strategy-customization.md b/docs/strategy-customization.md index bbf8783c6..38e3bc90f 100644 --- a/docs/strategy-customization.md +++ b/docs/strategy-customization.md @@ -913,9 +913,9 @@ Retrieves the current funding rate for the pair and only works for futures pairs ``` python if self.dp.runmode.value in ('live', 'dry_run'): funding_rate = self.dp.funding_rate(metadata['pair']) - dataframe.iloc[-1, 'current_funding_rate'] = funding_rate['fundingRate'] - dataframe.iloc[-1, 'next_funding_timestamp'] = funding_rate['fundingTimestamp'] - dataframe.iloc[-1, 'next_funding_datetime'] = funding_rate['fundingDatetime'] + dataframe['current_funding_rate'] = funding_rate['fundingRate'] + dataframe['next_funding_timestamp'] = funding_rate['fundingTimestamp'] + dataframe['next_funding_datetime'] = funding_rate['fundingDatetime'] ``` The funding rate structure is aligned with the funding rate structure from [ccxt](https://github.com/ccxt/ccxt/wiki/Manual#funding-rate-structure), so the result will be formatted as follows: