import { ModifyBehavior, RiskLimitGtc, RiskMarketIoc, RiskPolicy } from "../../gen/orders/v1/orders_pb.js"; import { SdkScales } from "../../shared/decimal-surface.js"; import * as v from "valibot"; //#region src/services/orders/orders-modify.schemas.d.ts declare function createModifyOrderInputSchema(scales: SdkScales): v.SchemaWithPipe, 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.IntersectSchema<[v.ObjectSchema<{ readonly symbolId: v.SchemaWithPipe, v.IntegerAction, v.GtValueAction, v.MaxValueAction]>; readonly behavior: v.OptionalSchema, undefined>; readonly newClientOrderId: v.OptionalSchema, v.TrimAction, v.MaxLengthAction, v.RegexAction]>, v.MinLengthAction]>, undefined>; }, undefined>, v.UnionSchema<[v.SchemaWithPipe, v.TrimAction, v.MinLengthAction, v.TransformAction]>, v.CheckAction]>; readonly clientOrderId: v.OptionalSchema, undefined>; }, undefined>, v.TransformAction<{ orderId: bigint; clientOrderId?: undefined; }, { key: { case: "orderId"; value: bigint; }; }>]>, v.SchemaWithPipe, undefined>; readonly clientOrderId: v.SchemaWithPipe, v.TrimAction, v.MaxLengthAction, v.RegexAction]>, v.MinLengthAction]>; }, undefined>, v.TransformAction<{ orderId?: undefined; clientOrderId: string; }, { key: { case: "clientOrderId"; value: string; }; }>]>], undefined>, v.UnionSchema<[v.IntersectSchema<[v.ObjectSchema<{ readonly newPrice: v.SchemaWithPipe, v.TrimAction, v.MinLengthAction]>; readonly newQty: v.OptionalSchema, v.TrimAction, v.MinLengthAction]>, undefined>; }, undefined>, v.UnionSchema<[v.ObjectSchema<{ 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>, 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; }, { 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; }>]>; readonly clearRisk: v.OptionalSchema, undefined>; }, undefined>, v.ObjectSchema<{ readonly risk: v.OptionalSchema, undefined>; readonly clearRisk: v.LiteralSchema; }, undefined>, v.ObjectSchema<{ readonly risk: v.OptionalSchema, undefined>; readonly clearRisk: v.OptionalSchema, undefined>; }, undefined>], undefined>], undefined>, v.IntersectSchema<[v.ObjectSchema<{ readonly newPrice: v.OptionalSchema, v.TrimAction, v.MinLengthAction]>, undefined>; readonly newQty: v.SchemaWithPipe, v.TrimAction, v.MinLengthAction]>; }, undefined>, v.UnionSchema<[v.ObjectSchema<{ 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>, 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; }, { 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; }>]>; readonly clearRisk: v.OptionalSchema, undefined>; }, undefined>, v.ObjectSchema<{ readonly risk: v.OptionalSchema, undefined>; readonly clearRisk: v.LiteralSchema; }, undefined>, v.ObjectSchema<{ readonly risk: v.OptionalSchema, undefined>; readonly clearRisk: v.OptionalSchema, undefined>; }, undefined>], undefined>], undefined>, v.IntersectSchema<[v.ObjectSchema<{ readonly newPrice: v.OptionalSchema, undefined>; readonly newQty: v.OptionalSchema, undefined>; }, undefined>, v.UnionSchema<[v.ObjectSchema<{ 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>, 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; }, { 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; }>]>; readonly clearRisk: v.OptionalSchema, undefined>; }, undefined>, v.ObjectSchema<{ readonly risk: v.OptionalSchema, undefined>; readonly clearRisk: v.LiteralSchema; }, undefined>], undefined>], undefined>], undefined>], undefined>], undefined>, v.TransformAction<{ requestId?: string | undefined; account?: "active" | "main" | { subaccountId: string; } | undefined; } & ({ symbolId: number; behavior?: "AMEND_OR_REPLACE" | "AMEND_ONLY" | "REPLACE_ONLY" | undefined; newClientOrderId?: string | undefined; } & (({ key: { case: "orderId"; value: bigint; }; } | { key: { case: "clientOrderId"; value: string; }; }) & (({ newPrice: string; newQty?: string | 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; }; clearRisk?: false | undefined; } | { risk?: undefined; clearRisk: true; } | { risk?: undefined; clearRisk?: false | undefined; })) | ({ newPrice?: string | undefined; newQty: string; } & ({ 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; }; clearRisk?: false | undefined; } | { risk?: undefined; clearRisk: true; } | { risk?: undefined; clearRisk?: false | undefined; })) | ({ newPrice?: undefined; newQty?: 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; }; clearRisk?: false | undefined; } | { risk?: undefined; clearRisk: true; }))))), { key: { case: "orderId"; value: bigint; } | { case: "clientOrderId"; value: string; }; newPriceTicks: bigint | undefined; newQtyScaled: bigint | undefined; newAttachedRisk: RiskPolicy | { 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; behavior: ModifyBehavior; newClientOrderId: string; symbolId: number; subaccountId: bigint | undefined; requestId: string | undefined; }>]>; type ModifyOrderInput = v.InferInput>; declare const ModifyOrderResultSchema: v.SchemaWithPipe, v.TransformAction]>; readonly oldOrderId: v.SchemaWithPipe, v.TransformAction]>; readonly finalOrderId: v.SchemaWithPipe, v.TransformAction]>; readonly code: v.StringSchema; readonly takeProfitTriggerId: v.SchemaWithPipe, undefined>, v.TransformAction]>; readonly stopLossTriggerId: v.SchemaWithPipe, undefined>, v.TransformAction]>; readonly trailingStopTriggerId: v.SchemaWithPipe, undefined>, v.TransformAction]>; readonly tsNs: v.BigintSchema; }, undefined>, v.TransformAction<{ actionTaken: "unspecified" | "AMENDED" | "REPLACED"; oldOrderId: string; finalOrderId: string; code: string; takeProfitTriggerId?: string | undefined; stopLossTriggerId?: string | undefined; trailingStopTriggerId?: string | undefined; tsNs: bigint; }, { ts: number; tsNs: string; actionTaken: "unspecified" | "AMENDED" | "REPLACED"; oldOrderId: string; finalOrderId: string; code: string; takeProfitTriggerId?: string | undefined; stopLossTriggerId?: string | undefined; trailingStopTriggerId?: string | undefined; }>]>; type ModifyOrderResult = v.InferOutput; //#endregion export { ModifyOrderInput, ModifyOrderResult, ModifyOrderResultSchema, createModifyOrderInputSchema }; //# sourceMappingURL=orders-modify.schemas.d.ts.map