INNER CODE UNIT · Python
order_modify
ejtraderLabs/ejtraderCT · app.py:157
async def order_modify(modify: ModifyModel):
api.orderModify(modify.id, modify.stoploss, modify.takeprofit, modify.price)
return {"message": "Order modified"}
@app.post("/logout")
async def logout():
return {"message": api.logout()}
@app.post("/status")
async def status():
return {"connected": api.isconnected()}