Request: BasePrivateWsRequest<"add_order", {
cash_order_qty?: number;
cl_ord_id?: string;
conditional?: {
limit_price?: number;
limit_price_type?: "static" | "pct" | "quote";
order_type:
| "limit"
| "stop-loss"
| "stop-loss-limit"
| "take-profit"
| "take-profit-limit"
| "trailing-stop"
| "trailing-stop-limit";
trigger_price?: number;
trigger_price_type?: "static" | "pct" | "quote";
};
deadline?: string;
display_qty?: number;
effective_time?: string;
expire_time?: string;
fee_preference?: "base" | "quote";
limit_price?: number;
limit_price_type?: "static" | "pct" | "quote";
margin?: boolean;
no_mpp?: boolean;
order_qty: number;
order_type:
| "limit"
| "market"
| "iceberg"
| "stop-loss"
| "stop-loss-limit"
| "take-profit"
| "take-profit-limit"
| "trailing-stop"
| "trailing-stop-limit"
| "settle-position";
order_userref?: number;
post_only?: boolean;
reduce_only?: boolean;
sender_sub_id?: string;
side: "buy" | "sell";
stp_type?: "cancel_newest" | "cancel_oldest" | "cancel_both";
symbol: string;
time_in_force?: "gtc" | "gtd" | "ioc";
triggers?: {
price: number;
price_type?: "static" | "pct" | "quote";
reference?: "index" | "last";
};
validate?: boolean;
}>
Reference: Add Order