/** * 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 { GetEventLiveDataResponse } from '../models'; import type { GetGameStatsResponse } from '../models'; import type { GetLiveDataResponse } from '../models'; import type { GetLiveDatasResponse } from '../models'; import type { GetWeatherIndexCalibrationsResponse } from '../models'; import type { GetWeatherIndexResponse } from '../models'; /** * LiveDataApi - axios parameter creator */ export declare const LiveDataApiAxiosParamCreator: (configuration?: Configuration) => { /** * Get live data for an event by its event ticker. Serves event-keyed live data such as crypto price charts, commodity price timeseries, and weather observations. The `type` field in the response names the schema of the `details` object. * @summary Get Event Live Data * @param {string} eventTicker Event ticker * @param {string} [range] Optional chart range hint (e.g. `15min`, `1h`, `1d`). When the underlying live data type supports it, restricts the returned timeseries to the requested window. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getEventLiveData: (eventTicker: string, range?: string, options?: RawAxiosRequestConfig) => Promise; /** * Get play-by-play game statistics for a specific milestone. Supported sports: Pro Football, College Football, Pro Basketball, College Men\'s Basketball, College Women\'s Basketball, WNBA, Soccer, Pro Hockey, and Pro Baseball. Returns null for unsupported milestone types or milestones without a Sportradar ID. * @summary Get Game Stats * @param {string} milestoneId Milestone ID * @param {*} [options] Override http request option. * @throws {RequiredError} */ getGameStats: (milestoneId: string, options?: RawAxiosRequestConfig) => Promise; /** * Get live data for a specific milestone. This is the legacy endpoint that requires a type path parameter. Prefer using `/live_data/milestone/{milestone_id}` instead. * @summary Get Live Data (with type) * @param {string} type Type of live data * @param {string} milestoneId Milestone ID * @param {boolean} [includePlayerStats] When true, includes player-level statistics in the live data response. Supported for Pro Football, Pro Basketball, and College Men\'s Basketball milestones that have player ID mappings configured. Has no effect for other sports or milestones without player mappings. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getLiveData: (type: string, milestoneId: string, includePlayerStats?: boolean, options?: RawAxiosRequestConfig) => Promise; /** * Get live data for a specific milestone. The response\'s `live_data.details.status` is updated far more often than the milestone\'s own `details.status` and is the preferred source for game status. It is not guaranteed to be current: if the provider feed falls behind, a cached board may still be served, with `live_data.details.live_data_delayed` set to `true` only once it is significantly stale (some feeds never set it), so a missing flag does not by itself mean the data is current. * @summary Get Live Data * @param {string} milestoneId Milestone ID * @param {boolean} [includePlayerStats] When true, includes player-level statistics in the live data response. Supported for Pro Football, Pro Basketball, and College Men\'s Basketball milestones that have player ID mappings configured. Has no effect for other sports or milestones without player mappings. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getLiveDataByMilestone: (milestoneId: string, includePlayerStats?: boolean, options?: RawAxiosRequestConfig) => Promise; /** * Get live data for multiple milestones. Each entry\'s `details.status` is updated far more often than the milestone\'s own `details.status` and is the preferred source for game status. It is not guaranteed to be current: if the provider feed falls behind, a cached board may still be served, with `details.live_data_delayed` set to `true` only once it is significantly stale (some feeds never set it), so a missing flag does not by itself mean the data is current. * @summary Get Multiple Live Data * @param {Array} milestoneIds Array of milestone IDs * @param {boolean} [includePlayerStats] When true, includes player-level statistics in the live data response. Supported for Pro Football, Pro Basketball, and College Men\'s Basketball milestones that have player ID mappings configured. Has no effect for other sports or milestones without player mappings. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getLiveDatas: (milestoneIds: Array, includePlayerStats?: boolean, options?: RawAxiosRequestConfig) => Promise; /** * Get the Kalshi-computed city temperature index: the canonical minute-resolution series behind hourly temperature markets. City-keyed and independent of any event — the series exists whenever the city\'s index is configured. Values are Fahrenheit rounded to 0.01. Minutes where the index quorum failed carry no value and are never returned as points, so gaps in the series are real gaps. With `detailed=true` each point additionally carries every member station\'s reported reading and quality-control disposition — the pre-incorporation breakdown. * @summary Get Weather Index * @param {string} city Index city ID (e.g. `miami`) * @param {number} [from] Window start, unix milliseconds (inclusive). Defaults to `to` minus 24 hours. Must be paired with `to` unless `last_sec` is used. * @param {number} [to] Window end, unix milliseconds (inclusive). Defaults to now. * @param {number} [lastSec] Trailing window in seconds; equivalent to `from=now-last_sec`, `to=now`. Mutually exclusive with `from`/`to`. * @param {boolean} [detailed] Include per-station audit readings on every point. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getWeatherIndex: (city: string, from?: number, to?: number, lastSec?: number, detailed?: boolean, options?: RawAxiosRequestConfig) => Promise; /** * Get a city\'s published weather-index configuration timeline: the launch configuration plus every weekly offset calibration and methodology update, ascending by effective time. Each record carries the station weights, station offsets (Celsius), and the city reference used to compute index values from the record\'s effective time until the next record — everything needed to reproduce published index values for minutes computed under that configuration version. Offsets are re-estimated weekly after each complete UTC week; weights never change through calibration. The timeline is append-only and complete: it is never trimmed. * @summary Get Weather Index Calibrations * @param {string} city Index city ID (e.g. `miami`) * @param {*} [options] Override http request option. * @throws {RequiredError} */ getWeatherIndexCalibrations: (city: string, options?: RawAxiosRequestConfig) => Promise; }; /** * LiveDataApi - functional programming interface */ export declare const LiveDataApiFp: (configuration?: Configuration) => { /** * Get live data for an event by its event ticker. Serves event-keyed live data such as crypto price charts, commodity price timeseries, and weather observations. The `type` field in the response names the schema of the `details` object. * @summary Get Event Live Data * @param {string} eventTicker Event ticker * @param {string} [range] Optional chart range hint (e.g. `15min`, `1h`, `1d`). When the underlying live data type supports it, restricts the returned timeseries to the requested window. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getEventLiveData(eventTicker: string, range?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * Get play-by-play game statistics for a specific milestone. Supported sports: Pro Football, College Football, Pro Basketball, College Men\'s Basketball, College Women\'s Basketball, WNBA, Soccer, Pro Hockey, and Pro Baseball. Returns null for unsupported milestone types or milestones without a Sportradar ID. * @summary Get Game Stats * @param {string} milestoneId Milestone ID * @param {*} [options] Override http request option. * @throws {RequiredError} */ getGameStats(milestoneId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * Get live data for a specific milestone. This is the legacy endpoint that requires a type path parameter. Prefer using `/live_data/milestone/{milestone_id}` instead. * @summary Get Live Data (with type) * @param {string} type Type of live data * @param {string} milestoneId Milestone ID * @param {boolean} [includePlayerStats] When true, includes player-level statistics in the live data response. Supported for Pro Football, Pro Basketball, and College Men\'s Basketball milestones that have player ID mappings configured. Has no effect for other sports or milestones without player mappings. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getLiveData(type: string, milestoneId: string, includePlayerStats?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * Get live data for a specific milestone. The response\'s `live_data.details.status` is updated far more often than the milestone\'s own `details.status` and is the preferred source for game status. It is not guaranteed to be current: if the provider feed falls behind, a cached board may still be served, with `live_data.details.live_data_delayed` set to `true` only once it is significantly stale (some feeds never set it), so a missing flag does not by itself mean the data is current. * @summary Get Live Data * @param {string} milestoneId Milestone ID * @param {boolean} [includePlayerStats] When true, includes player-level statistics in the live data response. Supported for Pro Football, Pro Basketball, and College Men\'s Basketball milestones that have player ID mappings configured. Has no effect for other sports or milestones without player mappings. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getLiveDataByMilestone(milestoneId: string, includePlayerStats?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * Get live data for multiple milestones. Each entry\'s `details.status` is updated far more often than the milestone\'s own `details.status` and is the preferred source for game status. It is not guaranteed to be current: if the provider feed falls behind, a cached board may still be served, with `details.live_data_delayed` set to `true` only once it is significantly stale (some feeds never set it), so a missing flag does not by itself mean the data is current. * @summary Get Multiple Live Data * @param {Array} milestoneIds Array of milestone IDs * @param {boolean} [includePlayerStats] When true, includes player-level statistics in the live data response. Supported for Pro Football, Pro Basketball, and College Men\'s Basketball milestones that have player ID mappings configured. Has no effect for other sports or milestones without player mappings. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getLiveDatas(milestoneIds: Array, includePlayerStats?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * Get the Kalshi-computed city temperature index: the canonical minute-resolution series behind hourly temperature markets. City-keyed and independent of any event — the series exists whenever the city\'s index is configured. Values are Fahrenheit rounded to 0.01. Minutes where the index quorum failed carry no value and are never returned as points, so gaps in the series are real gaps. With `detailed=true` each point additionally carries every member station\'s reported reading and quality-control disposition — the pre-incorporation breakdown. * @summary Get Weather Index * @param {string} city Index city ID (e.g. `miami`) * @param {number} [from] Window start, unix milliseconds (inclusive). Defaults to `to` minus 24 hours. Must be paired with `to` unless `last_sec` is used. * @param {number} [to] Window end, unix milliseconds (inclusive). Defaults to now. * @param {number} [lastSec] Trailing window in seconds; equivalent to `from=now-last_sec`, `to=now`. Mutually exclusive with `from`/`to`. * @param {boolean} [detailed] Include per-station audit readings on every point. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getWeatherIndex(city: string, from?: number, to?: number, lastSec?: number, detailed?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * Get a city\'s published weather-index configuration timeline: the launch configuration plus every weekly offset calibration and methodology update, ascending by effective time. Each record carries the station weights, station offsets (Celsius), and the city reference used to compute index values from the record\'s effective time until the next record — everything needed to reproduce published index values for minutes computed under that configuration version. Offsets are re-estimated weekly after each complete UTC week; weights never change through calibration. The timeline is append-only and complete: it is never trimmed. * @summary Get Weather Index Calibrations * @param {string} city Index city ID (e.g. `miami`) * @param {*} [options] Override http request option. * @throws {RequiredError} */ getWeatherIndexCalibrations(city: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; }; /** * LiveDataApi - factory interface */ export declare const LiveDataApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { /** * Get live data for an event by its event ticker. Serves event-keyed live data such as crypto price charts, commodity price timeseries, and weather observations. The `type` field in the response names the schema of the `details` object. * @summary Get Event Live Data * @param {string} eventTicker Event ticker * @param {string} [range] Optional chart range hint (e.g. `15min`, `1h`, `1d`). When the underlying live data type supports it, restricts the returned timeseries to the requested window. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getEventLiveData(eventTicker: string, range?: string, options?: RawAxiosRequestConfig): AxiosPromise; /** * Get play-by-play game statistics for a specific milestone. Supported sports: Pro Football, College Football, Pro Basketball, College Men\'s Basketball, College Women\'s Basketball, WNBA, Soccer, Pro Hockey, and Pro Baseball. Returns null for unsupported milestone types or milestones without a Sportradar ID. * @summary Get Game Stats * @param {string} milestoneId Milestone ID * @param {*} [options] Override http request option. * @throws {RequiredError} */ getGameStats(milestoneId: string, options?: RawAxiosRequestConfig): AxiosPromise; /** * Get live data for a specific milestone. This is the legacy endpoint that requires a type path parameter. Prefer using `/live_data/milestone/{milestone_id}` instead. * @summary Get Live Data (with type) * @param {string} type Type of live data * @param {string} milestoneId Milestone ID * @param {boolean} [includePlayerStats] When true, includes player-level statistics in the live data response. Supported for Pro Football, Pro Basketball, and College Men\'s Basketball milestones that have player ID mappings configured. Has no effect for other sports or milestones without player mappings. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getLiveData(type: string, milestoneId: string, includePlayerStats?: boolean, options?: RawAxiosRequestConfig): AxiosPromise; /** * Get live data for a specific milestone. The response\'s `live_data.details.status` is updated far more often than the milestone\'s own `details.status` and is the preferred source for game status. It is not guaranteed to be current: if the provider feed falls behind, a cached board may still be served, with `live_data.details.live_data_delayed` set to `true` only once it is significantly stale (some feeds never set it), so a missing flag does not by itself mean the data is current. * @summary Get Live Data * @param {string} milestoneId Milestone ID * @param {boolean} [includePlayerStats] When true, includes player-level statistics in the live data response. Supported for Pro Football, Pro Basketball, and College Men\'s Basketball milestones that have player ID mappings configured. Has no effect for other sports or milestones without player mappings. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getLiveDataByMilestone(milestoneId: string, includePlayerStats?: boolean, options?: RawAxiosRequestConfig): AxiosPromise; /** * Get live data for multiple milestones. Each entry\'s `details.status` is updated far more often than the milestone\'s own `details.status` and is the preferred source for game status. It is not guaranteed to be current: if the provider feed falls behind, a cached board may still be served, with `details.live_data_delayed` set to `true` only once it is significantly stale (some feeds never set it), so a missing flag does not by itself mean the data is current. * @summary Get Multiple Live Data * @param {Array} milestoneIds Array of milestone IDs * @param {boolean} [includePlayerStats] When true, includes player-level statistics in the live data response. Supported for Pro Football, Pro Basketball, and College Men\'s Basketball milestones that have player ID mappings configured. Has no effect for other sports or milestones without player mappings. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getLiveDatas(milestoneIds: Array, includePlayerStats?: boolean, options?: RawAxiosRequestConfig): AxiosPromise; /** * Get the Kalshi-computed city temperature index: the canonical minute-resolution series behind hourly temperature markets. City-keyed and independent of any event — the series exists whenever the city\'s index is configured. Values are Fahrenheit rounded to 0.01. Minutes where the index quorum failed carry no value and are never returned as points, so gaps in the series are real gaps. With `detailed=true` each point additionally carries every member station\'s reported reading and quality-control disposition — the pre-incorporation breakdown. * @summary Get Weather Index * @param {string} city Index city ID (e.g. `miami`) * @param {number} [from] Window start, unix milliseconds (inclusive). Defaults to `to` minus 24 hours. Must be paired with `to` unless `last_sec` is used. * @param {number} [to] Window end, unix milliseconds (inclusive). Defaults to now. * @param {number} [lastSec] Trailing window in seconds; equivalent to `from=now-last_sec`, `to=now`. Mutually exclusive with `from`/`to`. * @param {boolean} [detailed] Include per-station audit readings on every point. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getWeatherIndex(city: string, from?: number, to?: number, lastSec?: number, detailed?: boolean, options?: RawAxiosRequestConfig): AxiosPromise; /** * Get a city\'s published weather-index configuration timeline: the launch configuration plus every weekly offset calibration and methodology update, ascending by effective time. Each record carries the station weights, station offsets (Celsius), and the city reference used to compute index values from the record\'s effective time until the next record — everything needed to reproduce published index values for minutes computed under that configuration version. Offsets are re-estimated weekly after each complete UTC week; weights never change through calibration. The timeline is append-only and complete: it is never trimmed. * @summary Get Weather Index Calibrations * @param {string} city Index city ID (e.g. `miami`) * @param {*} [options] Override http request option. * @throws {RequiredError} */ getWeatherIndexCalibrations(city: string, options?: RawAxiosRequestConfig): AxiosPromise; }; /** * LiveDataApi - object-oriented interface */ export declare class LiveDataApi extends BaseAPI { /** * Get live data for an event by its event ticker. Serves event-keyed live data such as crypto price charts, commodity price timeseries, and weather observations. The `type` field in the response names the schema of the `details` object. * @summary Get Event Live Data * @param {string} eventTicker Event ticker * @param {string} [range] Optional chart range hint (e.g. `15min`, `1h`, `1d`). When the underlying live data type supports it, restricts the returned timeseries to the requested window. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getEventLiveData(eventTicker: string, range?: string, options?: RawAxiosRequestConfig): Promise>; /** * Get play-by-play game statistics for a specific milestone. Supported sports: Pro Football, College Football, Pro Basketball, College Men\'s Basketball, College Women\'s Basketball, WNBA, Soccer, Pro Hockey, and Pro Baseball. Returns null for unsupported milestone types or milestones without a Sportradar ID. * @summary Get Game Stats * @param {string} milestoneId Milestone ID * @param {*} [options] Override http request option. * @throws {RequiredError} */ getGameStats(milestoneId: string, options?: RawAxiosRequestConfig): Promise>; /** * Get live data for a specific milestone. This is the legacy endpoint that requires a type path parameter. Prefer using `/live_data/milestone/{milestone_id}` instead. * @summary Get Live Data (with type) * @param {string} type Type of live data * @param {string} milestoneId Milestone ID * @param {boolean} [includePlayerStats] When true, includes player-level statistics in the live data response. Supported for Pro Football, Pro Basketball, and College Men\'s Basketball milestones that have player ID mappings configured. Has no effect for other sports or milestones without player mappings. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getLiveData(type: string, milestoneId: string, includePlayerStats?: boolean, options?: RawAxiosRequestConfig): Promise>; /** * Get live data for a specific milestone. The response\'s `live_data.details.status` is updated far more often than the milestone\'s own `details.status` and is the preferred source for game status. It is not guaranteed to be current: if the provider feed falls behind, a cached board may still be served, with `live_data.details.live_data_delayed` set to `true` only once it is significantly stale (some feeds never set it), so a missing flag does not by itself mean the data is current. * @summary Get Live Data * @param {string} milestoneId Milestone ID * @param {boolean} [includePlayerStats] When true, includes player-level statistics in the live data response. Supported for Pro Football, Pro Basketball, and College Men\'s Basketball milestones that have player ID mappings configured. Has no effect for other sports or milestones without player mappings. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getLiveDataByMilestone(milestoneId: string, includePlayerStats?: boolean, options?: RawAxiosRequestConfig): Promise>; /** * Get live data for multiple milestones. Each entry\'s `details.status` is updated far more often than the milestone\'s own `details.status` and is the preferred source for game status. It is not guaranteed to be current: if the provider feed falls behind, a cached board may still be served, with `details.live_data_delayed` set to `true` only once it is significantly stale (some feeds never set it), so a missing flag does not by itself mean the data is current. * @summary Get Multiple Live Data * @param {Array} milestoneIds Array of milestone IDs * @param {boolean} [includePlayerStats] When true, includes player-level statistics in the live data response. Supported for Pro Football, Pro Basketball, and College Men\'s Basketball milestones that have player ID mappings configured. Has no effect for other sports or milestones without player mappings. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getLiveDatas(milestoneIds: Array, includePlayerStats?: boolean, options?: RawAxiosRequestConfig): Promise>; /** * Get the Kalshi-computed city temperature index: the canonical minute-resolution series behind hourly temperature markets. City-keyed and independent of any event — the series exists whenever the city\'s index is configured. Values are Fahrenheit rounded to 0.01. Minutes where the index quorum failed carry no value and are never returned as points, so gaps in the series are real gaps. With `detailed=true` each point additionally carries every member station\'s reported reading and quality-control disposition — the pre-incorporation breakdown. * @summary Get Weather Index * @param {string} city Index city ID (e.g. `miami`) * @param {number} [from] Window start, unix milliseconds (inclusive). Defaults to `to` minus 24 hours. Must be paired with `to` unless `last_sec` is used. * @param {number} [to] Window end, unix milliseconds (inclusive). Defaults to now. * @param {number} [lastSec] Trailing window in seconds; equivalent to `from=now-last_sec`, `to=now`. Mutually exclusive with `from`/`to`. * @param {boolean} [detailed] Include per-station audit readings on every point. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getWeatherIndex(city: string, from?: number, to?: number, lastSec?: number, detailed?: boolean, options?: RawAxiosRequestConfig): Promise>; /** * Get a city\'s published weather-index configuration timeline: the launch configuration plus every weekly offset calibration and methodology update, ascending by effective time. Each record carries the station weights, station offsets (Celsius), and the city reference used to compute index values from the record\'s effective time until the next record — everything needed to reproduce published index values for minutes computed under that configuration version. Offsets are re-estimated weekly after each complete UTC week; weights never change through calibration. The timeline is append-only and complete: it is never trimmed. * @summary Get Weather Index Calibrations * @param {string} city Index city ID (e.g. `miami`) * @param {*} [options] Override http request option. * @throws {RequiredError} */ getWeatherIndexCalibrations(city: string, options?: RawAxiosRequestConfig): Promise>; }