INNER CODE UNIT · Python

positions

ejtraderLabs/ejtraderCT · app.py:117

async def positions():
    return api.positions()


@app.get("/orders")
async def orders():
    return api.orders()


@app.post("/orderCancelById")
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)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…