interface CommandResult {
    clientId?: string;
    intent?: IntentState;
    kind: TradingCommandKind;
    legs?: { stopLoss?: string; takeProfit?: string };
    ok: boolean;
    reason?: string;
    state?: ClientOrderState;
}

Hierarchy (View Summary)

Properties

clientId?: string
intent?: IntentState

Client-owned intent. ok: true means SUBMITTED, never acknowledged.

legs?: { stopLoss?: string; takeProfit?: string }

Client ids of a bracket's legs the provider has named, in its receipt or on its order stream.

ok: boolean
reason?: string