import * as z from "zod"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type GetFuturesPricesRequest = { /** * Future symbol */ symbol: string; /** * Contract year and month. _Default value_ : All * * @remarks * available contracts */ contract?: string | null | undefined; /** * Start of prices window (YYYY-MM-DD). The returned object will * * @remarks * contain the entire price history for every contract that traded between * `start_date` and `end_date`. Ignored if `contract` is specified. _Default * value_ : most recent date with prices */ startDate?: string | null | undefined; /** * End of prices window (YYYY-MM-DD). The returned object will * * @remarks * contain the entire price history for every contract that traded between * `start_date` and `end_date`. Ignored if `contract` is specified. _Default * value_ : most recent date with prices */ endDate?: string | null | undefined; /** * Return price data for currently active contracts * * @remarks * only. Set to false to also retrieve price data from expired * contracts. */ activeContractsOnly?: boolean | undefined; /** * The rollover date is the most recent date for which a given * * @remarks * contract was trading as the front month. This parameter specifies the method * used to determine the rollover date for contracts. Must be one of "hist_vol", * "max_vol", "first_notice", or "last_trade" (or left blank for no rollover * calculation). "first_notice" not available for all commodities, and defaults * to "last_trade". */ rolloverMethod?: string | undefined; /** * Back-adjust prices to account for calendar spread at contract * * @remarks * rollover dates. The method used is described here: * https://www.sierrachart.com/index.php?page=doc/ContinuousFuturesContractCharts.html#ContinuousFuturesContractDateRuleRolloverBackAdjusted */ backAdjust?: boolean | undefined; }; /** @internal */ export declare const GetFuturesPricesRequest$inboundSchema: z.ZodType; /** @internal */ export type GetFuturesPricesRequest$Outbound = { symbol: string; contract?: string | null | undefined; start_date?: string | null | undefined; end_date?: string | null | undefined; active_contracts_only: boolean; rollover_method: string; back_adjust: boolean; }; /** @internal */ export declare const GetFuturesPricesRequest$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 GetFuturesPricesRequest$ { /** @deprecated use `GetFuturesPricesRequest$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `GetFuturesPricesRequest$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `GetFuturesPricesRequest$Outbound` instead. */ type Outbound = GetFuturesPricesRequest$Outbound; } export declare function getFuturesPricesRequestToJSON(getFuturesPricesRequest: GetFuturesPricesRequest): string; export declare function getFuturesPricesRequestFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=getfuturesprices.d.ts.map