INNER CODE UNIT · Python

cancel_all

ejtraderLabs/ejtraderCT · app.py:139

async def cancel_all():
    api.cancel_all()
    return {"message": "All orders cancelled"}


@app.post("/close_all")
async def close_all():
    api.close_all()
    return {"message": "All positions closed"}


@app.post("/positionModify")
async def position_modify(modify: ModifyModel):
    api.positionModify(modify.id, modify.stoploss, modify.takeprofit)
    return {"message": "Position modified"}


@app.post("/orderModify")

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…