From 5888da5bc5a8069786844c99ca38d14b23bfc1bc Mon Sep 17 00:00:00 2001 From: Matthias Date: Fri, 29 Mar 2024 08:39:28 +0100 Subject: [PATCH] Re-add rest_client script --- ft_client/freqtrade_client/ft_rest_client.py | 2 -- scripts/rest_client.py | 14 ++++++++++++++ 2 files changed, 14 insertions(+), 2 deletions(-) create mode 100755 scripts/rest_client.py diff --git a/ft_client/freqtrade_client/ft_rest_client.py b/ft_client/freqtrade_client/ft_rest_client.py index 9dccefc33..d88c99c9b 100755 --- a/ft_client/freqtrade_client/ft_rest_client.py +++ b/ft_client/freqtrade_client/ft_rest_client.py @@ -415,5 +415,3 @@ class FtRestClient: :return: json object """ return self._get("health") - - diff --git a/scripts/rest_client.py b/scripts/rest_client.py new file mode 100755 index 000000000..c22dd18ae --- /dev/null +++ b/scripts/rest_client.py @@ -0,0 +1,14 @@ +#!/usr/bin/env python3 +""" +Simple command line client into RPC commands +Can be used as an alternate to Telegram + +Should not import anything from freqtrade, +so it can be used as a standalone script. +""" + +from freqtrade_client.ft_client import main + + +if __name__ == '__main__': + main()