Interface BracketOrderRequest

An entry whose stop and target legs the provider places and links itself.

interface BracketOrderRequest {
    account?: string;
    clientToken?: string;
    duration?: OrderDuration;
    exchange?: string;
    expiresAt?: number;
    leverage?: number;
    price?: number;
    product?: "CNC" | "NRML" | "MIS";
    qty: number;
    side: OrderSide;
    stopLoss: number;
    symbol: string;
    takeProfit: number;
    triggerPrice?: number;
    type: OrderType;
}

Hierarchy (View Summary)

Properties

account?: string

The account the order is for. Needs the accounts feature; never dropped on the way to the wire.

clientToken?: string

Idempotency token; a retry with the same token is never double-sent.

duration?: OrderDuration

Time in force. Omitted leaves the provider's own default. Needs the provider to list it.

exchange?: string
expiresAt?: number

When a GTD order lapses, UTC seconds. Only with GTD.

leverage?: number

Margin multiplier to request. Needs the leverage feature.

price?: number
product?: "CNC" | "NRML" | "MIS"

Product: CNC (delivery), NRML (F&O carry), MIS (intraday). Required by OpenAlgo.

qty: number
side: OrderSide
stopLoss: number

Trigger of the protective stop leg.

symbol: string
takeProfit: number

Limit price of the target leg.

triggerPrice?: number
type: OrderType