From f46c8cdc4a20bc8bb5021bca76659e24961f15f2 Mon Sep 17 00:00:00 2001 From: Axel-CH Date: Fri, 21 Mar 2025 16:58:23 -0400 Subject: [PATCH] feat: add paused state path to api --- freqtrade/rpc/api_server/api_v1.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/freqtrade/rpc/api_server/api_v1.py b/freqtrade/rpc/api_server/api_v1.py index afab46cc8..cb4a169bf 100644 --- a/freqtrade/rpc/api_server/api_v1.py +++ b/freqtrade/rpc/api_server/api_v1.py @@ -364,6 +364,11 @@ def start(rpc: RPC = Depends(get_rpc)): return rpc._rpc_start() +@router.post("/pause", response_model=StatusMsg, tags=["botcontrol"]) +def pause(rpc: RPC = Depends(get_rpc)): + return rpc._rpc_pause() + + @router.post("/stop", response_model=StatusMsg, tags=["botcontrol"]) def stop(rpc: RPC = Depends(get_rpc)): return rpc._rpc_stop()