/** * 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. */ import type { Configuration } from '../configuration'; import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; import { type RequestArgs, BaseAPI } from '../base'; import type { CreateWeatherPointMarketRequest } from '../models'; import type { CreateWeatherPointMarketResponse } from '../models'; import type { GetWeatherPointAvailabilityResponse } from '../models'; /** * MarketsApi - axios parameter creator */ export declare const MarketsApiAxiosParamCreator: (configuration?: Configuration) => { /** * Returns the on-request weather market for a location, time window and threshold, creating it if it doesn\'t exist yet. The same request always returns the same market, so call this before sending an RFQ for a market you haven\'t seen. `created` tells you whether the market is new. An existing market is returned until its window ends, even where new markets like it are no longer offered. The exception is when weather markets are switched off (`enabled` is false in the availability response) or the variable has been withdrawn entirely: the request is then refused whether or not the market exists. The location snaps to the center of the NOAA MRMS grid cell containing it; the response carries the snapped coordinates. Markets are only offered where `GET /weather_point_markets/availability` says so, and not over open water. The window is whole local hours on one calendar day. A new market\'s window must start at least 15 minutes from now and within 365 days. A market is traded through RFQs: pass the returned `market_ticker` to `POST /communications/rfqs`. These markets are in series starting with `KXRFQ` and are left out of unscoped market listings. A market created a moment ago may not be readable yet: if `GET /markets/{ticker}` returns 404 right after creation, retry. Errors carry the specific reason in `details`: | Status | `code` | When | | --- | --- | --- | | 400 | `bad_request` | The body isn\'t valid JSON, or a field has the wrong type. | | 400 | `missing_parameters` | A required field is missing or empty. | | 400 | `invalid_parameters` | A field is present but unusable, or the request can\'t define a market: a latitude or hour out of range, an `end_hour` not after `start_hour`, an unknown variable or strike type, thresholds that don\'t fit the strike type or the variable\'s range, a location outside NOAA MRMS coverage, an unknown time zone, a window that doesn\'t start and end on whole UTC hours, has already ended or starts more than 365 days out, or an hour that a clock change skips or repeats. | | 409 | `weather_point_market_unavailable` | The request is valid but the market isn\'t offered: the variable isn\'t offered at that location, the location is over open water, or the window starts in less than 15 minutes. | | 429 | `weather_point_market_limit_exceeded` | A creation limit was reached: the daily limit on new weather markets across all users, or 40 markets for one variable, location and window. Retrying at once doesn\'t help. | | 429 | `too_many_requests` | Your API rate limit. This endpoint is charged against your write budget. | * @summary Create Weather Point Market * @param {CreateWeatherPointMarketRequest} createWeatherPointMarketRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ createWeatherPointMarket: (createWeatherPointMarketRequest: CreateWeatherPointMarketRequest, options?: RawAxiosRequestConfig) => Promise; /** * Returns which on-request weather markets can be created: whether creation is on, the NOAA MRMS domains a location may lie in, and the domains each offered variable may use. A variable missing from `variables` can\'t be created. Existing markets are unaffected. A location inside an offered domain can still be refused at creation when it is over open water. * @summary Get Weather Point Market Availability * @param {*} [options] Override http request option. * @throws {RequiredError} */ getWeatherPointAvailability: (options?: RawAxiosRequestConfig) => Promise; }; /** * MarketsApi - functional programming interface */ export declare const MarketsApiFp: (configuration?: Configuration) => { /** * Returns the on-request weather market for a location, time window and threshold, creating it if it doesn\'t exist yet. The same request always returns the same market, so call this before sending an RFQ for a market you haven\'t seen. `created` tells you whether the market is new. An existing market is returned until its window ends, even where new markets like it are no longer offered. The exception is when weather markets are switched off (`enabled` is false in the availability response) or the variable has been withdrawn entirely: the request is then refused whether or not the market exists. The location snaps to the center of the NOAA MRMS grid cell containing it; the response carries the snapped coordinates. Markets are only offered where `GET /weather_point_markets/availability` says so, and not over open water. The window is whole local hours on one calendar day. A new market\'s window must start at least 15 minutes from now and within 365 days. A market is traded through RFQs: pass the returned `market_ticker` to `POST /communications/rfqs`. These markets are in series starting with `KXRFQ` and are left out of unscoped market listings. A market created a moment ago may not be readable yet: if `GET /markets/{ticker}` returns 404 right after creation, retry. Errors carry the specific reason in `details`: | Status | `code` | When | | --- | --- | --- | | 400 | `bad_request` | The body isn\'t valid JSON, or a field has the wrong type. | | 400 | `missing_parameters` | A required field is missing or empty. | | 400 | `invalid_parameters` | A field is present but unusable, or the request can\'t define a market: a latitude or hour out of range, an `end_hour` not after `start_hour`, an unknown variable or strike type, thresholds that don\'t fit the strike type or the variable\'s range, a location outside NOAA MRMS coverage, an unknown time zone, a window that doesn\'t start and end on whole UTC hours, has already ended or starts more than 365 days out, or an hour that a clock change skips or repeats. | | 409 | `weather_point_market_unavailable` | The request is valid but the market isn\'t offered: the variable isn\'t offered at that location, the location is over open water, or the window starts in less than 15 minutes. | | 429 | `weather_point_market_limit_exceeded` | A creation limit was reached: the daily limit on new weather markets across all users, or 40 markets for one variable, location and window. Retrying at once doesn\'t help. | | 429 | `too_many_requests` | Your API rate limit. This endpoint is charged against your write budget. | * @summary Create Weather Point Market * @param {CreateWeatherPointMarketRequest} createWeatherPointMarketRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ createWeatherPointMarket(createWeatherPointMarketRequest: CreateWeatherPointMarketRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * Returns which on-request weather markets can be created: whether creation is on, the NOAA MRMS domains a location may lie in, and the domains each offered variable may use. A variable missing from `variables` can\'t be created. Existing markets are unaffected. A location inside an offered domain can still be refused at creation when it is over open water. * @summary Get Weather Point Market Availability * @param {*} [options] Override http request option. * @throws {RequiredError} */ getWeatherPointAvailability(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; }; /** * MarketsApi - factory interface */ export declare const MarketsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { /** * Returns the on-request weather market for a location, time window and threshold, creating it if it doesn\'t exist yet. The same request always returns the same market, so call this before sending an RFQ for a market you haven\'t seen. `created` tells you whether the market is new. An existing market is returned until its window ends, even where new markets like it are no longer offered. The exception is when weather markets are switched off (`enabled` is false in the availability response) or the variable has been withdrawn entirely: the request is then refused whether or not the market exists. The location snaps to the center of the NOAA MRMS grid cell containing it; the response carries the snapped coordinates. Markets are only offered where `GET /weather_point_markets/availability` says so, and not over open water. The window is whole local hours on one calendar day. A new market\'s window must start at least 15 minutes from now and within 365 days. A market is traded through RFQs: pass the returned `market_ticker` to `POST /communications/rfqs`. These markets are in series starting with `KXRFQ` and are left out of unscoped market listings. A market created a moment ago may not be readable yet: if `GET /markets/{ticker}` returns 404 right after creation, retry. Errors carry the specific reason in `details`: | Status | `code` | When | | --- | --- | --- | | 400 | `bad_request` | The body isn\'t valid JSON, or a field has the wrong type. | | 400 | `missing_parameters` | A required field is missing or empty. | | 400 | `invalid_parameters` | A field is present but unusable, or the request can\'t define a market: a latitude or hour out of range, an `end_hour` not after `start_hour`, an unknown variable or strike type, thresholds that don\'t fit the strike type or the variable\'s range, a location outside NOAA MRMS coverage, an unknown time zone, a window that doesn\'t start and end on whole UTC hours, has already ended or starts more than 365 days out, or an hour that a clock change skips or repeats. | | 409 | `weather_point_market_unavailable` | The request is valid but the market isn\'t offered: the variable isn\'t offered at that location, the location is over open water, or the window starts in less than 15 minutes. | | 429 | `weather_point_market_limit_exceeded` | A creation limit was reached: the daily limit on new weather markets across all users, or 40 markets for one variable, location and window. Retrying at once doesn\'t help. | | 429 | `too_many_requests` | Your API rate limit. This endpoint is charged against your write budget. | * @summary Create Weather Point Market * @param {CreateWeatherPointMarketRequest} createWeatherPointMarketRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ createWeatherPointMarket(createWeatherPointMarketRequest: CreateWeatherPointMarketRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * Returns which on-request weather markets can be created: whether creation is on, the NOAA MRMS domains a location may lie in, and the domains each offered variable may use. A variable missing from `variables` can\'t be created. Existing markets are unaffected. A location inside an offered domain can still be refused at creation when it is over open water. * @summary Get Weather Point Market Availability * @param {*} [options] Override http request option. * @throws {RequiredError} */ getWeatherPointAvailability(options?: RawAxiosRequestConfig): AxiosPromise; }; /** * MarketsApi - object-oriented interface */ export declare class MarketsApi extends BaseAPI { /** * Returns the on-request weather market for a location, time window and threshold, creating it if it doesn\'t exist yet. The same request always returns the same market, so call this before sending an RFQ for a market you haven\'t seen. `created` tells you whether the market is new. An existing market is returned until its window ends, even where new markets like it are no longer offered. The exception is when weather markets are switched off (`enabled` is false in the availability response) or the variable has been withdrawn entirely: the request is then refused whether or not the market exists. The location snaps to the center of the NOAA MRMS grid cell containing it; the response carries the snapped coordinates. Markets are only offered where `GET /weather_point_markets/availability` says so, and not over open water. The window is whole local hours on one calendar day. A new market\'s window must start at least 15 minutes from now and within 365 days. A market is traded through RFQs: pass the returned `market_ticker` to `POST /communications/rfqs`. These markets are in series starting with `KXRFQ` and are left out of unscoped market listings. A market created a moment ago may not be readable yet: if `GET /markets/{ticker}` returns 404 right after creation, retry. Errors carry the specific reason in `details`: | Status | `code` | When | | --- | --- | --- | | 400 | `bad_request` | The body isn\'t valid JSON, or a field has the wrong type. | | 400 | `missing_parameters` | A required field is missing or empty. | | 400 | `invalid_parameters` | A field is present but unusable, or the request can\'t define a market: a latitude or hour out of range, an `end_hour` not after `start_hour`, an unknown variable or strike type, thresholds that don\'t fit the strike type or the variable\'s range, a location outside NOAA MRMS coverage, an unknown time zone, a window that doesn\'t start and end on whole UTC hours, has already ended or starts more than 365 days out, or an hour that a clock change skips or repeats. | | 409 | `weather_point_market_unavailable` | The request is valid but the market isn\'t offered: the variable isn\'t offered at that location, the location is over open water, or the window starts in less than 15 minutes. | | 429 | `weather_point_market_limit_exceeded` | A creation limit was reached: the daily limit on new weather markets across all users, or 40 markets for one variable, location and window. Retrying at once doesn\'t help. | | 429 | `too_many_requests` | Your API rate limit. This endpoint is charged against your write budget. | * @summary Create Weather Point Market * @param {CreateWeatherPointMarketRequest} createWeatherPointMarketRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ createWeatherPointMarket(createWeatherPointMarketRequest: CreateWeatherPointMarketRequest, options?: RawAxiosRequestConfig): Promise>; /** * Returns which on-request weather markets can be created: whether creation is on, the NOAA MRMS domains a location may lie in, and the domains each offered variable may use. A variable missing from `variables` can\'t be created. Existing markets are unaffected. A location inside an offered domain can still be refused at creation when it is over open water. * @summary Get Weather Point Market Availability * @param {*} [options] Override http request option. * @throws {RequiredError} */ getWeatherPointAvailability(options?: RawAxiosRequestConfig): Promise>; }