From b1fb4c0e7a6779f348beb863d51090fca48c891e Mon Sep 17 00:00:00 2001 From: Matthias Date: Sat, 24 Aug 2024 08:39:25 +0200 Subject: [PATCH] fix: load_config fails with "does not exist" --- ftui/ftui_client.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ftui/ftui_client.py b/ftui/ftui_client.py index 0b0e298..6054fab 100644 --- a/ftui/ftui_client.py +++ b/ftui/ftui_client.py @@ -9,6 +9,7 @@ import freqtrade_client.ft_rest_client as ftrc import numpy as np import pandas as pd +from freqtrade_client.ft_client import load_config logging.basicConfig( level=logging.WARNING, @@ -44,7 +45,7 @@ def __init__( def setup_client(self): if self.url is None and self.port is None: - config = ftrc.load_config(self.config_path) + config = load_config(self.config_path) self.url = config.get("api_server", {}).get("listen_ip_address", "127.0.0.1") self.port = config.get("api_server", {}).get("listen_port", "8080") @@ -53,7 +54,7 @@ def setup_client(self): self.password = config.get("api_server", {}).get("password") else: if self.config_path is not None: - config = ftrc.load_config(self.config_path) + config = load_config(self.config_path) if self.username is None and self.password is None: self.username = config.get("api_server", {}).get("username")