INNER CODE UNIT · Python

order_cancel_by_id

ejtraderLabs/ejtraderCT · app.py:127

async def order_cancel_by_id(id_model: IdModel):
    api.orderCancelById(id_model.id)
    return {"message": "Order cancelled"}


@app.post("/positionCloseById")
async def position_close_by_id(id_model: IdModel):
    api.positionCloseById(id_model.id)
    return {"message": "Position closed"}


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


@app.post("/close_all")

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…