import { ErrorCode, FeeAsset, LimitFok, LimitGtc, LimitGtd, LimitIoc, MarketIoc, RiskLimitGtc, RiskMarketIoc, SelfTradePreventionMode, Side, TriggerPriceSource } from "../../gen/orders/v1/orders_pb.js"; import { OrderStatus } from "../../gen/orders/v1/orders_read_pb.js"; import { SdkScales } from "../../shared/decimal-surface.js"; import * as v from "valibot"; //#region src/services/orders/orders-input.schemas.d.ts declare const OpenOrdersInputSchema: v.SchemaWithPipe, true>; readonly includeAttachedRiskState: v.OptionalSchema, false>; readonly symbolId: v.OptionalSchema, v.IntegerAction, v.GtValueAction, v.MaxValueAction]>, undefined>, undefined>; readonly triggerId: v.SchemaWithPipe, v.TrimAction]>, undefined>, v.TransformAction]>; readonly side: v.SchemaWithPipe, undefined>, v.TransformAction<"buy" | "sell" | undefined, Side.BUY | Side.SELL | undefined>]>; readonly limit: v.OptionalSchema, v.IntegerAction, v.MinValueAction, v.MaxValueAction]>, undefined>; readonly pageToken: v.OptionalSchema, v.TrimAction]>, undefined>; readonly account: v.OptionalSchema, v.StrictObjectSchema<{ readonly subaccountId: v.SchemaWithPipe, v.TrimAction, v.MinLengthAction]>; }, undefined>], undefined>, undefined>; }, undefined>, v.TransformAction<{ includeAttachedRisk: boolean; includeAttachedRiskState: boolean; symbolId?: number[] | undefined; triggerId?: bigint | undefined; side?: Side.BUY | Side.SELL | undefined; limit?: number | undefined; pageToken?: string | undefined; account?: "active" | "main" | { subaccountId: string; } | undefined; }, { subaccountId: bigint | undefined; includeAttachedRisk: boolean; includeAttachedRiskState: boolean; symbolId?: number[] | undefined; triggerId?: bigint | undefined; side?: Side.BUY | Side.SELL | undefined; limit?: number | undefined; pageToken?: string | undefined; }>]>; type OpenOrdersInput = v.InferInput; declare const OrderHistoryInputSchema: v.SchemaWithPipe, true>; readonly includeAttachedRiskState: v.OptionalSchema, false>; readonly status: v.SchemaWithPipe, undefined>, v.TransformAction<"canceled" | "rejected" | "filled" | undefined, OrderStatus.FILLED | OrderStatus.CANCELED | OrderStatus.REJECTED | undefined>]>; readonly startTsNs: v.SchemaWithPipe, v.TrimAction]>, undefined>, v.TransformAction]>; readonly endTsNs: v.SchemaWithPipe, v.TrimAction]>, undefined>, v.TransformAction]>; readonly symbolId: v.OptionalSchema, v.IntegerAction, v.GtValueAction, v.MaxValueAction]>, undefined>, undefined>; readonly triggerId: v.SchemaWithPipe, v.TrimAction]>, undefined>, v.TransformAction]>; readonly side: v.SchemaWithPipe, undefined>, v.TransformAction<"buy" | "sell" | undefined, Side.BUY | Side.SELL | undefined>]>; readonly limit: v.OptionalSchema, v.IntegerAction, v.MinValueAction, v.MaxValueAction]>, undefined>; readonly pageToken: v.OptionalSchema, v.TrimAction]>, undefined>; readonly account: v.OptionalSchema, v.StrictObjectSchema<{ readonly subaccountId: v.SchemaWithPipe, v.TrimAction, v.MinLengthAction]>; }, undefined>], undefined>, undefined>; }, undefined>, v.TransformAction<{ includeAttachedRisk: boolean; includeAttachedRiskState: boolean; status?: OrderStatus.FILLED | OrderStatus.CANCELED | OrderStatus.REJECTED | undefined; startTsNs?: bigint | undefined; endTsNs?: bigint | undefined; symbolId?: number[] | undefined; triggerId?: bigint | undefined; side?: Side.BUY | Side.SELL | undefined; limit?: number | undefined; pageToken?: string | undefined; account?: "active" | "main" | { subaccountId: string; } | undefined; }, { subaccountId: bigint | undefined; includeAttachedRisk: boolean; includeAttachedRiskState: boolean; status?: OrderStatus.FILLED | OrderStatus.CANCELED | OrderStatus.REJECTED | undefined; startTsNs?: bigint | undefined; endTsNs?: bigint | undefined; symbolId?: number[] | undefined; triggerId?: bigint | undefined; side?: Side.BUY | Side.SELL | undefined; limit?: number | undefined; pageToken?: string | undefined; }>]>; type OrderHistoryInput = v.InferInput; declare function createOrderIntentInputSchema(scales: SdkScales): v.SchemaWithPipe, v.TrimAction, v.MinLengthAction]>; readonly maxQuoteDebit: v.OptionalSchema, undefined>; readonly symbolId: v.SchemaWithPipe, v.IntegerAction, v.GtValueAction, v.MaxValueAction]>; readonly side: v.SchemaWithPipe, v.TransformAction<"buy" | "sell", Side.BUY | Side.SELL>]>; readonly execution: v.VariantSchema<"type", [v.SchemaWithPipe; readonly maxSlippage: v.OptionalSchema; readonly slippage: v.SchemaWithPipe, v.TrimAction, v.MinLengthAction]>; }, undefined>, v.StrictObjectSchema<{ readonly kind: v.LiteralSchema<"bps", undefined>; readonly bps: v.UnionSchema<[v.SchemaWithPipe, v.TrimAction, v.MinLengthAction]>, v.SchemaWithPipe, v.GtValueAction]>], undefined>; }, undefined>, v.StrictObjectSchema<{ readonly kind: v.LiteralSchema<"none", undefined>; }, undefined>], undefined>, undefined>; readonly clientRefPrice: v.OptionalSchema, v.TrimAction, v.MinLengthAction]>, undefined>; }, undefined>, v.TransformAction<{ type: "market_ioc"; maxSlippage?: { kind: "slippage"; slippage: string; } | { kind: "bps"; bps: string | number; } | { kind: "none"; } | undefined; clientRefPrice?: string | undefined; }, { case: "marketIoc"; value: MarketIoc; }>]>, v.SchemaWithPipe; readonly price: v.SchemaWithPipe, v.TrimAction, v.MinLengthAction]>; readonly postOnly: v.OptionalSchema, false>; }, undefined>, v.TransformAction<{ type: "limit_gtc"; price: string; postOnly: boolean; }, { case: "limitGtc"; value: LimitGtc; }>]>, v.SchemaWithPipe; readonly price: v.SchemaWithPipe, v.TrimAction, v.MinLengthAction]>; /** Exact UTC expiry as integer epoch milliseconds. */ readonly expireAt: v.SchemaWithPipe, v.IntegerAction, v.MinValueAction, v.MaxValueAction]>; readonly postOnly: v.OptionalSchema, false>; }, undefined>, v.TransformAction<{ type: "limit_gtd"; price: string; expireAt: number; postOnly: boolean; }, { case: "limitGtd"; value: LimitGtd; }>]>, v.SchemaWithPipe; readonly price: v.SchemaWithPipe, v.TrimAction, v.MinLengthAction]>; }, undefined>, v.TransformAction<{ type: "limit_ioc"; price: string; }, { case: "limitIoc"; value: LimitIoc; }>]>, v.SchemaWithPipe; readonly price: v.SchemaWithPipe, v.TrimAction, v.MinLengthAction]>; }, undefined>, v.TransformAction<{ type: "limit_fok"; price: string; }, { case: "limitFok"; value: LimitFok; }>]>], undefined>; readonly clientOrderId: v.OptionalSchema, v.TrimAction, v.MaxLengthAction, v.RegexAction]>, undefined>; readonly feeAsset: v.SchemaWithPipe, undefined>, v.TransformAction<"quote" | "base" | undefined, FeeAsset.QUOTE | FeeAsset.BASE | undefined>]>; readonly selfTradePreventionMode: v.SchemaWithPipe, undefined>, v.TransformAction<"expire_taker" | "expire_maker" | "expire_both" | undefined, SelfTradePreventionMode.EXPIRE_MAKER | SelfTradePreventionMode.EXPIRE_TAKER | SelfTradePreventionMode.EXPIRE_BOTH | undefined>]>; readonly risk: v.SchemaWithPipe, v.TrimAction, v.MinLengthAction]>; readonly execution: v.VariantSchema<"type", [v.StrictObjectSchema<{ readonly type: v.LiteralSchema<"market_ioc", undefined>; }, undefined>, v.StrictObjectSchema<{ readonly type: v.LiteralSchema<"limit_gtc", undefined>; readonly price: v.SchemaWithPipe, v.TrimAction, v.MinLengthAction]>; }, undefined>], undefined>; readonly triggerPriceSource: v.OptionalSchema, v.TransformAction<"last" | "index", TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE>]>, undefined>; }, undefined>, v.TransformAction<{ triggerPrice: string; execution: { type: "market_ioc"; } | { type: "limit_gtc"; price: string; }; triggerPriceSource?: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; }, { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; triggerPriceSource: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; }>]>; readonly stopLoss: v.SchemaWithPipe, v.TrimAction, v.MinLengthAction]>; readonly execution: v.VariantSchema<"type", [v.StrictObjectSchema<{ readonly type: v.LiteralSchema<"market_ioc", undefined>; }, undefined>, v.StrictObjectSchema<{ readonly type: v.LiteralSchema<"limit_gtc", undefined>; readonly price: v.SchemaWithPipe, v.TrimAction, v.MinLengthAction]>; }, undefined>], undefined>; readonly triggerPriceSource: v.OptionalSchema, v.TransformAction<"last" | "index", TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE>]>, undefined>; }, undefined>, v.TransformAction<{ triggerPrice: string; execution: { type: "market_ioc"; } | { type: "limit_gtc"; price: string; }; triggerPriceSource?: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; }, { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; triggerPriceSource: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; }>]>; readonly trailingStop: v.OptionalSchema, undefined>; readonly oco: v.OptionalSchema, undefined>; }, undefined>, v.StrictObjectSchema<{ readonly takeProfit: v.SchemaWithPipe, v.TrimAction, v.MinLengthAction]>; readonly execution: v.VariantSchema<"type", [v.StrictObjectSchema<{ readonly type: v.LiteralSchema<"market_ioc", undefined>; }, undefined>, v.StrictObjectSchema<{ readonly type: v.LiteralSchema<"limit_gtc", undefined>; readonly price: v.SchemaWithPipe, v.TrimAction, v.MinLengthAction]>; }, undefined>], undefined>; readonly triggerPriceSource: v.OptionalSchema, v.TransformAction<"last" | "index", TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE>]>, undefined>; }, undefined>, v.TransformAction<{ triggerPrice: string; execution: { type: "market_ioc"; } | { type: "limit_gtc"; price: string; }; triggerPriceSource?: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; }, { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; triggerPriceSource: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; }>]>; readonly stopLoss: v.OptionalSchema, undefined>; readonly trailingStop: v.SchemaWithPipe; readonly distance: v.SchemaWithPipe, v.TrimAction, v.MinLengthAction]>; }, undefined>, v.StrictObjectSchema<{ readonly kind: v.LiteralSchema<"bps", undefined>; readonly bps: v.UnionSchema<[v.SchemaWithPipe, v.TrimAction, v.MinLengthAction]>, v.SchemaWithPipe, v.GtValueAction]>], undefined>; }, undefined>], undefined>; readonly maxSlippage: v.OptionalSchema; readonly slippage: v.SchemaWithPipe, v.TrimAction, v.MinLengthAction]>; }, undefined>, v.StrictObjectSchema<{ readonly kind: v.LiteralSchema<"bps", undefined>; readonly bps: v.UnionSchema<[v.SchemaWithPipe, v.TrimAction, v.MinLengthAction]>, v.SchemaWithPipe, v.GtValueAction]>], undefined>; }, undefined>, v.StrictObjectSchema<{ readonly kind: v.LiteralSchema<"none", undefined>; }, undefined>], undefined>, undefined>; readonly activationPrice: v.OptionalSchema, v.TrimAction, v.MinLengthAction]>, undefined>; readonly limitPrice: v.OptionalSchema, v.TrimAction, v.MinLengthAction]>, undefined>; readonly triggerPriceSource: v.OptionalSchema, v.TransformAction<"last" | "index", TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE>]>, undefined>; }, undefined>, v.TransformAction<{ trailingDistance: { kind: "bps"; bps: string | number; } | { kind: "distance"; distance: string; }; maxSlippage?: { kind: "slippage"; slippage: string; } | { kind: "bps"; bps: string | number; } | { kind: "none"; } | undefined; activationPrice?: string | undefined; limitPrice?: string | undefined; triggerPriceSource?: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; }, { trailingDistance: { value: bigint; case: "trailingDistanceTicks"; } | { value: number; case: "trailingDistanceBps"; } | { case: undefined; value?: undefined; }; maxSlippage: { value: bigint; case: "maxSlippageTicks"; } | { value: number; case: "maxSlippageBps"; } | { case: undefined; value?: undefined; }; activationPriceTicks: bigint; limitPriceTicks: bigint; triggerPriceSource: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; }>]>; readonly oco: v.OptionalSchema, undefined>; }, undefined>, v.StrictObjectSchema<{ readonly takeProfit: v.SchemaWithPipe, v.TrimAction, v.MinLengthAction]>; readonly execution: v.VariantSchema<"type", [v.StrictObjectSchema<{ readonly type: v.LiteralSchema<"market_ioc", undefined>; }, undefined>, v.StrictObjectSchema<{ readonly type: v.LiteralSchema<"limit_gtc", undefined>; readonly price: v.SchemaWithPipe, v.TrimAction, v.MinLengthAction]>; }, undefined>], undefined>; readonly triggerPriceSource: v.OptionalSchema, v.TransformAction<"last" | "index", TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE>]>, undefined>; }, undefined>, v.TransformAction<{ triggerPrice: string; execution: { type: "market_ioc"; } | { type: "limit_gtc"; price: string; }; triggerPriceSource?: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; }, { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; triggerPriceSource: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; }>]>; readonly stopLoss: v.OptionalSchema, undefined>; readonly trailingStop: v.OptionalSchema, undefined>; readonly oco: v.OptionalSchema, undefined>; }, undefined>, v.StrictObjectSchema<{ readonly takeProfit: v.OptionalSchema, undefined>; readonly stopLoss: v.SchemaWithPipe, v.TrimAction, v.MinLengthAction]>; readonly execution: v.VariantSchema<"type", [v.StrictObjectSchema<{ readonly type: v.LiteralSchema<"market_ioc", undefined>; }, undefined>, v.StrictObjectSchema<{ readonly type: v.LiteralSchema<"limit_gtc", undefined>; readonly price: v.SchemaWithPipe, v.TrimAction, v.MinLengthAction]>; }, undefined>], undefined>; readonly triggerPriceSource: v.OptionalSchema, v.TransformAction<"last" | "index", TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE>]>, undefined>; }, undefined>, v.TransformAction<{ triggerPrice: string; execution: { type: "market_ioc"; } | { type: "limit_gtc"; price: string; }; triggerPriceSource?: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; }, { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; triggerPriceSource: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; }>]>; readonly trailingStop: v.OptionalSchema, undefined>; readonly oco: v.OptionalSchema, undefined>; }, undefined>, v.StrictObjectSchema<{ readonly takeProfit: v.OptionalSchema, undefined>; readonly stopLoss: v.OptionalSchema, undefined>; readonly trailingStop: v.SchemaWithPipe; readonly distance: v.SchemaWithPipe, v.TrimAction, v.MinLengthAction]>; }, undefined>, v.StrictObjectSchema<{ readonly kind: v.LiteralSchema<"bps", undefined>; readonly bps: v.UnionSchema<[v.SchemaWithPipe, v.TrimAction, v.MinLengthAction]>, v.SchemaWithPipe, v.GtValueAction]>], undefined>; }, undefined>], undefined>; readonly maxSlippage: v.OptionalSchema; readonly slippage: v.SchemaWithPipe, v.TrimAction, v.MinLengthAction]>; }, undefined>, v.StrictObjectSchema<{ readonly kind: v.LiteralSchema<"bps", undefined>; readonly bps: v.UnionSchema<[v.SchemaWithPipe, v.TrimAction, v.MinLengthAction]>, v.SchemaWithPipe, v.GtValueAction]>], undefined>; }, undefined>, v.StrictObjectSchema<{ readonly kind: v.LiteralSchema<"none", undefined>; }, undefined>], undefined>, undefined>; readonly activationPrice: v.OptionalSchema, v.TrimAction, v.MinLengthAction]>, undefined>; readonly limitPrice: v.OptionalSchema, v.TrimAction, v.MinLengthAction]>, undefined>; readonly triggerPriceSource: v.OptionalSchema, v.TransformAction<"last" | "index", TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE>]>, undefined>; }, undefined>, v.TransformAction<{ trailingDistance: { kind: "bps"; bps: string | number; } | { kind: "distance"; distance: string; }; maxSlippage?: { kind: "slippage"; slippage: string; } | { kind: "bps"; bps: string | number; } | { kind: "none"; } | undefined; activationPrice?: string | undefined; limitPrice?: string | undefined; triggerPriceSource?: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; }, { trailingDistance: { value: bigint; case: "trailingDistanceTicks"; } | { value: number; case: "trailingDistanceBps"; } | { case: undefined; value?: undefined; }; maxSlippage: { value: bigint; case: "maxSlippageTicks"; } | { value: number; case: "maxSlippageBps"; } | { case: undefined; value?: undefined; }; activationPriceTicks: bigint; limitPriceTicks: bigint; triggerPriceSource: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; }>]>; readonly oco: v.OptionalSchema, undefined>; }, undefined>], undefined>, undefined>, v.TransformAction<{ takeProfit: { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; triggerPriceSource: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; }; stopLoss: { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; triggerPriceSource: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; }; trailingStop?: undefined; oco?: boolean | undefined; } | { takeProfit: { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; triggerPriceSource: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; }; stopLoss?: undefined; trailingStop: { trailingDistance: { value: bigint; case: "trailingDistanceTicks"; } | { value: number; case: "trailingDistanceBps"; } | { case: undefined; value?: undefined; }; maxSlippage: { value: bigint; case: "maxSlippageTicks"; } | { value: number; case: "maxSlippageBps"; } | { case: undefined; value?: undefined; }; activationPriceTicks: bigint; limitPriceTicks: bigint; triggerPriceSource: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; }; oco?: boolean | undefined; } | { takeProfit: { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; triggerPriceSource: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; }; stopLoss?: undefined; trailingStop?: undefined; oco?: false | undefined; } | { takeProfit?: undefined; stopLoss: { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; triggerPriceSource: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; }; trailingStop?: undefined; oco?: false | undefined; } | { takeProfit?: undefined; stopLoss?: undefined; trailingStop: { trailingDistance: { value: bigint; case: "trailingDistanceTicks"; } | { value: number; case: "trailingDistanceBps"; } | { case: undefined; value?: undefined; }; maxSlippage: { value: bigint; case: "maxSlippageTicks"; } | { value: number; case: "maxSlippageBps"; } | { case: undefined; value?: undefined; }; activationPriceTicks: bigint; limitPriceTicks: bigint; triggerPriceSource: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; }; oco?: false | undefined; } | undefined, { takeProfit: { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; triggerPriceSource: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; } | undefined; stopLeg: { readonly case: "stopLoss"; readonly value: { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; triggerPriceSource: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; }; } | { readonly case: "trailingStop"; readonly value: { trailingDistance: { value: bigint; case: "trailingDistanceTicks"; } | { value: number; case: "trailingDistanceBps"; } | { case: undefined; value?: undefined; }; maxSlippage: { value: bigint; case: "maxSlippageTicks"; } | { value: number; case: "maxSlippageBps"; } | { case: undefined; value?: undefined; }; activationPriceTicks: bigint; limitPriceTicks: bigint; triggerPriceSource: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; }; } | { readonly case: undefined; readonly value: undefined; }; oco: boolean; } | undefined>]>; }, undefined>, v.StrictObjectSchema<{ readonly qty: v.OptionalSchema, undefined>; readonly maxQuoteDebit: v.SchemaWithPipe, v.TrimAction, v.MinLengthAction]>; readonly symbolId: v.SchemaWithPipe, v.IntegerAction, v.GtValueAction, v.MaxValueAction]>; readonly side: v.SchemaWithPipe, v.TransformAction<"buy" | "sell", Side.BUY | Side.SELL>]>; readonly execution: v.VariantSchema<"type", [v.SchemaWithPipe; readonly maxSlippage: v.OptionalSchema; readonly slippage: v.SchemaWithPipe, v.TrimAction, v.MinLengthAction]>; }, undefined>, v.StrictObjectSchema<{ readonly kind: v.LiteralSchema<"bps", undefined>; readonly bps: v.UnionSchema<[v.SchemaWithPipe, v.TrimAction, v.MinLengthAction]>, v.SchemaWithPipe, v.GtValueAction]>], undefined>; }, undefined>, v.StrictObjectSchema<{ readonly kind: v.LiteralSchema<"none", undefined>; }, undefined>], undefined>, undefined>; readonly clientRefPrice: v.OptionalSchema, v.TrimAction, v.MinLengthAction]>, undefined>; }, undefined>, v.TransformAction<{ type: "market_ioc"; maxSlippage?: { kind: "slippage"; slippage: string; } | { kind: "bps"; bps: string | number; } | { kind: "none"; } | undefined; clientRefPrice?: string | undefined; }, { case: "marketIoc"; value: MarketIoc; }>]>, v.SchemaWithPipe; readonly price: v.SchemaWithPipe, v.TrimAction, v.MinLengthAction]>; readonly postOnly: v.OptionalSchema, false>; }, undefined>, v.TransformAction<{ type: "limit_gtc"; price: string; postOnly: boolean; }, { case: "limitGtc"; value: LimitGtc; }>]>, v.SchemaWithPipe; readonly price: v.SchemaWithPipe, v.TrimAction, v.MinLengthAction]>; /** Exact UTC expiry as integer epoch milliseconds. */ readonly expireAt: v.SchemaWithPipe, v.IntegerAction, v.MinValueAction, v.MaxValueAction]>; readonly postOnly: v.OptionalSchema, false>; }, undefined>, v.TransformAction<{ type: "limit_gtd"; price: string; expireAt: number; postOnly: boolean; }, { case: "limitGtd"; value: LimitGtd; }>]>, v.SchemaWithPipe; readonly price: v.SchemaWithPipe, v.TrimAction, v.MinLengthAction]>; }, undefined>, v.TransformAction<{ type: "limit_ioc"; price: string; }, { case: "limitIoc"; value: LimitIoc; }>]>, v.SchemaWithPipe; readonly price: v.SchemaWithPipe, v.TrimAction, v.MinLengthAction]>; }, undefined>, v.TransformAction<{ type: "limit_fok"; price: string; }, { case: "limitFok"; value: LimitFok; }>]>], undefined>; readonly clientOrderId: v.OptionalSchema, v.TrimAction, v.MaxLengthAction, v.RegexAction]>, undefined>; readonly feeAsset: v.SchemaWithPipe, undefined>, v.TransformAction<"quote" | "base" | undefined, FeeAsset.QUOTE | FeeAsset.BASE | undefined>]>; readonly selfTradePreventionMode: v.SchemaWithPipe, undefined>, v.TransformAction<"expire_taker" | "expire_maker" | "expire_both" | undefined, SelfTradePreventionMode.EXPIRE_MAKER | SelfTradePreventionMode.EXPIRE_TAKER | SelfTradePreventionMode.EXPIRE_BOTH | undefined>]>; readonly risk: v.SchemaWithPipe, v.TrimAction, v.MinLengthAction]>; readonly execution: v.VariantSchema<"type", [v.StrictObjectSchema<{ readonly type: v.LiteralSchema<"market_ioc", undefined>; }, undefined>, v.StrictObjectSchema<{ readonly type: v.LiteralSchema<"limit_gtc", undefined>; readonly price: v.SchemaWithPipe, v.TrimAction, v.MinLengthAction]>; }, undefined>], undefined>; readonly triggerPriceSource: v.OptionalSchema, v.TransformAction<"last" | "index", TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE>]>, undefined>; }, undefined>, v.TransformAction<{ triggerPrice: string; execution: { type: "market_ioc"; } | { type: "limit_gtc"; price: string; }; triggerPriceSource?: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; }, { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; triggerPriceSource: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; }>]>; readonly stopLoss: v.SchemaWithPipe, v.TrimAction, v.MinLengthAction]>; readonly execution: v.VariantSchema<"type", [v.StrictObjectSchema<{ readonly type: v.LiteralSchema<"market_ioc", undefined>; }, undefined>, v.StrictObjectSchema<{ readonly type: v.LiteralSchema<"limit_gtc", undefined>; readonly price: v.SchemaWithPipe, v.TrimAction, v.MinLengthAction]>; }, undefined>], undefined>; readonly triggerPriceSource: v.OptionalSchema, v.TransformAction<"last" | "index", TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE>]>, undefined>; }, undefined>, v.TransformAction<{ triggerPrice: string; execution: { type: "market_ioc"; } | { type: "limit_gtc"; price: string; }; triggerPriceSource?: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; }, { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; triggerPriceSource: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; }>]>; readonly trailingStop: v.OptionalSchema, undefined>; readonly oco: v.OptionalSchema, undefined>; }, undefined>, v.StrictObjectSchema<{ readonly takeProfit: v.SchemaWithPipe, v.TrimAction, v.MinLengthAction]>; readonly execution: v.VariantSchema<"type", [v.StrictObjectSchema<{ readonly type: v.LiteralSchema<"market_ioc", undefined>; }, undefined>, v.StrictObjectSchema<{ readonly type: v.LiteralSchema<"limit_gtc", undefined>; readonly price: v.SchemaWithPipe, v.TrimAction, v.MinLengthAction]>; }, undefined>], undefined>; readonly triggerPriceSource: v.OptionalSchema, v.TransformAction<"last" | "index", TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE>]>, undefined>; }, undefined>, v.TransformAction<{ triggerPrice: string; execution: { type: "market_ioc"; } | { type: "limit_gtc"; price: string; }; triggerPriceSource?: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; }, { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; triggerPriceSource: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; }>]>; readonly stopLoss: v.OptionalSchema, undefined>; readonly trailingStop: v.SchemaWithPipe; readonly distance: v.SchemaWithPipe, v.TrimAction, v.MinLengthAction]>; }, undefined>, v.StrictObjectSchema<{ readonly kind: v.LiteralSchema<"bps", undefined>; readonly bps: v.UnionSchema<[v.SchemaWithPipe, v.TrimAction, v.MinLengthAction]>, v.SchemaWithPipe, v.GtValueAction]>], undefined>; }, undefined>], undefined>; readonly maxSlippage: v.OptionalSchema; readonly slippage: v.SchemaWithPipe, v.TrimAction, v.MinLengthAction]>; }, undefined>, v.StrictObjectSchema<{ readonly kind: v.LiteralSchema<"bps", undefined>; readonly bps: v.UnionSchema<[v.SchemaWithPipe, v.TrimAction, v.MinLengthAction]>, v.SchemaWithPipe, v.GtValueAction]>], undefined>; }, undefined>, v.StrictObjectSchema<{ readonly kind: v.LiteralSchema<"none", undefined>; }, undefined>], undefined>, undefined>; readonly activationPrice: v.OptionalSchema, v.TrimAction, v.MinLengthAction]>, undefined>; readonly limitPrice: v.OptionalSchema, v.TrimAction, v.MinLengthAction]>, undefined>; readonly triggerPriceSource: v.OptionalSchema, v.TransformAction<"last" | "index", TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE>]>, undefined>; }, undefined>, v.TransformAction<{ trailingDistance: { kind: "bps"; bps: string | number; } | { kind: "distance"; distance: string; }; maxSlippage?: { kind: "slippage"; slippage: string; } | { kind: "bps"; bps: string | number; } | { kind: "none"; } | undefined; activationPrice?: string | undefined; limitPrice?: string | undefined; triggerPriceSource?: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; }, { trailingDistance: { value: bigint; case: "trailingDistanceTicks"; } | { value: number; case: "trailingDistanceBps"; } | { case: undefined; value?: undefined; }; maxSlippage: { value: bigint; case: "maxSlippageTicks"; } | { value: number; case: "maxSlippageBps"; } | { case: undefined; value?: undefined; }; activationPriceTicks: bigint; limitPriceTicks: bigint; triggerPriceSource: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; }>]>; readonly oco: v.OptionalSchema, undefined>; }, undefined>, v.StrictObjectSchema<{ readonly takeProfit: v.SchemaWithPipe, v.TrimAction, v.MinLengthAction]>; readonly execution: v.VariantSchema<"type", [v.StrictObjectSchema<{ readonly type: v.LiteralSchema<"market_ioc", undefined>; }, undefined>, v.StrictObjectSchema<{ readonly type: v.LiteralSchema<"limit_gtc", undefined>; readonly price: v.SchemaWithPipe, v.TrimAction, v.MinLengthAction]>; }, undefined>], undefined>; readonly triggerPriceSource: v.OptionalSchema, v.TransformAction<"last" | "index", TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE>]>, undefined>; }, undefined>, v.TransformAction<{ triggerPrice: string; execution: { type: "market_ioc"; } | { type: "limit_gtc"; price: string; }; triggerPriceSource?: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; }, { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; triggerPriceSource: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; }>]>; readonly stopLoss: v.OptionalSchema, undefined>; readonly trailingStop: v.OptionalSchema, undefined>; readonly oco: v.OptionalSchema, undefined>; }, undefined>, v.StrictObjectSchema<{ readonly takeProfit: v.OptionalSchema, undefined>; readonly stopLoss: v.SchemaWithPipe, v.TrimAction, v.MinLengthAction]>; readonly execution: v.VariantSchema<"type", [v.StrictObjectSchema<{ readonly type: v.LiteralSchema<"market_ioc", undefined>; }, undefined>, v.StrictObjectSchema<{ readonly type: v.LiteralSchema<"limit_gtc", undefined>; readonly price: v.SchemaWithPipe, v.TrimAction, v.MinLengthAction]>; }, undefined>], undefined>; readonly triggerPriceSource: v.OptionalSchema, v.TransformAction<"last" | "index", TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE>]>, undefined>; }, undefined>, v.TransformAction<{ triggerPrice: string; execution: { type: "market_ioc"; } | { type: "limit_gtc"; price: string; }; triggerPriceSource?: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; }, { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; triggerPriceSource: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; }>]>; readonly trailingStop: v.OptionalSchema, undefined>; readonly oco: v.OptionalSchema, undefined>; }, undefined>, v.StrictObjectSchema<{ readonly takeProfit: v.OptionalSchema, undefined>; readonly stopLoss: v.OptionalSchema, undefined>; readonly trailingStop: v.SchemaWithPipe; readonly distance: v.SchemaWithPipe, v.TrimAction, v.MinLengthAction]>; }, undefined>, v.StrictObjectSchema<{ readonly kind: v.LiteralSchema<"bps", undefined>; readonly bps: v.UnionSchema<[v.SchemaWithPipe, v.TrimAction, v.MinLengthAction]>, v.SchemaWithPipe, v.GtValueAction]>], undefined>; }, undefined>], undefined>; readonly maxSlippage: v.OptionalSchema; readonly slippage: v.SchemaWithPipe, v.TrimAction, v.MinLengthAction]>; }, undefined>, v.StrictObjectSchema<{ readonly kind: v.LiteralSchema<"bps", undefined>; readonly bps: v.UnionSchema<[v.SchemaWithPipe, v.TrimAction, v.MinLengthAction]>, v.SchemaWithPipe, v.GtValueAction]>], undefined>; }, undefined>, v.StrictObjectSchema<{ readonly kind: v.LiteralSchema<"none", undefined>; }, undefined>], undefined>, undefined>; readonly activationPrice: v.OptionalSchema, v.TrimAction, v.MinLengthAction]>, undefined>; readonly limitPrice: v.OptionalSchema, v.TrimAction, v.MinLengthAction]>, undefined>; readonly triggerPriceSource: v.OptionalSchema, v.TransformAction<"last" | "index", TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE>]>, undefined>; }, undefined>, v.TransformAction<{ trailingDistance: { kind: "bps"; bps: string | number; } | { kind: "distance"; distance: string; }; maxSlippage?: { kind: "slippage"; slippage: string; } | { kind: "bps"; bps: string | number; } | { kind: "none"; } | undefined; activationPrice?: string | undefined; limitPrice?: string | undefined; triggerPriceSource?: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; }, { trailingDistance: { value: bigint; case: "trailingDistanceTicks"; } | { value: number; case: "trailingDistanceBps"; } | { case: undefined; value?: undefined; }; maxSlippage: { value: bigint; case: "maxSlippageTicks"; } | { value: number; case: "maxSlippageBps"; } | { case: undefined; value?: undefined; }; activationPriceTicks: bigint; limitPriceTicks: bigint; triggerPriceSource: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; }>]>; readonly oco: v.OptionalSchema, undefined>; }, undefined>], undefined>, undefined>, v.TransformAction<{ takeProfit: { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; triggerPriceSource: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; }; stopLoss: { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; triggerPriceSource: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; }; trailingStop?: undefined; oco?: boolean | undefined; } | { takeProfit: { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; triggerPriceSource: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; }; stopLoss?: undefined; trailingStop: { trailingDistance: { value: bigint; case: "trailingDistanceTicks"; } | { value: number; case: "trailingDistanceBps"; } | { case: undefined; value?: undefined; }; maxSlippage: { value: bigint; case: "maxSlippageTicks"; } | { value: number; case: "maxSlippageBps"; } | { case: undefined; value?: undefined; }; activationPriceTicks: bigint; limitPriceTicks: bigint; triggerPriceSource: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; }; oco?: boolean | undefined; } | { takeProfit: { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; triggerPriceSource: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; }; stopLoss?: undefined; trailingStop?: undefined; oco?: false | undefined; } | { takeProfit?: undefined; stopLoss: { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; triggerPriceSource: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; }; trailingStop?: undefined; oco?: false | undefined; } | { takeProfit?: undefined; stopLoss?: undefined; trailingStop: { trailingDistance: { value: bigint; case: "trailingDistanceTicks"; } | { value: number; case: "trailingDistanceBps"; } | { case: undefined; value?: undefined; }; maxSlippage: { value: bigint; case: "maxSlippageTicks"; } | { value: number; case: "maxSlippageBps"; } | { case: undefined; value?: undefined; }; activationPriceTicks: bigint; limitPriceTicks: bigint; triggerPriceSource: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; }; oco?: false | undefined; } | undefined, { takeProfit: { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; triggerPriceSource: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; } | undefined; stopLeg: { readonly case: "stopLoss"; readonly value: { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; triggerPriceSource: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; }; } | { readonly case: "trailingStop"; readonly value: { trailingDistance: { value: bigint; case: "trailingDistanceTicks"; } | { value: number; case: "trailingDistanceBps"; } | { case: undefined; value?: undefined; }; maxSlippage: { value: bigint; case: "maxSlippageTicks"; } | { value: number; case: "maxSlippageBps"; } | { case: undefined; value?: undefined; }; activationPriceTicks: bigint; limitPriceTicks: bigint; triggerPriceSource: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; }; } | { readonly case: undefined; readonly value: undefined; }; oco: boolean; } | undefined>]>; }, undefined>], undefined>, v.CheckAction<{ qty: string; maxQuoteDebit?: undefined; symbolId: number; side: Side.BUY | Side.SELL; execution: { case: "marketIoc"; value: MarketIoc; } | { case: "limitGtc"; value: LimitGtc; } | { case: "limitGtd"; value: LimitGtd; } | { case: "limitIoc"; value: LimitIoc; } | { case: "limitFok"; value: LimitFok; }; clientOrderId?: string | undefined; feeAsset?: FeeAsset.QUOTE | FeeAsset.BASE | undefined; selfTradePreventionMode?: SelfTradePreventionMode.EXPIRE_MAKER | SelfTradePreventionMode.EXPIRE_TAKER | SelfTradePreventionMode.EXPIRE_BOTH | undefined; risk?: { takeProfit: { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; triggerPriceSource: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; } | undefined; stopLeg: { readonly case: "stopLoss"; readonly value: { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; triggerPriceSource: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; }; } | { readonly case: "trailingStop"; readonly value: { trailingDistance: { value: bigint; case: "trailingDistanceTicks"; } | { value: number; case: "trailingDistanceBps"; } | { case: undefined; value?: undefined; }; maxSlippage: { value: bigint; case: "maxSlippageTicks"; } | { value: number; case: "maxSlippageBps"; } | { case: undefined; value?: undefined; }; activationPriceTicks: bigint; limitPriceTicks: bigint; triggerPriceSource: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; }; } | { readonly case: undefined; readonly value: undefined; }; oco: boolean; } | undefined; } | { qty?: undefined; maxQuoteDebit: string; symbolId: number; side: Side.BUY | Side.SELL; execution: { case: "marketIoc"; value: MarketIoc; } | { case: "limitGtc"; value: LimitGtc; } | { case: "limitGtd"; value: LimitGtd; } | { case: "limitIoc"; value: LimitIoc; } | { case: "limitFok"; value: LimitFok; }; clientOrderId?: string | undefined; feeAsset?: FeeAsset.QUOTE | FeeAsset.BASE | undefined; selfTradePreventionMode?: SelfTradePreventionMode.EXPIRE_MAKER | SelfTradePreventionMode.EXPIRE_TAKER | SelfTradePreventionMode.EXPIRE_BOTH | undefined; risk?: { takeProfit: { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; triggerPriceSource: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; } | undefined; stopLeg: { readonly case: "stopLoss"; readonly value: { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; triggerPriceSource: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; }; } | { readonly case: "trailingStop"; readonly value: { trailingDistance: { value: bigint; case: "trailingDistanceTicks"; } | { value: number; case: "trailingDistanceBps"; } | { case: undefined; value?: undefined; }; maxSlippage: { value: bigint; case: "maxSlippageTicks"; } | { value: number; case: "maxSlippageBps"; } | { case: undefined; value?: undefined; }; activationPriceTicks: bigint; limitPriceTicks: bigint; triggerPriceSource: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; }; } | { readonly case: undefined; readonly value: undefined; }; oco: boolean; } | undefined; }, "maxQuoteDebit is supported only for BUY market IOC and BUY limit IOC orders">, v.CheckAction<{ qty: string; maxQuoteDebit?: undefined; symbolId: number; side: Side.BUY | Side.SELL; execution: { case: "marketIoc"; value: MarketIoc; } | { case: "limitGtc"; value: LimitGtc; } | { case: "limitGtd"; value: LimitGtd; } | { case: "limitIoc"; value: LimitIoc; } | { case: "limitFok"; value: LimitFok; }; clientOrderId?: string | undefined; feeAsset?: FeeAsset.QUOTE | FeeAsset.BASE | undefined; selfTradePreventionMode?: SelfTradePreventionMode.EXPIRE_MAKER | SelfTradePreventionMode.EXPIRE_TAKER | SelfTradePreventionMode.EXPIRE_BOTH | undefined; risk?: { takeProfit: { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; triggerPriceSource: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; } | undefined; stopLeg: { readonly case: "stopLoss"; readonly value: { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; triggerPriceSource: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; }; } | { readonly case: "trailingStop"; readonly value: { trailingDistance: { value: bigint; case: "trailingDistanceTicks"; } | { value: number; case: "trailingDistanceBps"; } | { case: undefined; value?: undefined; }; maxSlippage: { value: bigint; case: "maxSlippageTicks"; } | { value: number; case: "maxSlippageBps"; } | { case: undefined; value?: undefined; }; activationPriceTicks: bigint; limitPriceTicks: bigint; triggerPriceSource: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; }; } | { readonly case: undefined; readonly value: undefined; }; oco: boolean; } | undefined; } | { qty?: undefined; maxQuoteDebit: string; symbolId: number; side: Side.BUY | Side.SELL; execution: { case: "marketIoc"; value: MarketIoc; } | { case: "limitGtc"; value: LimitGtc; } | { case: "limitGtd"; value: LimitGtd; } | { case: "limitIoc"; value: LimitIoc; } | { case: "limitFok"; value: LimitFok; }; clientOrderId?: string | undefined; feeAsset?: FeeAsset.QUOTE | FeeAsset.BASE | undefined; selfTradePreventionMode?: SelfTradePreventionMode.EXPIRE_MAKER | SelfTradePreventionMode.EXPIRE_TAKER | SelfTradePreventionMode.EXPIRE_BOTH | undefined; risk?: { takeProfit: { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; triggerPriceSource: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; } | undefined; stopLeg: { readonly case: "stopLoss"; readonly value: { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; triggerPriceSource: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; }; } | { readonly case: "trailingStop"; readonly value: { trailingDistance: { value: bigint; case: "trailingDistanceTicks"; } | { value: number; case: "trailingDistanceBps"; } | { case: undefined; value?: undefined; }; maxSlippage: { value: bigint; case: "maxSlippageTicks"; } | { value: number; case: "maxSlippageBps"; } | { case: undefined; value?: undefined; }; activationPriceTicks: bigint; limitPriceTicks: bigint; triggerPriceSource: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; }; } | { readonly case: undefined; readonly value: undefined; }; oco: boolean; } | undefined; }, "SELL orders must use the quote fee asset">, v.CheckAction<{ qty: string; maxQuoteDebit?: undefined; symbolId: number; side: Side.BUY | Side.SELL; execution: { case: "marketIoc"; value: MarketIoc; } | { case: "limitGtc"; value: LimitGtc; } | { case: "limitGtd"; value: LimitGtd; } | { case: "limitIoc"; value: LimitIoc; } | { case: "limitFok"; value: LimitFok; }; clientOrderId?: string | undefined; feeAsset?: FeeAsset.QUOTE | FeeAsset.BASE | undefined; selfTradePreventionMode?: SelfTradePreventionMode.EXPIRE_MAKER | SelfTradePreventionMode.EXPIRE_TAKER | SelfTradePreventionMode.EXPIRE_BOTH | undefined; risk?: { takeProfit: { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; triggerPriceSource: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; } | undefined; stopLeg: { readonly case: "stopLoss"; readonly value: { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; triggerPriceSource: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; }; } | { readonly case: "trailingStop"; readonly value: { trailingDistance: { value: bigint; case: "trailingDistanceTicks"; } | { value: number; case: "trailingDistanceBps"; } | { case: undefined; value?: undefined; }; maxSlippage: { value: bigint; case: "maxSlippageTicks"; } | { value: number; case: "maxSlippageBps"; } | { case: undefined; value?: undefined; }; activationPriceTicks: bigint; limitPriceTicks: bigint; triggerPriceSource: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; }; } | { readonly case: undefined; readonly value: undefined; }; oco: boolean; } | undefined; } | { qty?: undefined; maxQuoteDebit: string; symbolId: number; side: Side.BUY | Side.SELL; execution: { case: "marketIoc"; value: MarketIoc; } | { case: "limitGtc"; value: LimitGtc; } | { case: "limitGtd"; value: LimitGtd; } | { case: "limitIoc"; value: LimitIoc; } | { case: "limitFok"; value: LimitFok; }; clientOrderId?: string | undefined; feeAsset?: FeeAsset.QUOTE | FeeAsset.BASE | undefined; selfTradePreventionMode?: SelfTradePreventionMode.EXPIRE_MAKER | SelfTradePreventionMode.EXPIRE_TAKER | SelfTradePreventionMode.EXPIRE_BOTH | undefined; risk?: { takeProfit: { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; triggerPriceSource: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; } | undefined; stopLeg: { readonly case: "stopLoss"; readonly value: { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; triggerPriceSource: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; }; } | { readonly case: "trailingStop"; readonly value: { trailingDistance: { value: bigint; case: "trailingDistanceTicks"; } | { value: number; case: "trailingDistanceBps"; } | { case: undefined; value?: undefined; }; maxSlippage: { value: bigint; case: "maxSlippageTicks"; } | { value: number; case: "maxSlippageBps"; } | { case: undefined; value?: undefined; }; activationPriceTicks: bigint; limitPriceTicks: bigint; triggerPriceSource: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; }; } | { readonly case: undefined; readonly value: undefined; }; oco: boolean; } | undefined; }, "maxSlippageBps must be between 1 and 9999 for a market order that sells">, v.CheckAction<{ qty: string; maxQuoteDebit?: undefined; symbolId: number; side: Side.BUY | Side.SELL; execution: { case: "marketIoc"; value: MarketIoc; } | { case: "limitGtc"; value: LimitGtc; } | { case: "limitGtd"; value: LimitGtd; } | { case: "limitIoc"; value: LimitIoc; } | { case: "limitFok"; value: LimitFok; }; clientOrderId?: string | undefined; feeAsset?: FeeAsset.QUOTE | FeeAsset.BASE | undefined; selfTradePreventionMode?: SelfTradePreventionMode.EXPIRE_MAKER | SelfTradePreventionMode.EXPIRE_TAKER | SelfTradePreventionMode.EXPIRE_BOTH | undefined; risk?: { takeProfit: { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; triggerPriceSource: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; } | undefined; stopLeg: { readonly case: "stopLoss"; readonly value: { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; triggerPriceSource: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; }; } | { readonly case: "trailingStop"; readonly value: { trailingDistance: { value: bigint; case: "trailingDistanceTicks"; } | { value: number; case: "trailingDistanceBps"; } | { case: undefined; value?: undefined; }; maxSlippage: { value: bigint; case: "maxSlippageTicks"; } | { value: number; case: "maxSlippageBps"; } | { case: undefined; value?: undefined; }; activationPriceTicks: bigint; limitPriceTicks: bigint; triggerPriceSource: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; }; } | { readonly case: undefined; readonly value: undefined; }; oco: boolean; } | undefined; } | { qty?: undefined; maxQuoteDebit: string; symbolId: number; side: Side.BUY | Side.SELL; execution: { case: "marketIoc"; value: MarketIoc; } | { case: "limitGtc"; value: LimitGtc; } | { case: "limitGtd"; value: LimitGtd; } | { case: "limitIoc"; value: LimitIoc; } | { case: "limitFok"; value: LimitFok; }; clientOrderId?: string | undefined; feeAsset?: FeeAsset.QUOTE | FeeAsset.BASE | undefined; selfTradePreventionMode?: SelfTradePreventionMode.EXPIRE_MAKER | SelfTradePreventionMode.EXPIRE_TAKER | SelfTradePreventionMode.EXPIRE_BOTH | undefined; risk?: { takeProfit: { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; triggerPriceSource: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; } | undefined; stopLeg: { readonly case: "stopLoss"; readonly value: { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; triggerPriceSource: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; }; } | { readonly case: "trailingStop"; readonly value: { trailingDistance: { value: bigint; case: "trailingDistanceTicks"; } | { value: number; case: "trailingDistanceBps"; } | { case: undefined; value?: undefined; }; maxSlippage: { value: bigint; case: "maxSlippageTicks"; } | { value: number; case: "maxSlippageBps"; } | { case: undefined; value?: undefined; }; activationPriceTicks: bigint; limitPriceTicks: bigint; triggerPriceSource: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; }; } | { readonly case: undefined; readonly value: undefined; }; oco: boolean; } | undefined; }, "risk.trailingStop.limitPrice is required when the order sells and must be unset when it buys">]>, v.TransformAction<{ qty: string; maxQuoteDebit?: undefined; symbolId: number; side: Side.BUY | Side.SELL; execution: { case: "marketIoc"; value: MarketIoc; } | { case: "limitGtc"; value: LimitGtc; } | { case: "limitGtd"; value: LimitGtd; } | { case: "limitIoc"; value: LimitIoc; } | { case: "limitFok"; value: LimitFok; }; clientOrderId?: string | undefined; feeAsset?: FeeAsset.QUOTE | FeeAsset.BASE | undefined; selfTradePreventionMode?: SelfTradePreventionMode.EXPIRE_MAKER | SelfTradePreventionMode.EXPIRE_TAKER | SelfTradePreventionMode.EXPIRE_BOTH | undefined; risk?: { takeProfit: { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; triggerPriceSource: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; } | undefined; stopLeg: { readonly case: "stopLoss"; readonly value: { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; triggerPriceSource: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; }; } | { readonly case: "trailingStop"; readonly value: { trailingDistance: { value: bigint; case: "trailingDistanceTicks"; } | { value: number; case: "trailingDistanceBps"; } | { case: undefined; value?: undefined; }; maxSlippage: { value: bigint; case: "maxSlippageTicks"; } | { value: number; case: "maxSlippageBps"; } | { case: undefined; value?: undefined; }; activationPriceTicks: bigint; limitPriceTicks: bigint; triggerPriceSource: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; }; } | { readonly case: undefined; readonly value: undefined; }; oco: boolean; } | undefined; } | { qty?: undefined; maxQuoteDebit: string; symbolId: number; side: Side.BUY | Side.SELL; execution: { case: "marketIoc"; value: MarketIoc; } | { case: "limitGtc"; value: LimitGtc; } | { case: "limitGtd"; value: LimitGtd; } | { case: "limitIoc"; value: LimitIoc; } | { case: "limitFok"; value: LimitFok; }; clientOrderId?: string | undefined; feeAsset?: FeeAsset.QUOTE | FeeAsset.BASE | undefined; selfTradePreventionMode?: SelfTradePreventionMode.EXPIRE_MAKER | SelfTradePreventionMode.EXPIRE_TAKER | SelfTradePreventionMode.EXPIRE_BOTH | undefined; risk?: { takeProfit: { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; triggerPriceSource: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; } | undefined; stopLeg: { readonly case: "stopLoss"; readonly value: { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; triggerPriceSource: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; }; } | { readonly case: "trailingStop"; readonly value: { trailingDistance: { value: bigint; case: "trailingDistanceTicks"; } | { value: number; case: "trailingDistanceBps"; } | { case: undefined; value?: undefined; }; maxSlippage: { value: bigint; case: "maxSlippageTicks"; } | { value: number; case: "maxSlippageBps"; } | { case: undefined; value?: undefined; }; activationPriceTicks: bigint; limitPriceTicks: bigint; triggerPriceSource: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; }; } | { readonly case: undefined; readonly value: undefined; }; oco: boolean; } | undefined; }, { sizing: { readonly case: "baseQtyScaled"; readonly value: bigint; } | { readonly case: "maxQuoteDebitScaled"; readonly value: bigint; }; feeAsset: FeeAsset.QUOTE | FeeAsset.BASE; attachedRisk: { takeProfit: { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; triggerPriceSource: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; } | undefined; stopLeg: { readonly case: "stopLoss"; readonly value: { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; triggerPriceSource: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; }; } | { readonly case: "trailingStop"; readonly value: { trailingDistance: { value: bigint; case: "trailingDistanceTicks"; } | { value: number; case: "trailingDistanceBps"; } | { case: undefined; value?: undefined; }; maxSlippage: { value: bigint; case: "maxSlippageTicks"; } | { value: number; case: "maxSlippageBps"; } | { case: undefined; value?: undefined; }; activationPriceTicks: bigint; limitPriceTicks: bigint; triggerPriceSource: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; }; } | { readonly case: undefined; readonly value: undefined; }; oco: boolean; } | undefined; symbolId: number; side: Side.BUY | Side.SELL; execution: { case: "marketIoc"; value: MarketIoc; } | { case: "limitGtc"; value: LimitGtc; } | { case: "limitGtd"; value: LimitGtd; } | { case: "limitIoc"; value: LimitIoc; } | { case: "limitFok"; value: LimitFok; }; clientOrderId?: string | undefined; selfTradePreventionMode?: SelfTradePreventionMode.EXPIRE_MAKER | SelfTradePreventionMode.EXPIRE_TAKER | SelfTradePreventionMode.EXPIRE_BOTH | undefined; } | { sizing: { readonly case: "baseQtyScaled"; readonly value: bigint; } | { readonly case: "maxQuoteDebitScaled"; readonly value: bigint; }; feeAsset: FeeAsset.QUOTE | FeeAsset.BASE; attachedRisk: { takeProfit: { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; triggerPriceSource: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; } | undefined; stopLeg: { readonly case: "stopLoss"; readonly value: { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; triggerPriceSource: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; }; } | { readonly case: "trailingStop"; readonly value: { trailingDistance: { value: bigint; case: "trailingDistanceTicks"; } | { value: number; case: "trailingDistanceBps"; } | { case: undefined; value?: undefined; }; maxSlippage: { value: bigint; case: "maxSlippageTicks"; } | { value: number; case: "maxSlippageBps"; } | { case: undefined; value?: undefined; }; activationPriceTicks: bigint; limitPriceTicks: bigint; triggerPriceSource: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; }; } | { readonly case: undefined; readonly value: undefined; }; oco: boolean; } | undefined; symbolId: number; side: Side.BUY | Side.SELL; execution: { case: "marketIoc"; value: MarketIoc; } | { case: "limitGtc"; value: LimitGtc; } | { case: "limitGtd"; value: LimitGtd; } | { case: "limitIoc"; value: LimitIoc; } | { case: "limitFok"; value: LimitFok; }; clientOrderId?: string | undefined; selfTradePreventionMode?: SelfTradePreventionMode.EXPIRE_MAKER | SelfTradePreventionMode.EXPIRE_TAKER | SelfTradePreventionMode.EXPIRE_BOTH | undefined; }>]>; type OrderIntentInput = v.InferInput>; declare function createNewOrderInputSchema(scales: SdkScales): v.SchemaWithPipe, v.TrimAction, v.MinLengthAction]>; readonly maxQuoteDebit: v.OptionalSchema, undefined>; readonly symbolId: v.SchemaWithPipe, v.IntegerAction, v.GtValueAction, v.MaxValueAction]>; readonly side: v.SchemaWithPipe, v.TransformAction<"buy" | "sell", Side.BUY | Side.SELL>]>; readonly execution: v.VariantSchema<"type", [v.SchemaWithPipe; readonly maxSlippage: v.OptionalSchema; readonly slippage: v.SchemaWithPipe, v.TrimAction, v.MinLengthAction]>; }, undefined>, v.StrictObjectSchema<{ readonly kind: v.LiteralSchema<"bps", undefined>; readonly bps: v.UnionSchema<[v.SchemaWithPipe, v.TrimAction, v.MinLengthAction]>, v.SchemaWithPipe, v.GtValueAction]>], undefined>; }, undefined>, v.StrictObjectSchema<{ readonly kind: v.LiteralSchema<"none", undefined>; }, undefined>], undefined>, undefined>; readonly clientRefPrice: v.OptionalSchema, v.TrimAction, v.MinLengthAction]>, undefined>; }, undefined>, v.TransformAction<{ type: "market_ioc"; maxSlippage?: { kind: "slippage"; slippage: string; } | { kind: "bps"; bps: string | number; } | { kind: "none"; } | undefined; clientRefPrice?: string | undefined; }, { case: "marketIoc"; value: MarketIoc; }>]>, v.SchemaWithPipe; readonly price: v.SchemaWithPipe, v.TrimAction, v.MinLengthAction]>; readonly postOnly: v.OptionalSchema, false>; }, undefined>, v.TransformAction<{ type: "limit_gtc"; price: string; postOnly: boolean; }, { case: "limitGtc"; value: LimitGtc; }>]>, v.SchemaWithPipe; readonly price: v.SchemaWithPipe, v.TrimAction, v.MinLengthAction]>; /** Exact UTC expiry as integer epoch milliseconds. */ readonly expireAt: v.SchemaWithPipe, v.IntegerAction, v.MinValueAction, v.MaxValueAction]>; readonly postOnly: v.OptionalSchema, false>; }, undefined>, v.TransformAction<{ type: "limit_gtd"; price: string; expireAt: number; postOnly: boolean; }, { case: "limitGtd"; value: LimitGtd; }>]>, v.SchemaWithPipe; readonly price: v.SchemaWithPipe, v.TrimAction, v.MinLengthAction]>; }, undefined>, v.TransformAction<{ type: "limit_ioc"; price: string; }, { case: "limitIoc"; value: LimitIoc; }>]>, v.SchemaWithPipe; readonly price: v.SchemaWithPipe, v.TrimAction, v.MinLengthAction]>; }, undefined>, v.TransformAction<{ type: "limit_fok"; price: string; }, { case: "limitFok"; value: LimitFok; }>]>], undefined>; readonly clientOrderId: v.OptionalSchema, v.TrimAction, v.MaxLengthAction, v.RegexAction]>, undefined>; readonly feeAsset: v.SchemaWithPipe, undefined>, v.TransformAction<"quote" | "base" | undefined, FeeAsset.QUOTE | FeeAsset.BASE | undefined>]>; readonly selfTradePreventionMode: v.SchemaWithPipe, undefined>, v.TransformAction<"expire_taker" | "expire_maker" | "expire_both" | undefined, SelfTradePreventionMode.EXPIRE_MAKER | SelfTradePreventionMode.EXPIRE_TAKER | SelfTradePreventionMode.EXPIRE_BOTH | undefined>]>; readonly risk: v.SchemaWithPipe, v.TrimAction, v.MinLengthAction]>; readonly execution: v.VariantSchema<"type", [v.StrictObjectSchema<{ readonly type: v.LiteralSchema<"market_ioc", undefined>; }, undefined>, v.StrictObjectSchema<{ readonly type: v.LiteralSchema<"limit_gtc", undefined>; readonly price: v.SchemaWithPipe, v.TrimAction, v.MinLengthAction]>; }, undefined>], undefined>; readonly triggerPriceSource: v.OptionalSchema, v.TransformAction<"last" | "index", TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE>]>, undefined>; }, undefined>, v.TransformAction<{ triggerPrice: string; execution: { type: "market_ioc"; } | { type: "limit_gtc"; price: string; }; triggerPriceSource?: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; }, { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; triggerPriceSource: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; }>]>; readonly stopLoss: v.SchemaWithPipe, v.TrimAction, v.MinLengthAction]>; readonly execution: v.VariantSchema<"type", [v.StrictObjectSchema<{ readonly type: v.LiteralSchema<"market_ioc", undefined>; }, undefined>, v.StrictObjectSchema<{ readonly type: v.LiteralSchema<"limit_gtc", undefined>; readonly price: v.SchemaWithPipe, v.TrimAction, v.MinLengthAction]>; }, undefined>], undefined>; readonly triggerPriceSource: v.OptionalSchema, v.TransformAction<"last" | "index", TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE>]>, undefined>; }, undefined>, v.TransformAction<{ triggerPrice: string; execution: { type: "market_ioc"; } | { type: "limit_gtc"; price: string; }; triggerPriceSource?: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; }, { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; triggerPriceSource: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; }>]>; readonly trailingStop: v.OptionalSchema, undefined>; readonly oco: v.OptionalSchema, undefined>; }, undefined>, v.StrictObjectSchema<{ readonly takeProfit: v.SchemaWithPipe, v.TrimAction, v.MinLengthAction]>; readonly execution: v.VariantSchema<"type", [v.StrictObjectSchema<{ readonly type: v.LiteralSchema<"market_ioc", undefined>; }, undefined>, v.StrictObjectSchema<{ readonly type: v.LiteralSchema<"limit_gtc", undefined>; readonly price: v.SchemaWithPipe, v.TrimAction, v.MinLengthAction]>; }, undefined>], undefined>; readonly triggerPriceSource: v.OptionalSchema, v.TransformAction<"last" | "index", TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE>]>, undefined>; }, undefined>, v.TransformAction<{ triggerPrice: string; execution: { type: "market_ioc"; } | { type: "limit_gtc"; price: string; }; triggerPriceSource?: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; }, { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; triggerPriceSource: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; }>]>; readonly stopLoss: v.OptionalSchema, undefined>; readonly trailingStop: v.SchemaWithPipe; readonly distance: v.SchemaWithPipe, v.TrimAction, v.MinLengthAction]>; }, undefined>, v.StrictObjectSchema<{ readonly kind: v.LiteralSchema<"bps", undefined>; readonly bps: v.UnionSchema<[v.SchemaWithPipe, v.TrimAction, v.MinLengthAction]>, v.SchemaWithPipe, v.GtValueAction]>], undefined>; }, undefined>], undefined>; readonly maxSlippage: v.OptionalSchema; readonly slippage: v.SchemaWithPipe, v.TrimAction, v.MinLengthAction]>; }, undefined>, v.StrictObjectSchema<{ readonly kind: v.LiteralSchema<"bps", undefined>; readonly bps: v.UnionSchema<[v.SchemaWithPipe, v.TrimAction, v.MinLengthAction]>, v.SchemaWithPipe, v.GtValueAction]>], undefined>; }, undefined>, v.StrictObjectSchema<{ readonly kind: v.LiteralSchema<"none", undefined>; }, undefined>], undefined>, undefined>; readonly activationPrice: v.OptionalSchema, v.TrimAction, v.MinLengthAction]>, undefined>; readonly limitPrice: v.OptionalSchema, v.TrimAction, v.MinLengthAction]>, undefined>; readonly triggerPriceSource: v.OptionalSchema, v.TransformAction<"last" | "index", TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE>]>, undefined>; }, undefined>, v.TransformAction<{ trailingDistance: { kind: "bps"; bps: string | number; } | { kind: "distance"; distance: string; }; maxSlippage?: { kind: "slippage"; slippage: string; } | { kind: "bps"; bps: string | number; } | { kind: "none"; } | undefined; activationPrice?: string | undefined; limitPrice?: string | undefined; triggerPriceSource?: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; }, { trailingDistance: { value: bigint; case: "trailingDistanceTicks"; } | { value: number; case: "trailingDistanceBps"; } | { case: undefined; value?: undefined; }; maxSlippage: { value: bigint; case: "maxSlippageTicks"; } | { value: number; case: "maxSlippageBps"; } | { case: undefined; value?: undefined; }; activationPriceTicks: bigint; limitPriceTicks: bigint; triggerPriceSource: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; }>]>; readonly oco: v.OptionalSchema, undefined>; }, undefined>, v.StrictObjectSchema<{ readonly takeProfit: v.SchemaWithPipe, v.TrimAction, v.MinLengthAction]>; readonly execution: v.VariantSchema<"type", [v.StrictObjectSchema<{ readonly type: v.LiteralSchema<"market_ioc", undefined>; }, undefined>, v.StrictObjectSchema<{ readonly type: v.LiteralSchema<"limit_gtc", undefined>; readonly price: v.SchemaWithPipe, v.TrimAction, v.MinLengthAction]>; }, undefined>], undefined>; readonly triggerPriceSource: v.OptionalSchema, v.TransformAction<"last" | "index", TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE>]>, undefined>; }, undefined>, v.TransformAction<{ triggerPrice: string; execution: { type: "market_ioc"; } | { type: "limit_gtc"; price: string; }; triggerPriceSource?: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; }, { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; triggerPriceSource: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; }>]>; readonly stopLoss: v.OptionalSchema, undefined>; readonly trailingStop: v.OptionalSchema, undefined>; readonly oco: v.OptionalSchema, undefined>; }, undefined>, v.StrictObjectSchema<{ readonly takeProfit: v.OptionalSchema, undefined>; readonly stopLoss: v.SchemaWithPipe, v.TrimAction, v.MinLengthAction]>; readonly execution: v.VariantSchema<"type", [v.StrictObjectSchema<{ readonly type: v.LiteralSchema<"market_ioc", undefined>; }, undefined>, v.StrictObjectSchema<{ readonly type: v.LiteralSchema<"limit_gtc", undefined>; readonly price: v.SchemaWithPipe, v.TrimAction, v.MinLengthAction]>; }, undefined>], undefined>; readonly triggerPriceSource: v.OptionalSchema, v.TransformAction<"last" | "index", TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE>]>, undefined>; }, undefined>, v.TransformAction<{ triggerPrice: string; execution: { type: "market_ioc"; } | { type: "limit_gtc"; price: string; }; triggerPriceSource?: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; }, { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; triggerPriceSource: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; }>]>; readonly trailingStop: v.OptionalSchema, undefined>; readonly oco: v.OptionalSchema, undefined>; }, undefined>, v.StrictObjectSchema<{ readonly takeProfit: v.OptionalSchema, undefined>; readonly stopLoss: v.OptionalSchema, undefined>; readonly trailingStop: v.SchemaWithPipe; readonly distance: v.SchemaWithPipe, v.TrimAction, v.MinLengthAction]>; }, undefined>, v.StrictObjectSchema<{ readonly kind: v.LiteralSchema<"bps", undefined>; readonly bps: v.UnionSchema<[v.SchemaWithPipe, v.TrimAction, v.MinLengthAction]>, v.SchemaWithPipe, v.GtValueAction]>], undefined>; }, undefined>], undefined>; readonly maxSlippage: v.OptionalSchema; readonly slippage: v.SchemaWithPipe, v.TrimAction, v.MinLengthAction]>; }, undefined>, v.StrictObjectSchema<{ readonly kind: v.LiteralSchema<"bps", undefined>; readonly bps: v.UnionSchema<[v.SchemaWithPipe, v.TrimAction, v.MinLengthAction]>, v.SchemaWithPipe, v.GtValueAction]>], undefined>; }, undefined>, v.StrictObjectSchema<{ readonly kind: v.LiteralSchema<"none", undefined>; }, undefined>], undefined>, undefined>; readonly activationPrice: v.OptionalSchema, v.TrimAction, v.MinLengthAction]>, undefined>; readonly limitPrice: v.OptionalSchema, v.TrimAction, v.MinLengthAction]>, undefined>; readonly triggerPriceSource: v.OptionalSchema, v.TransformAction<"last" | "index", TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE>]>, undefined>; }, undefined>, v.TransformAction<{ trailingDistance: { kind: "bps"; bps: string | number; } | { kind: "distance"; distance: string; }; maxSlippage?: { kind: "slippage"; slippage: string; } | { kind: "bps"; bps: string | number; } | { kind: "none"; } | undefined; activationPrice?: string | undefined; limitPrice?: string | undefined; triggerPriceSource?: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; }, { trailingDistance: { value: bigint; case: "trailingDistanceTicks"; } | { value: number; case: "trailingDistanceBps"; } | { case: undefined; value?: undefined; }; maxSlippage: { value: bigint; case: "maxSlippageTicks"; } | { value: number; case: "maxSlippageBps"; } | { case: undefined; value?: undefined; }; activationPriceTicks: bigint; limitPriceTicks: bigint; triggerPriceSource: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; }>]>; readonly oco: v.OptionalSchema, undefined>; }, undefined>], undefined>, undefined>, v.TransformAction<{ takeProfit: { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; triggerPriceSource: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; }; stopLoss: { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; triggerPriceSource: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; }; trailingStop?: undefined; oco?: boolean | undefined; } | { takeProfit: { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; triggerPriceSource: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; }; stopLoss?: undefined; trailingStop: { trailingDistance: { value: bigint; case: "trailingDistanceTicks"; } | { value: number; case: "trailingDistanceBps"; } | { case: undefined; value?: undefined; }; maxSlippage: { value: bigint; case: "maxSlippageTicks"; } | { value: number; case: "maxSlippageBps"; } | { case: undefined; value?: undefined; }; activationPriceTicks: bigint; limitPriceTicks: bigint; triggerPriceSource: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; }; oco?: boolean | undefined; } | { takeProfit: { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; triggerPriceSource: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; }; stopLoss?: undefined; trailingStop?: undefined; oco?: false | undefined; } | { takeProfit?: undefined; stopLoss: { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; triggerPriceSource: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; }; trailingStop?: undefined; oco?: false | undefined; } | { takeProfit?: undefined; stopLoss?: undefined; trailingStop: { trailingDistance: { value: bigint; case: "trailingDistanceTicks"; } | { value: number; case: "trailingDistanceBps"; } | { case: undefined; value?: undefined; }; maxSlippage: { value: bigint; case: "maxSlippageTicks"; } | { value: number; case: "maxSlippageBps"; } | { case: undefined; value?: undefined; }; activationPriceTicks: bigint; limitPriceTicks: bigint; triggerPriceSource: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; }; oco?: false | undefined; } | undefined, { takeProfit: { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; triggerPriceSource: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; } | undefined; stopLeg: { readonly case: "stopLoss"; readonly value: { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; triggerPriceSource: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; }; } | { readonly case: "trailingStop"; readonly value: { trailingDistance: { value: bigint; case: "trailingDistanceTicks"; } | { value: number; case: "trailingDistanceBps"; } | { case: undefined; value?: undefined; }; maxSlippage: { value: bigint; case: "maxSlippageTicks"; } | { value: number; case: "maxSlippageBps"; } | { case: undefined; value?: undefined; }; activationPriceTicks: bigint; limitPriceTicks: bigint; triggerPriceSource: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; }; } | { readonly case: undefined; readonly value: undefined; }; oco: boolean; } | undefined>]>; readonly account: v.OptionalSchema, v.StrictObjectSchema<{ readonly subaccountId: v.SchemaWithPipe, v.TrimAction, v.MinLengthAction]>; }, undefined>], undefined>, undefined>; }, undefined>, v.StrictObjectSchema<{ readonly qty: v.OptionalSchema, undefined>; readonly maxQuoteDebit: v.SchemaWithPipe, v.TrimAction, v.MinLengthAction]>; readonly symbolId: v.SchemaWithPipe, v.IntegerAction, v.GtValueAction, v.MaxValueAction]>; readonly side: v.SchemaWithPipe, v.TransformAction<"buy" | "sell", Side.BUY | Side.SELL>]>; readonly execution: v.VariantSchema<"type", [v.SchemaWithPipe; readonly maxSlippage: v.OptionalSchema; readonly slippage: v.SchemaWithPipe, v.TrimAction, v.MinLengthAction]>; }, undefined>, v.StrictObjectSchema<{ readonly kind: v.LiteralSchema<"bps", undefined>; readonly bps: v.UnionSchema<[v.SchemaWithPipe, v.TrimAction, v.MinLengthAction]>, v.SchemaWithPipe, v.GtValueAction]>], undefined>; }, undefined>, v.StrictObjectSchema<{ readonly kind: v.LiteralSchema<"none", undefined>; }, undefined>], undefined>, undefined>; readonly clientRefPrice: v.OptionalSchema, v.TrimAction, v.MinLengthAction]>, undefined>; }, undefined>, v.TransformAction<{ type: "market_ioc"; maxSlippage?: { kind: "slippage"; slippage: string; } | { kind: "bps"; bps: string | number; } | { kind: "none"; } | undefined; clientRefPrice?: string | undefined; }, { case: "marketIoc"; value: MarketIoc; }>]>, v.SchemaWithPipe; readonly price: v.SchemaWithPipe, v.TrimAction, v.MinLengthAction]>; readonly postOnly: v.OptionalSchema, false>; }, undefined>, v.TransformAction<{ type: "limit_gtc"; price: string; postOnly: boolean; }, { case: "limitGtc"; value: LimitGtc; }>]>, v.SchemaWithPipe; readonly price: v.SchemaWithPipe, v.TrimAction, v.MinLengthAction]>; /** Exact UTC expiry as integer epoch milliseconds. */ readonly expireAt: v.SchemaWithPipe, v.IntegerAction, v.MinValueAction, v.MaxValueAction]>; readonly postOnly: v.OptionalSchema, false>; }, undefined>, v.TransformAction<{ type: "limit_gtd"; price: string; expireAt: number; postOnly: boolean; }, { case: "limitGtd"; value: LimitGtd; }>]>, v.SchemaWithPipe; readonly price: v.SchemaWithPipe, v.TrimAction, v.MinLengthAction]>; }, undefined>, v.TransformAction<{ type: "limit_ioc"; price: string; }, { case: "limitIoc"; value: LimitIoc; }>]>, v.SchemaWithPipe; readonly price: v.SchemaWithPipe, v.TrimAction, v.MinLengthAction]>; }, undefined>, v.TransformAction<{ type: "limit_fok"; price: string; }, { case: "limitFok"; value: LimitFok; }>]>], undefined>; readonly clientOrderId: v.OptionalSchema, v.TrimAction, v.MaxLengthAction, v.RegexAction]>, undefined>; readonly feeAsset: v.SchemaWithPipe, undefined>, v.TransformAction<"quote" | "base" | undefined, FeeAsset.QUOTE | FeeAsset.BASE | undefined>]>; readonly selfTradePreventionMode: v.SchemaWithPipe, undefined>, v.TransformAction<"expire_taker" | "expire_maker" | "expire_both" | undefined, SelfTradePreventionMode.EXPIRE_MAKER | SelfTradePreventionMode.EXPIRE_TAKER | SelfTradePreventionMode.EXPIRE_BOTH | undefined>]>; readonly risk: v.SchemaWithPipe, v.TrimAction, v.MinLengthAction]>; readonly execution: v.VariantSchema<"type", [v.StrictObjectSchema<{ readonly type: v.LiteralSchema<"market_ioc", undefined>; }, undefined>, v.StrictObjectSchema<{ readonly type: v.LiteralSchema<"limit_gtc", undefined>; readonly price: v.SchemaWithPipe, v.TrimAction, v.MinLengthAction]>; }, undefined>], undefined>; readonly triggerPriceSource: v.OptionalSchema, v.TransformAction<"last" | "index", TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE>]>, undefined>; }, undefined>, v.TransformAction<{ triggerPrice: string; execution: { type: "market_ioc"; } | { type: "limit_gtc"; price: string; }; triggerPriceSource?: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; }, { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; triggerPriceSource: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; }>]>; readonly stopLoss: v.SchemaWithPipe, v.TrimAction, v.MinLengthAction]>; readonly execution: v.VariantSchema<"type", [v.StrictObjectSchema<{ readonly type: v.LiteralSchema<"market_ioc", undefined>; }, undefined>, v.StrictObjectSchema<{ readonly type: v.LiteralSchema<"limit_gtc", undefined>; readonly price: v.SchemaWithPipe, v.TrimAction, v.MinLengthAction]>; }, undefined>], undefined>; readonly triggerPriceSource: v.OptionalSchema, v.TransformAction<"last" | "index", TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE>]>, undefined>; }, undefined>, v.TransformAction<{ triggerPrice: string; execution: { type: "market_ioc"; } | { type: "limit_gtc"; price: string; }; triggerPriceSource?: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; }, { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; triggerPriceSource: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; }>]>; readonly trailingStop: v.OptionalSchema, undefined>; readonly oco: v.OptionalSchema, undefined>; }, undefined>, v.StrictObjectSchema<{ readonly takeProfit: v.SchemaWithPipe, v.TrimAction, v.MinLengthAction]>; readonly execution: v.VariantSchema<"type", [v.StrictObjectSchema<{ readonly type: v.LiteralSchema<"market_ioc", undefined>; }, undefined>, v.StrictObjectSchema<{ readonly type: v.LiteralSchema<"limit_gtc", undefined>; readonly price: v.SchemaWithPipe, v.TrimAction, v.MinLengthAction]>; }, undefined>], undefined>; readonly triggerPriceSource: v.OptionalSchema, v.TransformAction<"last" | "index", TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE>]>, undefined>; }, undefined>, v.TransformAction<{ triggerPrice: string; execution: { type: "market_ioc"; } | { type: "limit_gtc"; price: string; }; triggerPriceSource?: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; }, { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; triggerPriceSource: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; }>]>; readonly stopLoss: v.OptionalSchema, undefined>; readonly trailingStop: v.SchemaWithPipe; readonly distance: v.SchemaWithPipe, v.TrimAction, v.MinLengthAction]>; }, undefined>, v.StrictObjectSchema<{ readonly kind: v.LiteralSchema<"bps", undefined>; readonly bps: v.UnionSchema<[v.SchemaWithPipe, v.TrimAction, v.MinLengthAction]>, v.SchemaWithPipe, v.GtValueAction]>], undefined>; }, undefined>], undefined>; readonly maxSlippage: v.OptionalSchema; readonly slippage: v.SchemaWithPipe, v.TrimAction, v.MinLengthAction]>; }, undefined>, v.StrictObjectSchema<{ readonly kind: v.LiteralSchema<"bps", undefined>; readonly bps: v.UnionSchema<[v.SchemaWithPipe, v.TrimAction, v.MinLengthAction]>, v.SchemaWithPipe, v.GtValueAction]>], undefined>; }, undefined>, v.StrictObjectSchema<{ readonly kind: v.LiteralSchema<"none", undefined>; }, undefined>], undefined>, undefined>; readonly activationPrice: v.OptionalSchema, v.TrimAction, v.MinLengthAction]>, undefined>; readonly limitPrice: v.OptionalSchema, v.TrimAction, v.MinLengthAction]>, undefined>; readonly triggerPriceSource: v.OptionalSchema, v.TransformAction<"last" | "index", TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE>]>, undefined>; }, undefined>, v.TransformAction<{ trailingDistance: { kind: "bps"; bps: string | number; } | { kind: "distance"; distance: string; }; maxSlippage?: { kind: "slippage"; slippage: string; } | { kind: "bps"; bps: string | number; } | { kind: "none"; } | undefined; activationPrice?: string | undefined; limitPrice?: string | undefined; triggerPriceSource?: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; }, { trailingDistance: { value: bigint; case: "trailingDistanceTicks"; } | { value: number; case: "trailingDistanceBps"; } | { case: undefined; value?: undefined; }; maxSlippage: { value: bigint; case: "maxSlippageTicks"; } | { value: number; case: "maxSlippageBps"; } | { case: undefined; value?: undefined; }; activationPriceTicks: bigint; limitPriceTicks: bigint; triggerPriceSource: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; }>]>; readonly oco: v.OptionalSchema, undefined>; }, undefined>, v.StrictObjectSchema<{ readonly takeProfit: v.SchemaWithPipe, v.TrimAction, v.MinLengthAction]>; readonly execution: v.VariantSchema<"type", [v.StrictObjectSchema<{ readonly type: v.LiteralSchema<"market_ioc", undefined>; }, undefined>, v.StrictObjectSchema<{ readonly type: v.LiteralSchema<"limit_gtc", undefined>; readonly price: v.SchemaWithPipe, v.TrimAction, v.MinLengthAction]>; }, undefined>], undefined>; readonly triggerPriceSource: v.OptionalSchema, v.TransformAction<"last" | "index", TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE>]>, undefined>; }, undefined>, v.TransformAction<{ triggerPrice: string; execution: { type: "market_ioc"; } | { type: "limit_gtc"; price: string; }; triggerPriceSource?: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; }, { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; triggerPriceSource: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; }>]>; readonly stopLoss: v.OptionalSchema, undefined>; readonly trailingStop: v.OptionalSchema, undefined>; readonly oco: v.OptionalSchema, undefined>; }, undefined>, v.StrictObjectSchema<{ readonly takeProfit: v.OptionalSchema, undefined>; readonly stopLoss: v.SchemaWithPipe, v.TrimAction, v.MinLengthAction]>; readonly execution: v.VariantSchema<"type", [v.StrictObjectSchema<{ readonly type: v.LiteralSchema<"market_ioc", undefined>; }, undefined>, v.StrictObjectSchema<{ readonly type: v.LiteralSchema<"limit_gtc", undefined>; readonly price: v.SchemaWithPipe, v.TrimAction, v.MinLengthAction]>; }, undefined>], undefined>; readonly triggerPriceSource: v.OptionalSchema, v.TransformAction<"last" | "index", TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE>]>, undefined>; }, undefined>, v.TransformAction<{ triggerPrice: string; execution: { type: "market_ioc"; } | { type: "limit_gtc"; price: string; }; triggerPriceSource?: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; }, { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; triggerPriceSource: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; }>]>; readonly trailingStop: v.OptionalSchema, undefined>; readonly oco: v.OptionalSchema, undefined>; }, undefined>, v.StrictObjectSchema<{ readonly takeProfit: v.OptionalSchema, undefined>; readonly stopLoss: v.OptionalSchema, undefined>; readonly trailingStop: v.SchemaWithPipe; readonly distance: v.SchemaWithPipe, v.TrimAction, v.MinLengthAction]>; }, undefined>, v.StrictObjectSchema<{ readonly kind: v.LiteralSchema<"bps", undefined>; readonly bps: v.UnionSchema<[v.SchemaWithPipe, v.TrimAction, v.MinLengthAction]>, v.SchemaWithPipe, v.GtValueAction]>], undefined>; }, undefined>], undefined>; readonly maxSlippage: v.OptionalSchema; readonly slippage: v.SchemaWithPipe, v.TrimAction, v.MinLengthAction]>; }, undefined>, v.StrictObjectSchema<{ readonly kind: v.LiteralSchema<"bps", undefined>; readonly bps: v.UnionSchema<[v.SchemaWithPipe, v.TrimAction, v.MinLengthAction]>, v.SchemaWithPipe, v.GtValueAction]>], undefined>; }, undefined>, v.StrictObjectSchema<{ readonly kind: v.LiteralSchema<"none", undefined>; }, undefined>], undefined>, undefined>; readonly activationPrice: v.OptionalSchema, v.TrimAction, v.MinLengthAction]>, undefined>; readonly limitPrice: v.OptionalSchema, v.TrimAction, v.MinLengthAction]>, undefined>; readonly triggerPriceSource: v.OptionalSchema, v.TransformAction<"last" | "index", TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE>]>, undefined>; }, undefined>, v.TransformAction<{ trailingDistance: { kind: "bps"; bps: string | number; } | { kind: "distance"; distance: string; }; maxSlippage?: { kind: "slippage"; slippage: string; } | { kind: "bps"; bps: string | number; } | { kind: "none"; } | undefined; activationPrice?: string | undefined; limitPrice?: string | undefined; triggerPriceSource?: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; }, { trailingDistance: { value: bigint; case: "trailingDistanceTicks"; } | { value: number; case: "trailingDistanceBps"; } | { case: undefined; value?: undefined; }; maxSlippage: { value: bigint; case: "maxSlippageTicks"; } | { value: number; case: "maxSlippageBps"; } | { case: undefined; value?: undefined; }; activationPriceTicks: bigint; limitPriceTicks: bigint; triggerPriceSource: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; }>]>; readonly oco: v.OptionalSchema, undefined>; }, undefined>], undefined>, undefined>, v.TransformAction<{ takeProfit: { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; triggerPriceSource: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; }; stopLoss: { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; triggerPriceSource: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; }; trailingStop?: undefined; oco?: boolean | undefined; } | { takeProfit: { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; triggerPriceSource: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; }; stopLoss?: undefined; trailingStop: { trailingDistance: { value: bigint; case: "trailingDistanceTicks"; } | { value: number; case: "trailingDistanceBps"; } | { case: undefined; value?: undefined; }; maxSlippage: { value: bigint; case: "maxSlippageTicks"; } | { value: number; case: "maxSlippageBps"; } | { case: undefined; value?: undefined; }; activationPriceTicks: bigint; limitPriceTicks: bigint; triggerPriceSource: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; }; oco?: boolean | undefined; } | { takeProfit: { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; triggerPriceSource: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; }; stopLoss?: undefined; trailingStop?: undefined; oco?: false | undefined; } | { takeProfit?: undefined; stopLoss: { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; triggerPriceSource: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; }; trailingStop?: undefined; oco?: false | undefined; } | { takeProfit?: undefined; stopLoss?: undefined; trailingStop: { trailingDistance: { value: bigint; case: "trailingDistanceTicks"; } | { value: number; case: "trailingDistanceBps"; } | { case: undefined; value?: undefined; }; maxSlippage: { value: bigint; case: "maxSlippageTicks"; } | { value: number; case: "maxSlippageBps"; } | { case: undefined; value?: undefined; }; activationPriceTicks: bigint; limitPriceTicks: bigint; triggerPriceSource: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; }; oco?: false | undefined; } | undefined, { takeProfit: { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; triggerPriceSource: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; } | undefined; stopLeg: { readonly case: "stopLoss"; readonly value: { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; triggerPriceSource: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; }; } | { readonly case: "trailingStop"; readonly value: { trailingDistance: { value: bigint; case: "trailingDistanceTicks"; } | { value: number; case: "trailingDistanceBps"; } | { case: undefined; value?: undefined; }; maxSlippage: { value: bigint; case: "maxSlippageTicks"; } | { value: number; case: "maxSlippageBps"; } | { case: undefined; value?: undefined; }; activationPriceTicks: bigint; limitPriceTicks: bigint; triggerPriceSource: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; }; } | { readonly case: undefined; readonly value: undefined; }; oco: boolean; } | undefined>]>; readonly account: v.OptionalSchema, v.StrictObjectSchema<{ readonly subaccountId: v.SchemaWithPipe, v.TrimAction, v.MinLengthAction]>; }, undefined>], undefined>, undefined>; }, undefined>], undefined>, v.CheckAction<{ qty: string; maxQuoteDebit?: undefined; symbolId: number; side: Side.BUY | Side.SELL; execution: { case: "marketIoc"; value: MarketIoc; } | { case: "limitGtc"; value: LimitGtc; } | { case: "limitGtd"; value: LimitGtd; } | { case: "limitIoc"; value: LimitIoc; } | { case: "limitFok"; value: LimitFok; }; clientOrderId?: string | undefined; feeAsset?: FeeAsset.QUOTE | FeeAsset.BASE | undefined; selfTradePreventionMode?: SelfTradePreventionMode.EXPIRE_MAKER | SelfTradePreventionMode.EXPIRE_TAKER | SelfTradePreventionMode.EXPIRE_BOTH | undefined; risk?: { takeProfit: { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; triggerPriceSource: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; } | undefined; stopLeg: { readonly case: "stopLoss"; readonly value: { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; triggerPriceSource: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; }; } | { readonly case: "trailingStop"; readonly value: { trailingDistance: { value: bigint; case: "trailingDistanceTicks"; } | { value: number; case: "trailingDistanceBps"; } | { case: undefined; value?: undefined; }; maxSlippage: { value: bigint; case: "maxSlippageTicks"; } | { value: number; case: "maxSlippageBps"; } | { case: undefined; value?: undefined; }; activationPriceTicks: bigint; limitPriceTicks: bigint; triggerPriceSource: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; }; } | { readonly case: undefined; readonly value: undefined; }; oco: boolean; } | undefined; account?: "active" | "main" | { subaccountId: string; } | undefined; } | { qty?: undefined; maxQuoteDebit: string; symbolId: number; side: Side.BUY | Side.SELL; execution: { case: "marketIoc"; value: MarketIoc; } | { case: "limitGtc"; value: LimitGtc; } | { case: "limitGtd"; value: LimitGtd; } | { case: "limitIoc"; value: LimitIoc; } | { case: "limitFok"; value: LimitFok; }; clientOrderId?: string | undefined; feeAsset?: FeeAsset.QUOTE | FeeAsset.BASE | undefined; selfTradePreventionMode?: SelfTradePreventionMode.EXPIRE_MAKER | SelfTradePreventionMode.EXPIRE_TAKER | SelfTradePreventionMode.EXPIRE_BOTH | undefined; risk?: { takeProfit: { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; triggerPriceSource: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; } | undefined; stopLeg: { readonly case: "stopLoss"; readonly value: { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; triggerPriceSource: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; }; } | { readonly case: "trailingStop"; readonly value: { trailingDistance: { value: bigint; case: "trailingDistanceTicks"; } | { value: number; case: "trailingDistanceBps"; } | { case: undefined; value?: undefined; }; maxSlippage: { value: bigint; case: "maxSlippageTicks"; } | { value: number; case: "maxSlippageBps"; } | { case: undefined; value?: undefined; }; activationPriceTicks: bigint; limitPriceTicks: bigint; triggerPriceSource: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; }; } | { readonly case: undefined; readonly value: undefined; }; oco: boolean; } | undefined; account?: "active" | "main" | { subaccountId: string; } | undefined; }, "maxQuoteDebit is supported only for BUY market IOC and BUY limit IOC orders">, v.CheckAction<{ qty: string; maxQuoteDebit?: undefined; symbolId: number; side: Side.BUY | Side.SELL; execution: { case: "marketIoc"; value: MarketIoc; } | { case: "limitGtc"; value: LimitGtc; } | { case: "limitGtd"; value: LimitGtd; } | { case: "limitIoc"; value: LimitIoc; } | { case: "limitFok"; value: LimitFok; }; clientOrderId?: string | undefined; feeAsset?: FeeAsset.QUOTE | FeeAsset.BASE | undefined; selfTradePreventionMode?: SelfTradePreventionMode.EXPIRE_MAKER | SelfTradePreventionMode.EXPIRE_TAKER | SelfTradePreventionMode.EXPIRE_BOTH | undefined; risk?: { takeProfit: { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; triggerPriceSource: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; } | undefined; stopLeg: { readonly case: "stopLoss"; readonly value: { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; triggerPriceSource: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; }; } | { readonly case: "trailingStop"; readonly value: { trailingDistance: { value: bigint; case: "trailingDistanceTicks"; } | { value: number; case: "trailingDistanceBps"; } | { case: undefined; value?: undefined; }; maxSlippage: { value: bigint; case: "maxSlippageTicks"; } | { value: number; case: "maxSlippageBps"; } | { case: undefined; value?: undefined; }; activationPriceTicks: bigint; limitPriceTicks: bigint; triggerPriceSource: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; }; } | { readonly case: undefined; readonly value: undefined; }; oco: boolean; } | undefined; account?: "active" | "main" | { subaccountId: string; } | undefined; } | { qty?: undefined; maxQuoteDebit: string; symbolId: number; side: Side.BUY | Side.SELL; execution: { case: "marketIoc"; value: MarketIoc; } | { case: "limitGtc"; value: LimitGtc; } | { case: "limitGtd"; value: LimitGtd; } | { case: "limitIoc"; value: LimitIoc; } | { case: "limitFok"; value: LimitFok; }; clientOrderId?: string | undefined; feeAsset?: FeeAsset.QUOTE | FeeAsset.BASE | undefined; selfTradePreventionMode?: SelfTradePreventionMode.EXPIRE_MAKER | SelfTradePreventionMode.EXPIRE_TAKER | SelfTradePreventionMode.EXPIRE_BOTH | undefined; risk?: { takeProfit: { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; triggerPriceSource: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; } | undefined; stopLeg: { readonly case: "stopLoss"; readonly value: { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; triggerPriceSource: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; }; } | { readonly case: "trailingStop"; readonly value: { trailingDistance: { value: bigint; case: "trailingDistanceTicks"; } | { value: number; case: "trailingDistanceBps"; } | { case: undefined; value?: undefined; }; maxSlippage: { value: bigint; case: "maxSlippageTicks"; } | { value: number; case: "maxSlippageBps"; } | { case: undefined; value?: undefined; }; activationPriceTicks: bigint; limitPriceTicks: bigint; triggerPriceSource: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; }; } | { readonly case: undefined; readonly value: undefined; }; oco: boolean; } | undefined; account?: "active" | "main" | { subaccountId: string; } | undefined; }, "SELL orders must use the quote fee asset">, v.CheckAction<{ qty: string; maxQuoteDebit?: undefined; symbolId: number; side: Side.BUY | Side.SELL; execution: { case: "marketIoc"; value: MarketIoc; } | { case: "limitGtc"; value: LimitGtc; } | { case: "limitGtd"; value: LimitGtd; } | { case: "limitIoc"; value: LimitIoc; } | { case: "limitFok"; value: LimitFok; }; clientOrderId?: string | undefined; feeAsset?: FeeAsset.QUOTE | FeeAsset.BASE | undefined; selfTradePreventionMode?: SelfTradePreventionMode.EXPIRE_MAKER | SelfTradePreventionMode.EXPIRE_TAKER | SelfTradePreventionMode.EXPIRE_BOTH | undefined; risk?: { takeProfit: { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; triggerPriceSource: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; } | undefined; stopLeg: { readonly case: "stopLoss"; readonly value: { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; triggerPriceSource: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; }; } | { readonly case: "trailingStop"; readonly value: { trailingDistance: { value: bigint; case: "trailingDistanceTicks"; } | { value: number; case: "trailingDistanceBps"; } | { case: undefined; value?: undefined; }; maxSlippage: { value: bigint; case: "maxSlippageTicks"; } | { value: number; case: "maxSlippageBps"; } | { case: undefined; value?: undefined; }; activationPriceTicks: bigint; limitPriceTicks: bigint; triggerPriceSource: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; }; } | { readonly case: undefined; readonly value: undefined; }; oco: boolean; } | undefined; account?: "active" | "main" | { subaccountId: string; } | undefined; } | { qty?: undefined; maxQuoteDebit: string; symbolId: number; side: Side.BUY | Side.SELL; execution: { case: "marketIoc"; value: MarketIoc; } | { case: "limitGtc"; value: LimitGtc; } | { case: "limitGtd"; value: LimitGtd; } | { case: "limitIoc"; value: LimitIoc; } | { case: "limitFok"; value: LimitFok; }; clientOrderId?: string | undefined; feeAsset?: FeeAsset.QUOTE | FeeAsset.BASE | undefined; selfTradePreventionMode?: SelfTradePreventionMode.EXPIRE_MAKER | SelfTradePreventionMode.EXPIRE_TAKER | SelfTradePreventionMode.EXPIRE_BOTH | undefined; risk?: { takeProfit: { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; triggerPriceSource: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; } | undefined; stopLeg: { readonly case: "stopLoss"; readonly value: { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; triggerPriceSource: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; }; } | { readonly case: "trailingStop"; readonly value: { trailingDistance: { value: bigint; case: "trailingDistanceTicks"; } | { value: number; case: "trailingDistanceBps"; } | { case: undefined; value?: undefined; }; maxSlippage: { value: bigint; case: "maxSlippageTicks"; } | { value: number; case: "maxSlippageBps"; } | { case: undefined; value?: undefined; }; activationPriceTicks: bigint; limitPriceTicks: bigint; triggerPriceSource: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; }; } | { readonly case: undefined; readonly value: undefined; }; oco: boolean; } | undefined; account?: "active" | "main" | { subaccountId: string; } | undefined; }, "maxSlippageBps must be between 1 and 9999 for a market order that sells">, v.CheckAction<{ qty: string; maxQuoteDebit?: undefined; symbolId: number; side: Side.BUY | Side.SELL; execution: { case: "marketIoc"; value: MarketIoc; } | { case: "limitGtc"; value: LimitGtc; } | { case: "limitGtd"; value: LimitGtd; } | { case: "limitIoc"; value: LimitIoc; } | { case: "limitFok"; value: LimitFok; }; clientOrderId?: string | undefined; feeAsset?: FeeAsset.QUOTE | FeeAsset.BASE | undefined; selfTradePreventionMode?: SelfTradePreventionMode.EXPIRE_MAKER | SelfTradePreventionMode.EXPIRE_TAKER | SelfTradePreventionMode.EXPIRE_BOTH | undefined; risk?: { takeProfit: { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; triggerPriceSource: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; } | undefined; stopLeg: { readonly case: "stopLoss"; readonly value: { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; triggerPriceSource: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; }; } | { readonly case: "trailingStop"; readonly value: { trailingDistance: { value: bigint; case: "trailingDistanceTicks"; } | { value: number; case: "trailingDistanceBps"; } | { case: undefined; value?: undefined; }; maxSlippage: { value: bigint; case: "maxSlippageTicks"; } | { value: number; case: "maxSlippageBps"; } | { case: undefined; value?: undefined; }; activationPriceTicks: bigint; limitPriceTicks: bigint; triggerPriceSource: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; }; } | { readonly case: undefined; readonly value: undefined; }; oco: boolean; } | undefined; account?: "active" | "main" | { subaccountId: string; } | undefined; } | { qty?: undefined; maxQuoteDebit: string; symbolId: number; side: Side.BUY | Side.SELL; execution: { case: "marketIoc"; value: MarketIoc; } | { case: "limitGtc"; value: LimitGtc; } | { case: "limitGtd"; value: LimitGtd; } | { case: "limitIoc"; value: LimitIoc; } | { case: "limitFok"; value: LimitFok; }; clientOrderId?: string | undefined; feeAsset?: FeeAsset.QUOTE | FeeAsset.BASE | undefined; selfTradePreventionMode?: SelfTradePreventionMode.EXPIRE_MAKER | SelfTradePreventionMode.EXPIRE_TAKER | SelfTradePreventionMode.EXPIRE_BOTH | undefined; risk?: { takeProfit: { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; triggerPriceSource: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; } | undefined; stopLeg: { readonly case: "stopLoss"; readonly value: { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; triggerPriceSource: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; }; } | { readonly case: "trailingStop"; readonly value: { trailingDistance: { value: bigint; case: "trailingDistanceTicks"; } | { value: number; case: "trailingDistanceBps"; } | { case: undefined; value?: undefined; }; maxSlippage: { value: bigint; case: "maxSlippageTicks"; } | { value: number; case: "maxSlippageBps"; } | { case: undefined; value?: undefined; }; activationPriceTicks: bigint; limitPriceTicks: bigint; triggerPriceSource: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; }; } | { readonly case: undefined; readonly value: undefined; }; oco: boolean; } | undefined; account?: "active" | "main" | { subaccountId: string; } | undefined; }, "risk.trailingStop.limitPrice is required when the order sells and must be unset when it buys">]>, v.TransformAction<{ qty: string; maxQuoteDebit?: undefined; symbolId: number; side: Side.BUY | Side.SELL; execution: { case: "marketIoc"; value: MarketIoc; } | { case: "limitGtc"; value: LimitGtc; } | { case: "limitGtd"; value: LimitGtd; } | { case: "limitIoc"; value: LimitIoc; } | { case: "limitFok"; value: LimitFok; }; clientOrderId?: string | undefined; feeAsset?: FeeAsset.QUOTE | FeeAsset.BASE | undefined; selfTradePreventionMode?: SelfTradePreventionMode.EXPIRE_MAKER | SelfTradePreventionMode.EXPIRE_TAKER | SelfTradePreventionMode.EXPIRE_BOTH | undefined; risk?: { takeProfit: { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; triggerPriceSource: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; } | undefined; stopLeg: { readonly case: "stopLoss"; readonly value: { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; triggerPriceSource: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; }; } | { readonly case: "trailingStop"; readonly value: { trailingDistance: { value: bigint; case: "trailingDistanceTicks"; } | { value: number; case: "trailingDistanceBps"; } | { case: undefined; value?: undefined; }; maxSlippage: { value: bigint; case: "maxSlippageTicks"; } | { value: number; case: "maxSlippageBps"; } | { case: undefined; value?: undefined; }; activationPriceTicks: bigint; limitPriceTicks: bigint; triggerPriceSource: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; }; } | { readonly case: undefined; readonly value: undefined; }; oco: boolean; } | undefined; account?: "active" | "main" | { subaccountId: string; } | undefined; } | { qty?: undefined; maxQuoteDebit: string; symbolId: number; side: Side.BUY | Side.SELL; execution: { case: "marketIoc"; value: MarketIoc; } | { case: "limitGtc"; value: LimitGtc; } | { case: "limitGtd"; value: LimitGtd; } | { case: "limitIoc"; value: LimitIoc; } | { case: "limitFok"; value: LimitFok; }; clientOrderId?: string | undefined; feeAsset?: FeeAsset.QUOTE | FeeAsset.BASE | undefined; selfTradePreventionMode?: SelfTradePreventionMode.EXPIRE_MAKER | SelfTradePreventionMode.EXPIRE_TAKER | SelfTradePreventionMode.EXPIRE_BOTH | undefined; risk?: { takeProfit: { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; triggerPriceSource: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; } | undefined; stopLeg: { readonly case: "stopLoss"; readonly value: { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; triggerPriceSource: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; }; } | { readonly case: "trailingStop"; readonly value: { trailingDistance: { value: bigint; case: "trailingDistanceTicks"; } | { value: number; case: "trailingDistanceBps"; } | { case: undefined; value?: undefined; }; maxSlippage: { value: bigint; case: "maxSlippageTicks"; } | { value: number; case: "maxSlippageBps"; } | { case: undefined; value?: undefined; }; activationPriceTicks: bigint; limitPriceTicks: bigint; triggerPriceSource: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; }; } | { readonly case: undefined; readonly value: undefined; }; oco: boolean; } | undefined; account?: "active" | "main" | { subaccountId: string; } | undefined; }, { subaccountId: bigint | undefined; order: { sizing: { readonly case: "baseQtyScaled"; readonly value: bigint; } | { readonly case: "maxQuoteDebitScaled"; readonly value: bigint; }; feeAsset: FeeAsset.QUOTE | FeeAsset.BASE; attachedRisk: { takeProfit: { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; triggerPriceSource: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; } | undefined; stopLeg: { readonly case: "stopLoss"; readonly value: { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; triggerPriceSource: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; }; } | { readonly case: "trailingStop"; readonly value: { trailingDistance: { value: bigint; case: "trailingDistanceTicks"; } | { value: number; case: "trailingDistanceBps"; } | { case: undefined; value?: undefined; }; maxSlippage: { value: bigint; case: "maxSlippageTicks"; } | { value: number; case: "maxSlippageBps"; } | { case: undefined; value?: undefined; }; activationPriceTicks: bigint; limitPriceTicks: bigint; triggerPriceSource: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; }; } | { readonly case: undefined; readonly value: undefined; }; oco: boolean; } | undefined; symbolId: number; side: Side.BUY | Side.SELL; execution: { case: "marketIoc"; value: MarketIoc; } | { case: "limitGtc"; value: LimitGtc; } | { case: "limitGtd"; value: LimitGtd; } | { case: "limitIoc"; value: LimitIoc; } | { case: "limitFok"; value: LimitFok; }; clientOrderId?: string | undefined; selfTradePreventionMode?: SelfTradePreventionMode.EXPIRE_MAKER | SelfTradePreventionMode.EXPIRE_TAKER | SelfTradePreventionMode.EXPIRE_BOTH | undefined; } | { sizing: { readonly case: "baseQtyScaled"; readonly value: bigint; } | { readonly case: "maxQuoteDebitScaled"; readonly value: bigint; }; feeAsset: FeeAsset.QUOTE | FeeAsset.BASE; attachedRisk: { takeProfit: { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; triggerPriceSource: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; } | undefined; stopLeg: { readonly case: "stopLoss"; readonly value: { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; triggerPriceSource: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; }; } | { readonly case: "trailingStop"; readonly value: { trailingDistance: { value: bigint; case: "trailingDistanceTicks"; } | { value: number; case: "trailingDistanceBps"; } | { case: undefined; value?: undefined; }; maxSlippage: { value: bigint; case: "maxSlippageTicks"; } | { value: number; case: "maxSlippageBps"; } | { case: undefined; value?: undefined; }; activationPriceTicks: bigint; limitPriceTicks: bigint; triggerPriceSource: TriggerPriceSource.LAST_PRICE | TriggerPriceSource.INDEX_PRICE | undefined; }; } | { readonly case: undefined; readonly value: undefined; }; oco: boolean; } | undefined; symbolId: number; side: Side.BUY | Side.SELL; execution: { case: "marketIoc"; value: MarketIoc; } | { case: "limitGtc"; value: LimitGtc; } | { case: "limitGtd"; value: LimitGtd; } | { case: "limitIoc"; value: LimitIoc; } | { case: "limitFok"; value: LimitFok; }; clientOrderId?: string | undefined; selfTradePreventionMode?: SelfTradePreventionMode.EXPIRE_MAKER | SelfTradePreventionMode.EXPIRE_TAKER | SelfTradePreventionMode.EXPIRE_BOTH | undefined; }; }>]>; type NewOrderInput = v.InferInput>; declare const CancelOrderInputSchema: v.SchemaWithPipe, v.TrimAction, v.MinLengthAction, v.TransformAction]>, v.CheckAction]>; readonly clientOrderId: v.OptionalSchema, undefined>; readonly account: v.OptionalSchema, v.StrictObjectSchema<{ readonly subaccountId: v.SchemaWithPipe, v.TrimAction, v.MinLengthAction]>; }, undefined>], undefined>, undefined>; readonly symbolId: v.OptionalSchema, v.IntegerAction, v.GtValueAction, v.MaxValueAction]>, undefined>; }, undefined>, v.StrictObjectSchema<{ readonly orderId: v.OptionalSchema, undefined>; readonly clientOrderId: v.SchemaWithPipe, v.TrimAction, v.MaxLengthAction, v.RegexAction]>, v.MinLengthAction]>; readonly account: v.OptionalSchema, v.StrictObjectSchema<{ readonly subaccountId: v.SchemaWithPipe, v.TrimAction, v.MinLengthAction]>; }, undefined>], undefined>, undefined>; readonly symbolId: v.OptionalSchema, v.IntegerAction, v.GtValueAction, v.MaxValueAction]>, undefined>; }, undefined>], undefined>, v.TransformAction<{ orderId: bigint; clientOrderId?: undefined; account?: "active" | "main" | { subaccountId: string; } | undefined; symbolId?: number | undefined; } | { orderId?: undefined; clientOrderId: string; account?: "active" | "main" | { subaccountId: string; } | undefined; symbolId?: number | undefined; }, { subaccountId: bigint | undefined; key: { readonly case: "orderId"; readonly value: bigint; } | { readonly case: "clientOrderId"; readonly value: string; }; symbolId?: number | undefined; } | { subaccountId: bigint | undefined; key: { readonly case: "orderId"; readonly value: bigint; } | { readonly case: "clientOrderId"; readonly value: string; }; symbolId?: number | undefined; }>]>; type CancelOrderInput = v.InferInput; declare const CancelOrderResultSchema: v.SchemaWithPipe, v.TransformAction]>; readonly orderId: v.SchemaWithPipe, v.TransformAction]>; readonly tsNs: v.BigintSchema; }, undefined>, v.TransformAction<{ status: "unspecified" | "accepted"; orderId: string; tsNs: bigint; }, { ts: number; tsNs: string; status: "unspecified" | "accepted"; orderId: string; }>]>; type CancelOrderResult = v.InferOutput; declare const CancelAllOrdersInputSchema: v.SchemaWithPipe, v.IntegerAction, v.GtValueAction, v.MaxValueAction]>, undefined>, v.MaxLengthAction]>, readonly []>; readonly side: v.SchemaWithPipe, undefined>, v.TransformAction<"buy" | "sell" | undefined, Side.BUY | Side.SELL | undefined>]>; readonly dryRun: v.OptionalSchema, false>; readonly requestId: v.OptionalSchema, v.TrimAction, v.MinLengthAction, v.MaxLengthAction, v.RegexAction]>, undefined>; readonly account: v.OptionalSchema, v.StrictObjectSchema<{ readonly subaccountId: v.SchemaWithPipe, v.TrimAction, v.MinLengthAction]>; }, undefined>], undefined>, undefined>; }, undefined>, v.TransformAction<{ symbolIds: number[]; side?: Side.BUY | Side.SELL | undefined; dryRun: boolean; requestId?: string | undefined; account?: "active" | "main" | { subaccountId: string; } | undefined; }, { subaccountId: bigint | undefined; symbolIds: number[]; side?: Side.BUY | Side.SELL | undefined; dryRun: boolean; requestId?: string | undefined; }>]>; type CancelAllOrdersInput = v.InferInput; declare const CancelAllOrdersResponseSchema: v.SchemaWithPipe, v.TransformAction]>; readonly matchedOrders: v.NumberSchema; readonly submittedCancels: v.NumberSchema; readonly failedCancels: v.NumberSchema; readonly tsNs: v.BigintSchema; readonly cancelledOrders: v.OptionalSchema, v.TransformAction]>; readonly clientOrderId: v.StringSchema; }, undefined>, undefined>, readonly []>; readonly totalCancelled: v.OptionalSchema, 0>; readonly truncated: v.OptionalSchema, false>; readonly listingStatus: v.OptionalSchema, v.TransformAction]>, 0>; }, undefined>, v.TransformAction<{ status: "unspecified" | "submitted" | "dry_run"; matchedOrders: number; submittedCancels: number; failedCancels: number; tsNs: bigint; cancelledOrders: { orderId: string; clientOrderId: string; }[]; totalCancelled: number; truncated: boolean; listingStatus: "unspecified" | "included" | "not_retained_read_open_orders"; }, { status: "unspecified" | "submitted" | "dry_run"; matchedOrders: number; submittedCancels: number; failedCancels: number; ts: number; canceledOrders: { orderId: string; clientOrderId: string; }[]; totalCanceled: number; truncated: boolean; listingStatus: "unspecified" | "included" | "not_retained_read_open_orders"; }>]>; type CancelAllOrdersResponse = v.InferOutput; declare const GetOrderDetailsInputSchema: v.SchemaWithPipe, undefined>; readonly limit: v.OptionalSchema, v.IntegerAction, v.MinValueAction, v.MaxValueAction]>, undefined>; readonly pageToken: v.OptionalSchema, v.TrimAction]>, undefined>; readonly includeAttachedRisk: v.OptionalSchema, true>; readonly includeAttachedRiskState: v.OptionalSchema, true>; readonly account: v.OptionalSchema, v.StrictObjectSchema<{ readonly subaccountId: v.SchemaWithPipe, v.TrimAction, v.MinLengthAction]>; }, undefined>], undefined>, undefined>; readonly orderId: v.OptionalSchema, v.TrimAction, v.MinLengthAction, v.TransformAction]>, v.CheckAction]>, undefined>; readonly clientOrderId: v.OptionalSchema, v.TrimAction, v.MaxLengthAction, v.RegexAction]>, v.MinLengthAction]>, undefined>; }, undefined>, v.CheckAction<{ includeExecutionHistory?: boolean | undefined; limit?: number | undefined; pageToken?: string | undefined; includeAttachedRisk: boolean; includeAttachedRiskState: boolean; account?: "active" | "main" | { subaccountId: string; } | undefined; orderId?: bigint | undefined; clientOrderId?: string | undefined; }, "limit and pageToken must be omitted when includeExecutionHistory is false">, v.CheckAction<{ includeExecutionHistory?: boolean | undefined; limit?: number | undefined; pageToken?: string | undefined; includeAttachedRisk: boolean; includeAttachedRiskState: boolean; account?: "active" | "main" | { subaccountId: string; } | undefined; orderId?: bigint | undefined; clientOrderId?: string | undefined; }, "Provide exactly one of orderId or clientOrderId">, v.TransformAction<{ includeExecutionHistory?: boolean | undefined; limit?: number | undefined; pageToken?: string | undefined; includeAttachedRisk: boolean; includeAttachedRiskState: boolean; account?: "active" | "main" | { subaccountId: string; } | undefined; orderId?: bigint | undefined; clientOrderId?: string | undefined; }, { subaccountId: bigint | undefined; key: { readonly case: "orderId"; readonly value: bigint; } | { readonly case: "clientOrderId"; readonly value: string; }; includeExecutionHistory?: boolean | undefined; limit?: number | undefined; pageToken?: string | undefined; includeAttachedRisk: boolean; includeAttachedRiskState: boolean; }>]>; type GetOrderDetailsInput = v.InferInput; declare function createCreateOrderResultSchema(scales: SdkScales, symbolId: number): v.SchemaWithPipe, v.TransformAction]>; readonly clientOrderId: v.StringSchema; readonly acceptedAt: v.SchemaWithPipe; readonly nanos: v.OptionalSchema, 0>; }, undefined>, undefined>, v.TransformAction<{ seconds: bigint; nanos: number; } | undefined, number | undefined>]>; readonly acceptedAtTsNs: v.BigintSchema; readonly resolvedBaseQtyScaled: v.BigintSchema; readonly submittedMaxQuoteDebitScaled: v.OptionalSchema, undefined>; readonly takeProfitTriggerId: v.SchemaWithPipe, undefined>, v.TransformAction]>; readonly stopLossTriggerId: v.SchemaWithPipe, undefined>, v.TransformAction]>; readonly trailingStopTriggerId: v.SchemaWithPipe, undefined>, v.TransformAction]>; }, undefined>, v.TransformAction<{ orderId: string; clientOrderId: string; acceptedAt?: number | undefined; acceptedAtTsNs: bigint; resolvedBaseQtyScaled: bigint; submittedMaxQuoteDebitScaled?: bigint | undefined; takeProfitTriggerId?: string | undefined; stopLossTriggerId?: string | undefined; trailingStopTriggerId?: string | undefined; }, { submittedMaxQuoteDebit?: string | undefined; acceptedAt: number; acceptedAtNs: string; resolvedBaseQty: string; orderId: string; clientOrderId: string; takeProfitTriggerId?: string | undefined; stopLossTriggerId?: string | undefined; trailingStopTriggerId?: string | undefined; }>]>; type CreateOrderResult = v.InferOutput>; declare function createPreviewOrderResultSchema(scales: SdkScales, symbolId: number): v.SchemaWithPipe, undefined>; readonly rejection: v.OptionalSchema, v.TransformAction]>; readonly violations: v.ArraySchema; readonly ruleId: v.StringSchema; readonly message: v.StringSchema; }, undefined>, undefined>; readonly rateLimit: v.OptionalSchema, v.TransformAction]>; readonly limit: v.SchemaWithPipe, undefined>, v.TransformAction]>; readonly remaining: v.SchemaWithPipe, undefined>, v.TransformAction]>; readonly retryAfterMs: v.SchemaWithPipe, undefined>, v.TransformAction]>; readonly policyVersion: v.SchemaWithPipe, undefined>, v.TransformAction]>; readonly operationId: v.StringSchema; readonly policyClass: v.SchemaWithPipe, v.TransformAction]>; readonly scope: v.SchemaWithPipe, v.TransformAction]>; readonly refillModel: v.SchemaWithPipe, v.TransformAction]>; }, undefined>, undefined>; readonly existingOrderId: v.SchemaWithPipe, undefined>, v.TransformAction]>; }, undefined>, undefined>; readonly resolvedBaseQtyScaled: v.OptionalSchema, undefined>; readonly protectedPriceBoundTicks: v.OptionalSchema, undefined>; readonly evaluatedAt: v.SchemaWithPipe; readonly nanos: v.OptionalSchema, 0>; }, undefined>, v.TransformAction<{ seconds: bigint; nanos: number; }, number>]>; }, undefined>, v.TransformAction<{ admissible?: boolean | undefined; rejection?: { code: "STALE_QUOTE" | "UNSPECIFIED" | "UNAUTHENTICATED" | "RATE_LIMIT_EXCEEDED" | "INTERNAL_ERROR" | "PERMISSION_DENIED" | "SUBACCOUNT_INACTIVE" | "BAD_REQUEST" | "INVALID_ARGUMENT" | "INSUFFICIENT_FUNDS" | "UNKNOWN_SYMBOL" | "BAD_PRICE" | "BAD_QTY" | "MIN_NOTIONAL" | "QTY_STEP_SIZE" | "CONFLICT_DUPLICATE_CLIENT_ORDER_ID" | "UNAVAILABLE" | "NOT_FOUND" | "UPSTREAM_ERROR" | "FEE_ASSET_NOT_ALLOWED" | "PAIR_DISABLED" | "ORDER_UNKNOWN" | "POLICY_MARKET_DENY" | "POLICY_MAX_NOTIONAL" | "POLICY_TRADING_HALTED" | "POLICY_SPOT_TRADE_DENY" | "API_KEY_ROOT_SCOPE_ONLY" | "API_KEY_SUB_SCOPE_ONLY" | "API_KEY_SUBACCOUNT_MISMATCH" | "API_KEY_POLICY_REQUIRED" | "API_KEY_UNKNOWN" | "API_KEY_MARKET_DENY" | "PRICE_TICK_SIZE" | "MIN_QTY" | "POST_ONLY_LIMIT_ONLY" | "BATCH_TOO_LARGE" | "POLICY_MAX_OPEN_ORDERS" | "MODIFICATION_REQUIRES_REPLACE" | "CONFLICT_IDEMPOTENCY_KEY_REUSE" | "MARKET_PRICE_UNAVAILABLE" | "PAIR_NOT_LISTED_YET" | "PAIR_DELISTED" | "PAIR_CANCEL_ONLY" | "PAIR_POST_ONLY" | "PAIR_REDUCE_ONLY" | "RISK_LIMIT" | "MARKET_HALTED" | "ACCOUNT_UNKNOWN" | "POST_ONLY_CROSS" | "REDUCE_ONLY_BLOCKED" | "PRICE_BAND_VIOLATION" | "MARKET_CAP_VIOLATION" | "EMPTY_BOOK" | "FOK_INSUFFICIENT_LIQUIDITY" | "ORDER_ALREADY_TERMINAL" | "TRIGGER_PRICE_INVALID" | "TRIGGER_PRICE_SOURCE_UNSUPPORTED" | "TRAILING_DISTANCE_INVALID" | "TRIGGER_NOT_FOUND" | "TRIGGER_STATUS_INVALID" | "TRIGGER_NOT_MODIFIABLE" | "CONFLICT_DUPLICATE_CLIENT_TRIGGER_ID" | "MAX_SLIPPAGE_INVALID" | "VALIDATION_ERROR" | "OVERLOADED" | "MAX_QUOTE_DEBIT_TOO_SMALL" | "SUBACCOUNT_READ_FORBIDDEN" | "POLICY_SPOT_READ_DENY" | "API_KEY_SPOT_READ_DENY" | "CANCEL_REQUEST_EXPIRED" | "MAX_QTY" | "MAX_NOTIONAL" | "QTY_AT_OR_BELOW_FILLED" | "GATEWAY_MISCONFIGURED" | "INVALID_ORDER_ID" | "CHILD_QTY_RAISE_NOT_ALLOWED" | "ATTACHED_RISK_NOT_SUPPORTED" | "SETTLEMENT_BACKLOGGED" | "PRICE_LEVEL_QUANTITY_LIMIT" | "MARKET_QUOTE_STALE" | "MARKET_QUOTE_UNHEALTHY" | "INVALID_TIME_IN_FORCE" | "QUICKSWAP_NOT_PERMITTED" | "DUPLICATE_ORDER_ID" | "MAX_OPEN_ORDERS_TOTAL" | "STP_MODE_NOT_ALLOWED" | "PAIR_BACKLOGGED" | "PRICE_LEVELS_EXHAUSTED" | "CLIENT_ORDER_IDS_EXHAUSTED" | "ORDER_ID_CONFLICT" | "INVALID_SIDE" | "INVALID_ORDER_TYPE" | "INVALID_STP_MODE" | "INVALID_ORDER_FLAGS" | "BATCH_OTHER_ITEM_INVALID" | "REPLACE_ONTO_OWN_ID" | "INVALID_CLIENT_ORDER_ID" | "ORDER_SEQUENCE_EXHAUSTED" | "INVALID_HANDLING_MODE" | "FEE_SCHEDULE_UNAVAILABLE" | "POLICY_UNAVAILABLE" | "CANCEL_ALL_AFTER_TIMEOUT_INVALID" | "CANCEL_SCOPE_TOO_LARGE" | "RATE_LIMIT_POLICY_UNAVAILABLE" | "SYSTEM_RATE_LIMITED" | "ORDER_MODIFY_IN_PROGRESS" | "ORDER_PLACEMENT_PENDING" | "INVALID_MODIFY_BEHAVIOR" | "BATCH_REPLACE_ONLY_REQUIRED" | "BATCH_SINGLE_SYMBOL_REQUIRED" | "REQUEST_RECEIPTS_EXHAUSTED" | "INTENT_ID_INVALID" | "DRY_RUN_INVALID" | "CANCEL_ALL_AFTER_SCOPE_CONFLICT" | "NEW_ACCOUNT_CAPACITY_REACHED" | "TRIGGER_CHILD_PRICE_NOT_MODIFIABLE" | "TRIGGER_GENERATIONS_EXHAUSTED" | "TRIGGER_CONTROL_SHARE_EXHAUSTED" | "TRIGGER_CONTROLS_BUSY" | "TRIGGER_TYPE_NOT_SUPPORTED" | "INVALID_TRIGGER_TYPE" | "TRIGGER_DIRECTION_INVALID" | "TRIGGER_QTY_INVALID" | "TRIGGER_BUY_REQUIRES_LIMIT" | "ACCOUNT_ROUTING_INVALID" | "TRIGGER_LIMIT_EXCEEDED" | "TRIGGER_CONTROL_IN_PROGRESS" | "TRIGGER_PATCH_EMPTY" | "CLIENT_TRIGGER_ID_INVALID" | "TRIGGER_ACTIVATION_PRICE_INVALID" | "SLIPPAGE_TICKS_INVALID" | "SLIPPAGE_BPS_INVALID" | "TRIGGER_CONTROL_OUTCOME_UNKNOWN" | "TRIGGER_CAPACITY_REACHED" | "RESERVATION_CAPACITY_REACHED" | "CLIENT_ORDER_ID_CAPACITY_REACHED" | "ACCOUNT_RESERVATION_LIMIT_REACHED" | "INVALID_TRIGGER_CONTROL" | "TRIGGER_PATCH_NOT_ALLOWED" | "TRIGGER_PATCH_FIELD_UNKNOWN" | "TRIGGER_PATCH_VALUE_UNMASKED" | "TRIGGER_PATCH_PRICE_MODE_INVALID" | "ACCOUNT_ORDERS_SUSPENDED" | "TRAILING_SIDE_NOT_SUPPORTED" | "TRAILING_CHILD_NOT_MARKET" | "TWAP_DURATION_INVALID" | "LIMIT_CHILD_SLIPPAGE_SET" | "SLIPPAGE_BOUNDS_CONFLICT" | "TWAP_INTERVAL_INVALID" | "LADDER_LEVEL_REJECTED" | "LADDER_RANGE_TOO_NARROW" | "LADDER_LEVELS_INVALID" | "ORDER_LIMITS_UNAVAILABLE" | "ORDER_TYPE_NOT_ALLOWED_IN_AUCTION" | "POST_ONLY_NOT_ALLOWED_IN_AUCTION" | "QUICKSWAP_FEE_DETAILS_INCOMPLETE" | "QUICKSWAP_MARKET_NOT_PRICED" | "QUICKSWAP_BROKER_FEE_TERMS_MISMATCH" | "QUICKSWAP_FEE_RECIPIENT_IS_PAYER" | "QUICKSWAP_BROKER_FEE_TERMS_UNAVAILABLE" | "QUICKSWAP_BROKER_ACCOUNT_UNAVAILABLE" | "QUICKSWAP_ACCOUNT_OWNER_UNKNOWN" | "QUICKSWAP_DISABLED" | "QUICKSWAP_ATTACHED_RISK_NOT_ALLOWED" | "QUICKSWAP_ORDER_NOT_MODIFIABLE" | "QUICKSWAP_FEE_TOTAL_TOO_HIGH" | "QUICKSWAP_BROKER_FEE_TERMS_INVALID" | "QUICKSWAP_BROKER_INVALID" | "QUICKSWAP_FEE_SCHEDULE_INVALID" | "QUICKSWAP_MARKET_FEE_INVALID" | "QUICKSWAP_SETUP_INVALID" | "QUICKSWAP_CAPACITY_REACHED" | "ATTACHED_EXIT_WORKING" | "MARKET_TRIGGER_LIMIT_EXCEEDED" | "MARKET_TWAP_LIMIT_EXCEEDED" | "MARKET_LADDER_LIMIT_EXCEEDED" | "CHILD_QTY_EXCEEDS_REMAINING" | "ORDER_CANCEL_OUTCOME_UNKNOWN" | "ORDER_MODIFY_OUTCOME_UNKNOWN" | "ORDER_REPAIRING" | "ACCOUNT_REPAIRING" | "TRIGGER_WOULD_TRIGGER_IMMEDIATELY" | "ORDER_CREATE_OUTCOME_UNKNOWN" | "TRIGGER_CREATE_OUTCOME_UNKNOWN" | "TRIGGER_SYMBOL_MISMATCH" | "MAX_OPEN_ORDERS_PER_PAIR" | "SELF_TRADE_PREVENTED" | "ATTACHED_LEGS_EXCEEDED" | "FEE_ASSET_INVALID" | "FEE_CEILING_INVALID" | "UNSUPPORTED_FIELD_SET" | "TRIGGER_FIRE_LIMIT_REACHED" | "CONDITION_FLAGS_INVALID" | "CONDITION_PARAMETER_SET" | "TWAP_CAPACITY_REACHED" | "CHILD_ORDER_INCONSISTENT" | "PATH_BODY_ID_MISMATCH" | "REQUEST_DEADLINE_EXCEEDED"; violations: { fieldPath: string; ruleId: string; message: string; }[]; rateLimit?: { reason: "unspecified" | "quota_exceeded" | "authority_unavailable"; limit?: string | undefined; remaining?: string | undefined; retryAfterMs?: string | undefined; policyVersion?: string | undefined; operationId: string; policyClass: "unspecified" | "auth_public" | "trading_place" | "trading_cancel" | "trading_read" | "account_admin" | "public_read" | "account_security" | "deposit_create" | "internal_transfer" | "withdraw_submit" | "withdraw_validate" | "guard_sign" | "social_provider" | "assistant_message" | "assistant_control" | "assistant_read"; scope: "symbol" | "unspecified" | "client_ip" | "api_key" | "account" | "subaccount" | "connection" | "service" | "region" | "auth_subject"; refillModel: "unspecified" | "continuous" | "fixed_window" | "rolling_window"; } | undefined; existingOrderId?: string | undefined; } | undefined; resolvedBaseQtyScaled?: bigint | undefined; protectedPriceBoundTicks?: bigint | undefined; evaluatedAt: number; }, { protectedPriceBound?: string | undefined; resolvedBaseQty?: string | undefined; admissible?: boolean | undefined; rejection?: { code: "STALE_QUOTE" | "UNSPECIFIED" | "UNAUTHENTICATED" | "RATE_LIMIT_EXCEEDED" | "INTERNAL_ERROR" | "PERMISSION_DENIED" | "SUBACCOUNT_INACTIVE" | "BAD_REQUEST" | "INVALID_ARGUMENT" | "INSUFFICIENT_FUNDS" | "UNKNOWN_SYMBOL" | "BAD_PRICE" | "BAD_QTY" | "MIN_NOTIONAL" | "QTY_STEP_SIZE" | "CONFLICT_DUPLICATE_CLIENT_ORDER_ID" | "UNAVAILABLE" | "NOT_FOUND" | "UPSTREAM_ERROR" | "FEE_ASSET_NOT_ALLOWED" | "PAIR_DISABLED" | "ORDER_UNKNOWN" | "POLICY_MARKET_DENY" | "POLICY_MAX_NOTIONAL" | "POLICY_TRADING_HALTED" | "POLICY_SPOT_TRADE_DENY" | "API_KEY_ROOT_SCOPE_ONLY" | "API_KEY_SUB_SCOPE_ONLY" | "API_KEY_SUBACCOUNT_MISMATCH" | "API_KEY_POLICY_REQUIRED" | "API_KEY_UNKNOWN" | "API_KEY_MARKET_DENY" | "PRICE_TICK_SIZE" | "MIN_QTY" | "POST_ONLY_LIMIT_ONLY" | "BATCH_TOO_LARGE" | "POLICY_MAX_OPEN_ORDERS" | "MODIFICATION_REQUIRES_REPLACE" | "CONFLICT_IDEMPOTENCY_KEY_REUSE" | "MARKET_PRICE_UNAVAILABLE" | "PAIR_NOT_LISTED_YET" | "PAIR_DELISTED" | "PAIR_CANCEL_ONLY" | "PAIR_POST_ONLY" | "PAIR_REDUCE_ONLY" | "RISK_LIMIT" | "MARKET_HALTED" | "ACCOUNT_UNKNOWN" | "POST_ONLY_CROSS" | "REDUCE_ONLY_BLOCKED" | "PRICE_BAND_VIOLATION" | "MARKET_CAP_VIOLATION" | "EMPTY_BOOK" | "FOK_INSUFFICIENT_LIQUIDITY" | "ORDER_ALREADY_TERMINAL" | "TRIGGER_PRICE_INVALID" | "TRIGGER_PRICE_SOURCE_UNSUPPORTED" | "TRAILING_DISTANCE_INVALID" | "TRIGGER_NOT_FOUND" | "TRIGGER_STATUS_INVALID" | "TRIGGER_NOT_MODIFIABLE" | "CONFLICT_DUPLICATE_CLIENT_TRIGGER_ID" | "MAX_SLIPPAGE_INVALID" | "VALIDATION_ERROR" | "OVERLOADED" | "MAX_QUOTE_DEBIT_TOO_SMALL" | "SUBACCOUNT_READ_FORBIDDEN" | "POLICY_SPOT_READ_DENY" | "API_KEY_SPOT_READ_DENY" | "CANCEL_REQUEST_EXPIRED" | "MAX_QTY" | "MAX_NOTIONAL" | "QTY_AT_OR_BELOW_FILLED" | "GATEWAY_MISCONFIGURED" | "INVALID_ORDER_ID" | "CHILD_QTY_RAISE_NOT_ALLOWED" | "ATTACHED_RISK_NOT_SUPPORTED" | "SETTLEMENT_BACKLOGGED" | "PRICE_LEVEL_QUANTITY_LIMIT" | "MARKET_QUOTE_STALE" | "MARKET_QUOTE_UNHEALTHY" | "INVALID_TIME_IN_FORCE" | "QUICKSWAP_NOT_PERMITTED" | "DUPLICATE_ORDER_ID" | "MAX_OPEN_ORDERS_TOTAL" | "STP_MODE_NOT_ALLOWED" | "PAIR_BACKLOGGED" | "PRICE_LEVELS_EXHAUSTED" | "CLIENT_ORDER_IDS_EXHAUSTED" | "ORDER_ID_CONFLICT" | "INVALID_SIDE" | "INVALID_ORDER_TYPE" | "INVALID_STP_MODE" | "INVALID_ORDER_FLAGS" | "BATCH_OTHER_ITEM_INVALID" | "REPLACE_ONTO_OWN_ID" | "INVALID_CLIENT_ORDER_ID" | "ORDER_SEQUENCE_EXHAUSTED" | "INVALID_HANDLING_MODE" | "FEE_SCHEDULE_UNAVAILABLE" | "POLICY_UNAVAILABLE" | "CANCEL_ALL_AFTER_TIMEOUT_INVALID" | "CANCEL_SCOPE_TOO_LARGE" | "RATE_LIMIT_POLICY_UNAVAILABLE" | "SYSTEM_RATE_LIMITED" | "ORDER_MODIFY_IN_PROGRESS" | "ORDER_PLACEMENT_PENDING" | "INVALID_MODIFY_BEHAVIOR" | "BATCH_REPLACE_ONLY_REQUIRED" | "BATCH_SINGLE_SYMBOL_REQUIRED" | "REQUEST_RECEIPTS_EXHAUSTED" | "INTENT_ID_INVALID" | "DRY_RUN_INVALID" | "CANCEL_ALL_AFTER_SCOPE_CONFLICT" | "NEW_ACCOUNT_CAPACITY_REACHED" | "TRIGGER_CHILD_PRICE_NOT_MODIFIABLE" | "TRIGGER_GENERATIONS_EXHAUSTED" | "TRIGGER_CONTROL_SHARE_EXHAUSTED" | "TRIGGER_CONTROLS_BUSY" | "TRIGGER_TYPE_NOT_SUPPORTED" | "INVALID_TRIGGER_TYPE" | "TRIGGER_DIRECTION_INVALID" | "TRIGGER_QTY_INVALID" | "TRIGGER_BUY_REQUIRES_LIMIT" | "ACCOUNT_ROUTING_INVALID" | "TRIGGER_LIMIT_EXCEEDED" | "TRIGGER_CONTROL_IN_PROGRESS" | "TRIGGER_PATCH_EMPTY" | "CLIENT_TRIGGER_ID_INVALID" | "TRIGGER_ACTIVATION_PRICE_INVALID" | "SLIPPAGE_TICKS_INVALID" | "SLIPPAGE_BPS_INVALID" | "TRIGGER_CONTROL_OUTCOME_UNKNOWN" | "TRIGGER_CAPACITY_REACHED" | "RESERVATION_CAPACITY_REACHED" | "CLIENT_ORDER_ID_CAPACITY_REACHED" | "ACCOUNT_RESERVATION_LIMIT_REACHED" | "INVALID_TRIGGER_CONTROL" | "TRIGGER_PATCH_NOT_ALLOWED" | "TRIGGER_PATCH_FIELD_UNKNOWN" | "TRIGGER_PATCH_VALUE_UNMASKED" | "TRIGGER_PATCH_PRICE_MODE_INVALID" | "ACCOUNT_ORDERS_SUSPENDED" | "TRAILING_SIDE_NOT_SUPPORTED" | "TRAILING_CHILD_NOT_MARKET" | "TWAP_DURATION_INVALID" | "LIMIT_CHILD_SLIPPAGE_SET" | "SLIPPAGE_BOUNDS_CONFLICT" | "TWAP_INTERVAL_INVALID" | "LADDER_LEVEL_REJECTED" | "LADDER_RANGE_TOO_NARROW" | "LADDER_LEVELS_INVALID" | "ORDER_LIMITS_UNAVAILABLE" | "ORDER_TYPE_NOT_ALLOWED_IN_AUCTION" | "POST_ONLY_NOT_ALLOWED_IN_AUCTION" | "QUICKSWAP_FEE_DETAILS_INCOMPLETE" | "QUICKSWAP_MARKET_NOT_PRICED" | "QUICKSWAP_BROKER_FEE_TERMS_MISMATCH" | "QUICKSWAP_FEE_RECIPIENT_IS_PAYER" | "QUICKSWAP_BROKER_FEE_TERMS_UNAVAILABLE" | "QUICKSWAP_BROKER_ACCOUNT_UNAVAILABLE" | "QUICKSWAP_ACCOUNT_OWNER_UNKNOWN" | "QUICKSWAP_DISABLED" | "QUICKSWAP_ATTACHED_RISK_NOT_ALLOWED" | "QUICKSWAP_ORDER_NOT_MODIFIABLE" | "QUICKSWAP_FEE_TOTAL_TOO_HIGH" | "QUICKSWAP_BROKER_FEE_TERMS_INVALID" | "QUICKSWAP_BROKER_INVALID" | "QUICKSWAP_FEE_SCHEDULE_INVALID" | "QUICKSWAP_MARKET_FEE_INVALID" | "QUICKSWAP_SETUP_INVALID" | "QUICKSWAP_CAPACITY_REACHED" | "ATTACHED_EXIT_WORKING" | "MARKET_TRIGGER_LIMIT_EXCEEDED" | "MARKET_TWAP_LIMIT_EXCEEDED" | "MARKET_LADDER_LIMIT_EXCEEDED" | "CHILD_QTY_EXCEEDS_REMAINING" | "ORDER_CANCEL_OUTCOME_UNKNOWN" | "ORDER_MODIFY_OUTCOME_UNKNOWN" | "ORDER_REPAIRING" | "ACCOUNT_REPAIRING" | "TRIGGER_WOULD_TRIGGER_IMMEDIATELY" | "ORDER_CREATE_OUTCOME_UNKNOWN" | "TRIGGER_CREATE_OUTCOME_UNKNOWN" | "TRIGGER_SYMBOL_MISMATCH" | "MAX_OPEN_ORDERS_PER_PAIR" | "SELF_TRADE_PREVENTED" | "ATTACHED_LEGS_EXCEEDED" | "FEE_ASSET_INVALID" | "FEE_CEILING_INVALID" | "UNSUPPORTED_FIELD_SET" | "TRIGGER_FIRE_LIMIT_REACHED" | "CONDITION_FLAGS_INVALID" | "CONDITION_PARAMETER_SET" | "TWAP_CAPACITY_REACHED" | "CHILD_ORDER_INCONSISTENT" | "PATH_BODY_ID_MISMATCH" | "REQUEST_DEADLINE_EXCEEDED"; violations: { fieldPath: string; ruleId: string; message: string; }[]; rateLimit?: { reason: "unspecified" | "quota_exceeded" | "authority_unavailable"; limit?: string | undefined; remaining?: string | undefined; retryAfterMs?: string | undefined; policyVersion?: string | undefined; operationId: string; policyClass: "unspecified" | "auth_public" | "trading_place" | "trading_cancel" | "trading_read" | "account_admin" | "public_read" | "account_security" | "deposit_create" | "internal_transfer" | "withdraw_submit" | "withdraw_validate" | "guard_sign" | "social_provider" | "assistant_message" | "assistant_control" | "assistant_read"; scope: "symbol" | "unspecified" | "client_ip" | "api_key" | "account" | "subaccount" | "connection" | "service" | "region" | "auth_subject"; refillModel: "unspecified" | "continuous" | "fixed_window" | "rolling_window"; } | undefined; existingOrderId?: string | undefined; } | undefined; evaluatedAt: number; }>]>; type PreviewOrderResult = v.InferOutput>; //#endregion export { CancelAllOrdersInput, CancelAllOrdersInputSchema, CancelAllOrdersResponse, CancelAllOrdersResponseSchema, CancelOrderInput, CancelOrderInputSchema, CancelOrderResult, CancelOrderResultSchema, CreateOrderResult, GetOrderDetailsInput, GetOrderDetailsInputSchema, NewOrderInput, OpenOrdersInput, OpenOrdersInputSchema, OrderHistoryInput, OrderHistoryInputSchema, OrderIntentInput, PreviewOrderResult, createCreateOrderResultSchema, createNewOrderInputSchema, createOrderIntentInputSchema, createPreviewOrderResultSchema }; //# sourceMappingURL=orders-input.schemas.d.ts.map