From 9a1f2d42a7f3d33fcc00f10142a2664b48e7160d Mon Sep 17 00:00:00 2001 From: Axel-CH Date: Wed, 19 Mar 2025 02:52:38 -0400 Subject: [PATCH] fix: list_custom_data trade id variable value --- ft_client/freqtrade_client/ft_rest_client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ft_client/freqtrade_client/ft_rest_client.py b/ft_client/freqtrade_client/ft_rest_client.py index ef79efbe0..5e15bc185 100755 --- a/ft_client/freqtrade_client/ft_rest_client.py +++ b/ft_client/freqtrade_client/ft_rest_client.py @@ -288,7 +288,7 @@ class FtRestClient: def list_custom_data(self, trade_id, key=None): """List custom-data of the running bot for a specific trade. - :param trade_id: int - ID of the trade + :param trade_id: ID of the trade :param key: str, optional - Key of the custom-data :return: JSON object """ @@ -297,7 +297,7 @@ class FtRestClient: if key is not None: params["key"] = key - return self._get("trades/{tradeid}/custom-data", params=params) + return self._get(f"trades/{trade_id}/custom-data", params=params) def trade(self, trade_id): """Return specific trade