Params: {
    cl_ord_id?: string;
    close?: {
        ordertype?:
            | "limit"
            | "stop-loss"
            | "take-profit"
            | "stop-loss-limit"
            | "take-profit-limit"
            | "trailing-stop"
            | "trailing-stop-limit";
        price?: string;
        price2?: string;
    };
    deadline?: string;
    displayvol?: string;
    expiretm?: string;
    leverage?: string;
    oflags?: string;
    ordertype:
        | "market"
        | "limit"
        | "stop-loss"
        | "take-profit"
        | "stop-loss-limit"
        | "take-profit-limit"
        | "settle-position";
    pair: string;
    price?: string;
    price2?: string;
    reduce_only?: boolean;
    starttm?: string;
    stptype?: "cancel-newest" | "cancel-oldest" | "cancel-both";
    timeinforce?: "GTC" | "IOC" | "GTD";
    trigger?: "last" | "index";
    type: "buy" | "sell";
    userref?: number;
    validate?: boolean;
    volume: string;
}

Reference: Add Order