import * as z from "zod"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; /** * The price for this security, which is reported as the price-per-share for EQUITY type securities, or as the price-per-contract for OPTION type securities. */ export type OptionOrderLegExecutionPrice = { /** * The decimal value, as a string; Refer to [Google’s Decimal type protocol buffer](https://github.com/googleapis/googleapis/blob/40203ca1880849480bbff7b8715491060bbccdf1/google/type/decimal.proto#L33) for details */ value?: string | undefined; }; /** * The number of shares or contracts transacted in this execution. */ export type OptionOrderLegExecutionQuantity = { /** * The decimal value, as a string; Refer to [Google’s Decimal type protocol buffer](https://github.com/googleapis/googleapis/blob/40203ca1880849480bbff7b8715491060bbccdf1/google/type/decimal.proto#L33) for details */ value?: string | undefined; }; /** * A report of a street-side execution. */ export type OptionOrderLegExecution = { /** * The market-reported timestamp of the execution. */ executedTime?: Date | null | undefined; /** * The price for this security, which is reported as the price-per-share for EQUITY type securities, or as the price-per-contract for OPTION type securities. */ price?: OptionOrderLegExecutionPrice | null | undefined; /** * The number of shares or contracts transacted in this execution. */ quantity?: OptionOrderLegExecutionQuantity | null | undefined; }; /** @internal */ export declare const OptionOrderLegExecutionPrice$inboundSchema: z.ZodType; /** @internal */ export type OptionOrderLegExecutionPrice$Outbound = { value?: string | undefined; }; /** @internal */ export declare const OptionOrderLegExecutionPrice$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 OptionOrderLegExecutionPrice$ { /** @deprecated use `OptionOrderLegExecutionPrice$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `OptionOrderLegExecutionPrice$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `OptionOrderLegExecutionPrice$Outbound` instead. */ type Outbound = OptionOrderLegExecutionPrice$Outbound; } export declare function optionOrderLegExecutionPriceToJSON(optionOrderLegExecutionPrice: OptionOrderLegExecutionPrice): string; export declare function optionOrderLegExecutionPriceFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const OptionOrderLegExecutionQuantity$inboundSchema: z.ZodType; /** @internal */ export type OptionOrderLegExecutionQuantity$Outbound = { value?: string | undefined; }; /** @internal */ export declare const OptionOrderLegExecutionQuantity$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 OptionOrderLegExecutionQuantity$ { /** @deprecated use `OptionOrderLegExecutionQuantity$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `OptionOrderLegExecutionQuantity$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `OptionOrderLegExecutionQuantity$Outbound` instead. */ type Outbound = OptionOrderLegExecutionQuantity$Outbound; } export declare function optionOrderLegExecutionQuantityToJSON(optionOrderLegExecutionQuantity: OptionOrderLegExecutionQuantity): string; export declare function optionOrderLegExecutionQuantityFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const OptionOrderLegExecution$inboundSchema: z.ZodType; /** @internal */ export type OptionOrderLegExecution$Outbound = { executed_time?: string | null | undefined; price?: OptionOrderLegExecutionPrice$Outbound | null | undefined; quantity?: OptionOrderLegExecutionQuantity$Outbound | null | undefined; }; /** @internal */ export declare const OptionOrderLegExecution$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 OptionOrderLegExecution$ { /** @deprecated use `OptionOrderLegExecution$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `OptionOrderLegExecution$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `OptionOrderLegExecution$Outbound` instead. */ type Outbound = OptionOrderLegExecution$Outbound; } export declare function optionOrderLegExecutionToJSON(optionOrderLegExecution: OptionOrderLegExecution): string; export declare function optionOrderLegExecutionFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=optionorderlegexecution.d.ts.map