# LiveDataApi

All URIs are relative to *https://external-api.kalshi.com/trade-api/v2*

|Method | HTTP request | Description|
|------------- | ------------- | -------------|
|[**getEventLiveData**](#geteventlivedata) | **GET** /live_data/events/{event_ticker} | Get Event Live Data|
|[**getGameStats**](#getgamestats) | **GET** /live_data/milestone/{milestone_id}/game_stats | Get Game Stats|
|[**getLiveData**](#getlivedata) | **GET** /live_data/{type}/milestone/{milestone_id} | Get Live Data (with type)|
|[**getLiveDataByMilestone**](#getlivedatabymilestone) | **GET** /live_data/milestone/{milestone_id} | Get Live Data|
|[**getLiveDatas**](#getlivedatas) | **GET** /live_data/batch | Get Multiple Live Data|
|[**getWeatherIndex**](#getweatherindex) | **GET** /live_data/weather/{city} | Get Weather Index|
|[**getWeatherIndexCalibrations**](#getweatherindexcalibrations) | **GET** /live_data/weather/{city}/calibrations | Get Weather Index Calibrations|

# **getEventLiveData**
> GetEventLiveDataResponse getEventLiveData()

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.

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **eventTicker** | [**string**] | Event ticker | defaults to undefined|
| **range** | [**string**] | Optional chart range hint (e.g. &#x60;15min&#x60;, &#x60;1h&#x60;, &#x60;1d&#x60;). When the underlying live data type supports it, restricts the returned timeseries to the requested window. | (optional) defaults to undefined|


### Return type

**GetEventLiveDataResponse**

### Authorization

No authorization required

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | Live data retrieved successfully |  -  |
|**404** | Live data not found |  -  |
|**500** | Internal server error |  -  |

# **getGameStats**
> GetGameStatsResponse getGameStats()

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.

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **milestoneId** | [**string**] | Milestone ID | defaults to undefined|


### Return type

**GetGameStatsResponse**

### Authorization

No authorization required

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | Game stats retrieved successfully |  -  |
|**404** | Game stats not found |  -  |
|**500** | Internal server error |  -  |

# **getLiveData**
> GetLiveDataResponse getLiveData()

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.

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **type** | [**string**] | Type of live data | defaults to undefined|
| **milestoneId** | [**string**] | Milestone ID | defaults to undefined|
| **includePlayerStats** | [**boolean**] | When true, includes player-level statistics in the live data response. Supported for Pro Football, Pro Basketball, and College Men\&#39;s Basketball milestones that have player ID mappings configured. Has no effect for other sports or milestones without player mappings. | (optional) defaults to false|


### Return type

**GetLiveDataResponse**

### Authorization

No authorization required

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | Live data retrieved successfully |  -  |
|**404** | Live data not found |  -  |
|**500** | Internal server error |  -  |

# **getLiveDataByMilestone**
> GetLiveDataResponse getLiveDataByMilestone()

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.

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **milestoneId** | [**string**] | Milestone ID | defaults to undefined|
| **includePlayerStats** | [**boolean**] | When true, includes player-level statistics in the live data response. Supported for Pro Football, Pro Basketball, and College Men\&#39;s Basketball milestones that have player ID mappings configured. Has no effect for other sports or milestones without player mappings. | (optional) defaults to false|


### Return type

**GetLiveDataResponse**

### Authorization

No authorization required

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | Live data retrieved successfully |  -  |
|**404** | Live data not found |  -  |
|**500** | Internal server error |  -  |

# **getLiveDatas**
> GetLiveDatasResponse getLiveDatas()

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.

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **milestoneIds** | **Array&lt;string&gt;** | Array of milestone IDs | defaults to undefined|
| **includePlayerStats** | [**boolean**] | When true, includes player-level statistics in the live data response. Supported for Pro Football, Pro Basketball, and College Men\&#39;s Basketball milestones that have player ID mappings configured. Has no effect for other sports or milestones without player mappings. | (optional) defaults to false|


### Return type

**GetLiveDatasResponse**

### Authorization

No authorization required

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | Live data retrieved successfully |  -  |
|**500** | Internal server error |  -  |

# **getWeatherIndex**
> GetWeatherIndexResponse getWeatherIndex()

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.

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **city** | [**string**] | Index city ID (e.g. &#x60;miami&#x60;) | defaults to undefined|
| **from** | [**number**] | Window start, unix milliseconds (inclusive). Defaults to &#x60;to&#x60; minus 24 hours. Must be paired with &#x60;to&#x60; unless &#x60;last_sec&#x60; is used. | (optional) defaults to undefined|
| **to** | [**number**] | Window end, unix milliseconds (inclusive). Defaults to now. | (optional) defaults to undefined|
| **lastSec** | [**number**] | Trailing window in seconds; equivalent to &#x60;from&#x3D;now-last_sec&#x60;, &#x60;to&#x3D;now&#x60;. Mutually exclusive with &#x60;from&#x60;/&#x60;to&#x60;. | (optional) defaults to undefined|
| **detailed** | [**boolean**] | Include per-station audit readings on every point. | (optional) defaults to undefined|


### Return type

**GetWeatherIndexResponse**

### Authorization

No authorization required

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | Weather index retrieved successfully |  -  |
|**400** | Unknown city or invalid window parameters |  -  |
|**500** | Internal server error |  -  |

# **getWeatherIndexCalibrations**
> GetWeatherIndexCalibrationsResponse getWeatherIndexCalibrations()

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.

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **city** | [**string**] | Index city ID (e.g. &#x60;miami&#x60;) | defaults to undefined|


### Return type

**GetWeatherIndexCalibrationsResponse**

### Authorization

No authorization required

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | Calibration timeline retrieved successfully |  -  |
|**400** | Unknown city |  -  |
|**500** | Internal server error |  -  |

