import { ErrorCode, FeeAsset, LimitFok, LimitGtc, LimitGtd, LimitIoc, MarketIoc, RiskLimitGtc, RiskMarketIoc, SelfTradePreventionMode, Side } 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, 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<"FILLED" | "CANCELED" | "REJECTED" | 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, 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>; }, undefined>, v.TransformAction<{ triggerPrice: string; execution: { type: "market_ioc"; } | { type: "limit_gtc"; price: string; }; }, { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; }>]>; 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>; }, undefined>, v.TransformAction<{ triggerPrice: string; execution: { type: "market_ioc"; } | { type: "limit_gtc"; price: string; }; }, { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; }>]>; 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>; }, undefined>, v.TransformAction<{ triggerPrice: string; execution: { type: "market_ioc"; } | { type: "limit_gtc"; price: string; }; }, { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; }>]>; 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>; }, 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; }, { 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; }>]>; 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>; }, undefined>, v.TransformAction<{ triggerPrice: string; execution: { type: "market_ioc"; } | { type: "limit_gtc"; price: string; }; }, { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; }>]>; 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>; }, undefined>, v.TransformAction<{ triggerPrice: string; execution: { type: "market_ioc"; } | { type: "limit_gtc"; price: string; }; }, { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; }>]>; 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>; }, 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; }, { 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; }>]>; readonly oco: v.OptionalSchema, undefined>; }, undefined>], undefined>, undefined>, v.TransformAction<{ takeProfit: { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; }; stopLoss: { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; }; trailingStop?: undefined; oco?: boolean | undefined; } | { takeProfit: { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; }; 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; }; oco?: boolean | undefined; } | { takeProfit: { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; }; stopLoss?: undefined; trailingStop?: undefined; oco?: false | undefined; } | { takeProfit?: undefined; stopLoss: { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; }; 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; }; oco?: false | undefined; } | undefined, { takeProfit: { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; } | undefined; stopLeg: { readonly case: "stopLoss"; readonly value: { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; }; } | { 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; }; } | { 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>; }, undefined>, v.TransformAction<{ triggerPrice: string; execution: { type: "market_ioc"; } | { type: "limit_gtc"; price: string; }; }, { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; }>]>; 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>; }, undefined>, v.TransformAction<{ triggerPrice: string; execution: { type: "market_ioc"; } | { type: "limit_gtc"; price: string; }; }, { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; }>]>; 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>; }, undefined>, v.TransformAction<{ triggerPrice: string; execution: { type: "market_ioc"; } | { type: "limit_gtc"; price: string; }; }, { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; }>]>; 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>; }, 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; }, { 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; }>]>; 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>; }, undefined>, v.TransformAction<{ triggerPrice: string; execution: { type: "market_ioc"; } | { type: "limit_gtc"; price: string; }; }, { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; }>]>; 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>; }, undefined>, v.TransformAction<{ triggerPrice: string; execution: { type: "market_ioc"; } | { type: "limit_gtc"; price: string; }; }, { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; }>]>; 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>; }, 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; }, { 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; }>]>; readonly oco: v.OptionalSchema, undefined>; }, undefined>], undefined>, undefined>, v.TransformAction<{ takeProfit: { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; }; stopLoss: { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; }; trailingStop?: undefined; oco?: boolean | undefined; } | { takeProfit: { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; }; 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; }; oco?: boolean | undefined; } | { takeProfit: { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; }; stopLoss?: undefined; trailingStop?: undefined; oco?: false | undefined; } | { takeProfit?: undefined; stopLoss: { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; }; 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; }; oco?: false | undefined; } | undefined, { takeProfit: { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; } | undefined; stopLeg: { readonly case: "stopLoss"; readonly value: { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; }; } | { 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; }; } | { 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"; }; }; } | undefined; stopLeg: { readonly case: "stopLoss"; readonly value: { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; }; } | { 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; }; } | { 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"; }; }; } | undefined; stopLeg: { readonly case: "stopLoss"; readonly value: { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; }; } | { 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; }; } | { 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"; }; }; } | undefined; stopLeg: { readonly case: "stopLoss"; readonly value: { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; }; } | { 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; }; } | { 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"; }; }; } | undefined; stopLeg: { readonly case: "stopLoss"; readonly value: { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; }; } | { 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; }; } | { readonly case: undefined; readonly value: undefined; }; oco: boolean; } | undefined; }, "SELL orders must use the quote fee asset">]>, 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"; }; }; } | undefined; stopLeg: { readonly case: "stopLoss"; readonly value: { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; }; } | { 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; }; } | { 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"; }; }; } | undefined; stopLeg: { readonly case: "stopLoss"; readonly value: { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; }; } | { 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; }; } | { 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"; }; }; } | undefined; stopLeg: { readonly case: "stopLoss"; readonly value: { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; }; } | { 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; }; } | { 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"; }; }; } | undefined; stopLeg: { readonly case: "stopLoss"; readonly value: { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; }; } | { 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; }; } | { 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>; }, undefined>, v.TransformAction<{ triggerPrice: string; execution: { type: "market_ioc"; } | { type: "limit_gtc"; price: string; }; }, { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; }>]>; 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>; }, undefined>, v.TransformAction<{ triggerPrice: string; execution: { type: "market_ioc"; } | { type: "limit_gtc"; price: string; }; }, { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; }>]>; 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>; }, undefined>, v.TransformAction<{ triggerPrice: string; execution: { type: "market_ioc"; } | { type: "limit_gtc"; price: string; }; }, { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; }>]>; 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>; }, 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; }, { 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; }>]>; 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>; }, undefined>, v.TransformAction<{ triggerPrice: string; execution: { type: "market_ioc"; } | { type: "limit_gtc"; price: string; }; }, { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; }>]>; 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>; }, undefined>, v.TransformAction<{ triggerPrice: string; execution: { type: "market_ioc"; } | { type: "limit_gtc"; price: string; }; }, { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; }>]>; 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>; }, 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; }, { 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; }>]>; readonly oco: v.OptionalSchema, undefined>; }, undefined>], undefined>, undefined>, v.TransformAction<{ takeProfit: { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; }; stopLoss: { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; }; trailingStop?: undefined; oco?: boolean | undefined; } | { takeProfit: { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; }; 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; }; oco?: boolean | undefined; } | { takeProfit: { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; }; stopLoss?: undefined; trailingStop?: undefined; oco?: false | undefined; } | { takeProfit?: undefined; stopLoss: { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; }; 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; }; oco?: false | undefined; } | undefined, { takeProfit: { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; } | undefined; stopLeg: { readonly case: "stopLoss"; readonly value: { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; }; } | { 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; }; } | { 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>; }, undefined>, v.TransformAction<{ triggerPrice: string; execution: { type: "market_ioc"; } | { type: "limit_gtc"; price: string; }; }, { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; }>]>; 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>; }, undefined>, v.TransformAction<{ triggerPrice: string; execution: { type: "market_ioc"; } | { type: "limit_gtc"; price: string; }; }, { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; }>]>; 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>; }, undefined>, v.TransformAction<{ triggerPrice: string; execution: { type: "market_ioc"; } | { type: "limit_gtc"; price: string; }; }, { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; }>]>; 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>; }, 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; }, { 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; }>]>; 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>; }, undefined>, v.TransformAction<{ triggerPrice: string; execution: { type: "market_ioc"; } | { type: "limit_gtc"; price: string; }; }, { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; }>]>; 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>; }, undefined>, v.TransformAction<{ triggerPrice: string; execution: { type: "market_ioc"; } | { type: "limit_gtc"; price: string; }; }, { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; }>]>; 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>; }, 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; }, { 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; }>]>; readonly oco: v.OptionalSchema, undefined>; }, undefined>], undefined>, undefined>, v.TransformAction<{ takeProfit: { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; }; stopLoss: { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; }; trailingStop?: undefined; oco?: boolean | undefined; } | { takeProfit: { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; }; 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; }; oco?: boolean | undefined; } | { takeProfit: { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; }; stopLoss?: undefined; trailingStop?: undefined; oco?: false | undefined; } | { takeProfit?: undefined; stopLoss: { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; }; 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; }; oco?: false | undefined; } | undefined, { takeProfit: { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; } | undefined; stopLeg: { readonly case: "stopLoss"; readonly value: { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; }; } | { 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; }; } | { 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"; }; }; } | undefined; stopLeg: { readonly case: "stopLoss"; readonly value: { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; }; } | { 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; }; } | { 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"; }; }; } | undefined; stopLeg: { readonly case: "stopLoss"; readonly value: { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; }; } | { 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; }; } | { 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"; }; }; } | undefined; stopLeg: { readonly case: "stopLoss"; readonly value: { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; }; } | { 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; }; } | { 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"; }; }; } | undefined; stopLeg: { readonly case: "stopLoss"; readonly value: { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; }; } | { 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; }; } | { readonly case: undefined; readonly value: undefined; }; oco: boolean; } | undefined; account?: "active" | "main" | { subaccountId: string; } | undefined; }, "SELL orders must use the quote fee asset">]>, 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"; }; }; } | undefined; stopLeg: { readonly case: "stopLoss"; readonly value: { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; }; } | { 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; }; } | { 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"; }; }; } | undefined; stopLeg: { readonly case: "stopLoss"; readonly value: { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; }; } | { 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; }; } | { 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"; }; }; } | undefined; stopLeg: { readonly case: "stopLoss"; readonly value: { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; }; } | { 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; }; } | { 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"; }; }; } | undefined; stopLeg: { readonly case: "stopLoss"; readonly value: { triggerPriceTicks: bigint; child: { execution: { value: RiskMarketIoc; case: "marketIoc"; } | { value: RiskLimitGtc; case: "limitGtc"; }; }; }; } | { 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; }; } | { 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; }, undefined>, v.TransformAction<{ status: "unspecified" | "submitted" | "dry_run"; matchedOrders: number; submittedCancels: number; failedCancels: number; tsNs: bigint; }, { status: "unspecified" | "submitted" | "dry_run"; matchedOrders: number; submittedCancels: number; failedCancels: number; ts: number; }>]>; 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>; }, 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" | "BAD_REQUEST" | "INVALID_ARGUMENT" | "INSUFFICIENT_FUNDS" | "UNKNOWN_SYMBOL" | "BAD_PRICE" | "BAD_QTY" | "MIN_NOTIONAL" | "QTY_STEP_SIZE" | "CONFLICT_DUPLICATE_CLIENT_ORDER_ID" | "UNAVAILABLE" | "UNAUTHENTICATED" | "PERMISSION_DENIED" | "NOT_FOUND" | "UPSTREAM_ERROR" | "FEE_ASSET_NOT_ALLOWED" | "PAIR_DISABLED" | "ORDER_UNKNOWN" | "INTERNAL_ERROR" | "SUBACCOUNT_INACTIVE" | "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_CANCEL_REJECTED" | "TRIGGER_STATUS_INVALID" | "TRIGGER_NOT_MODIFIABLE" | "CONFLICT_DUPLICATE_CLIENT_TRIGGER_ID" | "MAX_SLIPPAGE_INVALID" | "VALIDATION_ERROR" | "OVERLOADED" | "MAX_QUOTE_DEBIT_TOO_SMALL" | "RATE_LIMIT_EXCEEDED" | "SUBACCOUNT_READ_FORBIDDEN" | "POLICY_SPOT_READ_DENY" | "API_KEY_SPOT_READ_DENY" | "CANCEL_REQUEST_EXPIRED"; 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"; scope: "symbol" | "unspecified" | "client_ip" | "api_key" | "account" | "subaccount" | "connection" | "service" | "region" | "auth_subject"; refillModel: "unspecified" | "continuous" | "fixed_window" | "rolling_window"; } | undefined; } | undefined; resolvedBaseQtyScaled?: bigint | undefined; protectedPriceBoundTicks?: bigint | undefined; evaluatedAt: number; }, { protectedPriceBound?: string | undefined; resolvedBaseQty?: string | undefined; admissible?: boolean | undefined; rejection?: { code: "STALE_QUOTE" | "UNSPECIFIED" | "BAD_REQUEST" | "INVALID_ARGUMENT" | "INSUFFICIENT_FUNDS" | "UNKNOWN_SYMBOL" | "BAD_PRICE" | "BAD_QTY" | "MIN_NOTIONAL" | "QTY_STEP_SIZE" | "CONFLICT_DUPLICATE_CLIENT_ORDER_ID" | "UNAVAILABLE" | "UNAUTHENTICATED" | "PERMISSION_DENIED" | "NOT_FOUND" | "UPSTREAM_ERROR" | "FEE_ASSET_NOT_ALLOWED" | "PAIR_DISABLED" | "ORDER_UNKNOWN" | "INTERNAL_ERROR" | "SUBACCOUNT_INACTIVE" | "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_CANCEL_REJECTED" | "TRIGGER_STATUS_INVALID" | "TRIGGER_NOT_MODIFIABLE" | "CONFLICT_DUPLICATE_CLIENT_TRIGGER_ID" | "MAX_SLIPPAGE_INVALID" | "VALIDATION_ERROR" | "OVERLOADED" | "MAX_QUOTE_DEBIT_TOO_SMALL" | "RATE_LIMIT_EXCEEDED" | "SUBACCOUNT_READ_FORBIDDEN" | "POLICY_SPOT_READ_DENY" | "API_KEY_SPOT_READ_DENY" | "CANCEL_REQUEST_EXPIRED"; 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"; scope: "symbol" | "unspecified" | "client_ip" | "api_key" | "account" | "subaccount" | "connection" | "service" | "region" | "auth_subject"; refillModel: "unspecified" | "continuous" | "fixed_window" | "rolling_window"; } | 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