/* tslint:disable */ /* eslint-disable */ /** * Kalshi Trade API Manual Endpoints * Manually defined OpenAPI spec for endpoints being migrated to spec-first approach * * The version of the OpenAPI document: 3.36.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ // May contain unused imports in some cases // @ts-ignore import type { WeatherPointVariable } from './weather-point-variable'; export interface CreateWeatherPointMarketRequest { /** * Latitude of the location in degrees. */ 'latitude': number; /** * Longitude of the location in degrees. */ 'longitude': number; 'variable': WeatherPointVariable; /** * How the measured value is compared to the thresholds: `greater` settles Yes strictly above `floor_value`, `less` strictly below `cap_value`, and `between` from `floor_value` to `cap_value` inclusive. */ 'strike_type': CreateWeatherPointMarketRequestStrikeTypeEnum; /** * Lower threshold, in the variable\'s unit. Required for `greater` and `between`, and must be left out for `less`. For `precip_hours` with `greater` it must be below the number of hours in the window. */ 'floor_value'?: number; /** * Upper threshold, in the variable\'s unit. Required for `less` and `between`, and must be left out for `greater`. For the precipitation variables with `less` it must be above 0. For `between` it must not be below `floor_value`. */ 'cap_value'?: number; /** * Local calendar date the window starts on, as YYYY-MM-DD in `timezone`. */ 'date': string; /** * First local hour of the window (0-23). */ 'start_hour': number; /** * Local hour the window ends at, exclusive (1-24, after `start_hour`). 24 is the following midnight, so 0 to 24 is the whole day. */ 'end_hour': number; /** * IANA time zone of the location, which the date and hours are read in. The window must start and end on whole UTC hours, so zones offset by a fraction of an hour are refused. */ 'timezone': string; } export const CreateWeatherPointMarketRequestStrikeTypeEnum = { WeatherPointStrikeGreater: 'greater', WeatherPointStrikeLess: 'less', WeatherPointStrikeBetween: 'between' } as const; export type CreateWeatherPointMarketRequestStrikeTypeEnum = typeof CreateWeatherPointMarketRequestStrikeTypeEnum[keyof typeof CreateWeatherPointMarketRequestStrikeTypeEnum];