feat: update api, change /pause from individual route to alias with /stopentry and /stopbuy
This commit is contained in:
@@ -364,16 +364,12 @@ def start(rpc: RPC = Depends(get_rpc)):
|
|||||||
return rpc._rpc_start()
|
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"])
|
@router.post("/stop", response_model=StatusMsg, tags=["botcontrol"])
|
||||||
def stop(rpc: RPC = Depends(get_rpc)):
|
def stop(rpc: RPC = Depends(get_rpc)):
|
||||||
return rpc._rpc_stop()
|
return rpc._rpc_stop()
|
||||||
|
|
||||||
|
|
||||||
|
@router.post("/pause", response_model=StatusMsg, tags=["botcontrol"])
|
||||||
@router.post("/stopentry", response_model=StatusMsg, tags=["botcontrol"])
|
@router.post("/stopentry", response_model=StatusMsg, tags=["botcontrol"])
|
||||||
@router.post("/stopbuy", response_model=StatusMsg, tags=["botcontrol"])
|
@router.post("/stopbuy", response_model=StatusMsg, tags=["botcontrol"])
|
||||||
def stop_buy(rpc: RPC = Depends(get_rpc)):
|
def stop_buy(rpc: RPC = Depends(get_rpc)):
|
||||||
|
|||||||
Reference in New Issue
Block a user