> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://partner.ninjatrader.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://partner.ninjatrader.com/_mcp/server.

# Kalshi Market Items

GET https://demo.tradovateapi.com/v1/kalshiMarket/items

Fetches multiple KalshiMarket entities by `id` field

Reference: https://partner.ninjatrader.com/connect/api/rest-api-endpoints/contract-library/kalshi-market-items

## OpenAPI Specification

```yaml
openapi: 3.1.0
info:
  title: connect
  version: 1.0.0
paths:
  /kalshiMarket/items:
    get:
      operationId: kalshi-market-items
      summary: Kalshi Market Items
      description: Fetches multiple KalshiMarket entities by `id` field
      tags:
        - contractLibrary
      parameters:
        - name: ids
          in: query
          required: true
          schema:
            type: array
            items:
              type: integer
              format: int64
        - name: Authorization
          in: header
          description: Bearer authentication
          required: true
          schema:
            type: string
      responses:
        '200':
          description: KalshiMarket
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/KalshiMarket'
servers:
  - url: https://demo.tradovateapi.com/v1
    description: production
components:
  schemas:
    KalshiMarketStatus:
      type: string
      enum:
        - active
        - amended
        - closed
        - determined
        - disputed
        - finalized
        - inactive
        - initialized
        - settled
      description: >-
        active, amended, closed, determined, disputed, finalized, inactive,
        initialized, settled
      title: KalshiMarketStatus
    KalshiMarketResult:
      type: string
      enum:
        - all_no
        - all_yes
        - 'no'
        - scalar
        - void
        - 'yes'
      description: all_no, all_yes, no, scalar, void, yes
      title: KalshiMarketResult
    KalshiMarketPriceLevelStructure:
      type: string
      enum:
        - deci_cent
        - linear_cent
        - tapered_deci_cent
      description: deci_cent, linear_cent, tapered_deci_cent
      title: KalshiMarketPriceLevelStructure
    KalshiMarket:
      type: object
      properties:
        id:
          type: integer
          format: int64
        name:
          type: string
        kalshiEventId:
          type: integer
          format: int64
        title:
          type: string
        subtitle:
          type: string
        yesSubtitle:
          type: string
        noSubtitle:
          type: string
        openTime:
          type: string
          format: date-time
        closeTime:
          type: string
          format: date-time
        expectedExpirationTime:
          type: string
          format: date-time
        expirationTime:
          type: string
          format: date-time
        latestExpirationTime:
          type: string
          format: date-time
        status:
          $ref: '#/components/schemas/KalshiMarketStatus'
          description: >-
            active, amended, closed, determined, disputed, finalized, inactive,
            initialized, settled
        result:
          $ref: '#/components/schemas/KalshiMarketResult'
          description: all_no, all_yes, no, scalar, void, yes
        canCloseEarly:
          type: boolean
        expirationValue:
          type: string
        riskLimitCents:
          type: integer
          format: int64
        rulesPrimary:
          type: string
        rulesSecondary:
          type: string
        priceLevelStructure:
          $ref: '#/components/schemas/KalshiMarketPriceLevelStructure'
          description: deci_cent, linear_cent, tapered_deci_cent
        priceRanges:
          type: string
        lastUpdatedTs:
          type: string
          format: date-time
      required:
        - name
        - kalshiEventId
        - subtitle
        - yesSubtitle
        - noSubtitle
        - openTime
        - closeTime
        - expirationTime
        - latestExpirationTime
        - status
        - result
        - canCloseEarly
        - expirationValue
        - riskLimitCents
        - rulesPrimary
        - rulesSecondary
        - priceLevelStructure
        - priceRanges
        - lastUpdatedTs
      title: KalshiMarket
  securitySchemes:
    bearer_access_token:
      type: http
      scheme: bearer

```

## Examples



**Request**

```json
{}
```

**Response**

```json
[
  {
    "name": "2024 US Presidential Election Outcome",
    "kalshiEventId": 54321,
    "subtitle": "Prediction market on the timing of the 2024 US Presidential Election result",
    "yesSubtitle": "Election results announced by November 8th",
    "noSubtitle": "Election results announced after November 8th",
    "openTime": "2024-10-01T12:00:00Z",
    "closeTime": "2024-11-08T23:59:59Z",
    "expirationTime": "2024-11-08T23:59:59Z",
    "latestExpirationTime": "2024-11-09T12:00:00Z",
    "status": "active",
    "result": "void",
    "canCloseEarly": false,
    "expirationValue": "2024-11-08T23:59:59Z",
    "riskLimitCents": 5000000,
    "rulesPrimary": "This market resolves based on official election results certified by the Federal Election Commission.",
    "rulesSecondary": "Disputes will be resolved by Kalshi's arbitration team within 48 hours of market close.",
    "priceLevelStructure": "linear_cent",
    "priceRanges": "0-100",
    "lastUpdatedTs": "2024-04-20T15:45:00Z",
    "id": 98765,
    "title": "Will the 2024 US Presidential Election be decided by November 8th?",
    "expectedExpirationTime": "2024-11-08T23:59:59Z"
  }
]
```

**SDK Code**

```python
import requests

url = "https://demo.tradovateapi.com/v1/kalshiMarket/items"

querystring = {"ids":"12345,67890"}

payload = {}
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.get(url, json=payload, headers=headers, params=querystring)

print(response.json())
```

```javascript
const url = 'https://demo.tradovateapi.com/v1/kalshiMarket/items?ids=12345%2C67890';
const options = {
  method: 'GET',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://demo.tradovateapi.com/v1/kalshiMarket/items?ids=12345%2C67890"

	payload := strings.NewReader("{}")

	req, _ := http.NewRequest("GET", url, payload)

	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://demo.tradovateapi.com/v1/kalshiMarket/items?ids=12345%2C67890")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{}"

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://demo.tradovateapi.com/v1/kalshiMarket/items?ids=12345%2C67890")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{}")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://demo.tradovateapi.com/v1/kalshiMarket/items?ids=12345%2C67890', [
  'body' => '{}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://demo.tradovateapi.com/v1/kalshiMarket/items?ids=12345%2C67890");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://demo.tradovateapi.com/v1/kalshiMarket/items?ids=12345%2C67890")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```