feat: update api, change /pause from individual route to alias with /stopentry and /stopbuy

This commit is contained in:
Axel-CH
2025-03-22 23:50:27 -04:00
parent a4416b885a
commit 1d44f75659

View File

@@ -364,16 +364,12 @@ 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()
@router.post("/pause", response_model=StatusMsg, tags=["botcontrol"])
@router.post("/stopentry", response_model=StatusMsg, tags=["botcontrol"])
@router.post("/stopbuy", response_model=StatusMsg, tags=["botcontrol"])
def stop_buy(rpc: RPC = Depends(get_rpc)):