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"; import { DecimalCreate, DecimalCreate$Outbound } from "./decimalcreate.js"; /** * Type to identify the option asset associated with the instruction */ export declare enum OptionInstructionCreateIdentifierType { IdentifierTypeUnspecified = "IDENTIFIER_TYPE_UNSPECIFIED", AssetId = "ASSET_ID", Osi = "OSI" } /** * Type to identify the option asset associated with the instruction */ export type OptionInstructionCreateIdentifierTypeOpen = OpenEnum; /** * Type of instruction */ export declare enum OptionInstructionCreateType { InstructionTypeUnspecified = "INSTRUCTION_TYPE_UNSPECIFIED", DoNotExercise = "DO_NOT_EXERCISE", ExerciseByException = "EXERCISE_BY_EXCEPTION", EarlyExercise = "EARLY_EXERCISE" } /** * Type of instruction */ export type OptionInstructionCreateTypeOpen = OpenEnum; /** * Represents a single options trading instruction including do not exercise, exercise by exception, and early exercise instructions */ export type OptionInstructionCreate = { /** * Account identifier */ accountId: string; /** * The asset identifier */ identifier: string; /** * Type to identify the option asset associated with the instruction */ identifierType: OptionInstructionCreateIdentifierTypeOpen; /** * A representation of a decimal value, such as 2.5. Clients may convert values into language-native decimal formats, such as Java's [BigDecimal][] or Python's [decimal.Decimal][]. * * @remarks * * [BigDecimal]: * https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/math/BigDecimal.html * [decimal.Decimal]: https://docs.python.org/3/library/decimal.html */ quantity: DecimalCreate; /** * Type of instruction */ type: OptionInstructionCreateTypeOpen; }; /** @internal */ export declare const OptionInstructionCreateIdentifierType$inboundSchema: z.ZodType; /** @internal */ export declare const OptionInstructionCreateIdentifierType$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 OptionInstructionCreateIdentifierType$ { /** @deprecated use `OptionInstructionCreateIdentifierType$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `OptionInstructionCreateIdentifierType$outboundSchema` instead. */ const outboundSchema: z.ZodType; } /** @internal */ export declare const OptionInstructionCreateType$inboundSchema: z.ZodType; /** @internal */ export declare const OptionInstructionCreateType$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 OptionInstructionCreateType$ { /** @deprecated use `OptionInstructionCreateType$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `OptionInstructionCreateType$outboundSchema` instead. */ const outboundSchema: z.ZodType; } /** @internal */ export declare const OptionInstructionCreate$inboundSchema: z.ZodType; /** @internal */ export type OptionInstructionCreate$Outbound = { account_id: string; identifier: string; identifier_type: string; quantity: DecimalCreate$Outbound; type: string; }; /** @internal */ export declare const OptionInstructionCreate$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 OptionInstructionCreate$ { /** @deprecated use `OptionInstructionCreate$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `OptionInstructionCreate$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `OptionInstructionCreate$Outbound` instead. */ type Outbound = OptionInstructionCreate$Outbound; } export declare function optionInstructionCreateToJSON(optionInstructionCreate: OptionInstructionCreate): string; export declare function optionInstructionCreateFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=optioninstructioncreate.d.ts.map