import * as z from "zod"; import { OpenEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; /** * The type of the asset in this option order leg. Orders with only a single leg may only contain an OPTION asset type. Orders with multiple legs must contain at least one OPTION leg, and no more than one EQUITY leg. */ export declare enum OptionOrderLegCreateAssetType { Equity = "EQUITY", Option = "OPTION" } /** * The type of the asset in this option order leg. Orders with only a single leg may only contain an OPTION asset type. Orders with multiple legs must contain at least one OPTION leg, and no more than one EQUITY leg. */ export type OptionOrderLegCreateAssetTypeOpen = OpenEnum; /** * The format of the identifier value used to look up the security. When `asset_type` is OPTION, the identifier_type must be OSI. */ export declare enum OptionOrderLegCreateIdentifierType { LegIdentifierTypeUnspecified = "LEG_IDENTIFIER_TYPE_UNSPECIFIED", Osi = "OSI" } /** * The format of the identifier value used to look up the security. When `asset_type` is OPTION, the identifier_type must be OSI. */ export type OptionOrderLegCreateIdentifierTypeOpen = OpenEnum; /** * The side of the option order to be sent to the market. */ export declare enum OptionOrderLegCreateSide { SideUnspecified = "SIDE_UNSPECIFIED", Buy = "BUY", Sell = "SELL" } /** * The side of the option order to be sent to the market. */ export type OptionOrderLegCreateSideOpen = OpenEnum; /** * The open/close modification of the side, signaling whether this option order leg intends to OPEN a new position, or to CLOSE an existing one. */ export declare enum SideModifier { SideModifierUnspecified = "SIDE_MODIFIER_UNSPECIFIED", Open = "OPEN", Close = "CLOSE" } /** * The open/close modification of the side, signaling whether this option order leg intends to OPEN a new position, or to CLOSE an existing one. */ export type SideModifierOpen = OpenEnum; /** * The message describing an option order leg. */ export type OptionOrderLegCreate = { /** * The type of the asset in this option order leg. Orders with only a single leg may only contain an OPTION asset type. Orders with multiple legs must contain at least one OPTION leg, and no more than one EQUITY leg. */ assetType: OptionOrderLegCreateAssetTypeOpen; /** * The identifier of the asset, in the format specified by `identifier_type`. When `identifier_type` is OSI, this field must be a valid OSI identifier, which is between 16 and 21 characters. (This value must not contain any spaces between the symbol and expiry date.) When `identifier_type` is SYMBOL, this field must contain the ticker value of the security, which is between 1 and 6 characters and must conform the same input constraints called out in the non-options single option order API. */ identifier: string; /** * The format of the identifier value used to look up the security. When `asset_type` is OPTION, the identifier_type must be OSI. */ identifierType: OptionOrderLegCreateIdentifierTypeOpen; /** * This specifies the quantity of security to be ordered in this leg. For a single-leg order, this value must be 1 (one). For a multi-leg order, this value must be greater than zero, and the total number of shares or contracts ordered at the market will be `order.quantity * leg.ratio_quantity`. */ ratioQuantity: number; /** * The side of the option order to be sent to the market. */ side: OptionOrderLegCreateSideOpen; /** * The open/close modification of the side, signaling whether this option order leg intends to OPEN a new position, or to CLOSE an existing one. */ sideModifier: SideModifierOpen; }; /** @internal */ export declare const OptionOrderLegCreateAssetType$inboundSchema: z.ZodType; /** @internal */ export declare const OptionOrderLegCreateAssetType$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace OptionOrderLegCreateAssetType$ { /** @deprecated use `OptionOrderLegCreateAssetType$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `OptionOrderLegCreateAssetType$outboundSchema` instead. */ const outboundSchema: z.ZodType; } /** @internal */ export declare const OptionOrderLegCreateIdentifierType$inboundSchema: z.ZodType; /** @internal */ export declare const OptionOrderLegCreateIdentifierType$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace OptionOrderLegCreateIdentifierType$ { /** @deprecated use `OptionOrderLegCreateIdentifierType$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `OptionOrderLegCreateIdentifierType$outboundSchema` instead. */ const outboundSchema: z.ZodType; } /** @internal */ export declare const OptionOrderLegCreateSide$inboundSchema: z.ZodType; /** @internal */ export declare const OptionOrderLegCreateSide$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace OptionOrderLegCreateSide$ { /** @deprecated use `OptionOrderLegCreateSide$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `OptionOrderLegCreateSide$outboundSchema` instead. */ const outboundSchema: z.ZodType; } /** @internal */ export declare const SideModifier$inboundSchema: z.ZodType; /** @internal */ export declare const SideModifier$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace SideModifier$ { /** @deprecated use `SideModifier$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `SideModifier$outboundSchema` instead. */ const outboundSchema: z.ZodType; } /** @internal */ export declare const OptionOrderLegCreate$inboundSchema: z.ZodType; /** @internal */ export type OptionOrderLegCreate$Outbound = { asset_type: string; identifier: string; identifier_type: string; ratio_quantity: number; side: string; side_modifier: string; }; /** @internal */ export declare const OptionOrderLegCreate$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace OptionOrderLegCreate$ { /** @deprecated use `OptionOrderLegCreate$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `OptionOrderLegCreate$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `OptionOrderLegCreate$Outbound` instead. */ type Outbound = OptionOrderLegCreate$Outbound; } export declare function optionOrderLegCreateToJSON(optionOrderLegCreate: OptionOrderLegCreate): string; export declare function optionOrderLegCreateFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=optionorderlegcreate.d.ts.map