import { RiskLimitGtc, RiskMarketIoc } from "../../gen/orders/v1/orders_pb.js"; import { SdkScales } from "../../shared/decimal-surface.js"; import * as v from "valibot"; //#region src/services/orders/orders-risk.schemas.d.ts declare function attachedTriggerInputSchema(scales: SdkScales, fieldPrefix: "takeProfit" | "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"; }; }; }>]>; declare function createTrailingStopInputSchema(scales: SdkScales): 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; }>]>; declare function createRiskPolicyInputSchema(scales: SdkScales): 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>]>; declare function createRequiredRiskPolicyInputSchema(scales: SdkScales): 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; }>]>; type TakeProfitInput = v.InferInput>; type StopLossInput = v.InferInput>; type TrailingStopInput = v.InferInput>; type RiskPolicyInput = v.InferInput>; type MarketMaxSlippage = { kind: "slippage"; slippage: string; } | { kind: "bps"; bps: number; }; //#endregion export { MarketMaxSlippage, RiskPolicyInput, StopLossInput, TakeProfitInput, TrailingStopInput, createRequiredRiskPolicyInputSchema, createRiskPolicyInputSchema }; //# sourceMappingURL=orders-risk.schemas.d.ts.map