INNER CODE UNIT · Python

quote

ejtraderLabs/ejtraderCT · app.py:54

async def quote(symbol: str = None):
    if symbol:
        quote = api.quote(symbol)
    else:
        quote = api.quote()
    return quote


@app.post("/buy")
async def buy(order: OrderModel):
    return {
        "Position": api.buy(
            order.symbol, order.volume, order.stoploss, order.takeprofit
        )
    }


@app.post("/sell")

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…