> 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 Suggest

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

Fetches KalshiMarket entities filtered by the presence of a specified text in one of their fields

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

## OpenAPI Specification

```yaml
openapi: 3.1.0
info:
  title: connect
  version: 1.0.0
paths:
  /kalshiMarket/suggest:
    get:
      operationId: kalshi-market-suggest
      summary: Kalshi Market Suggest
      description: >-
        Fetches KalshiMarket entities filtered by the presence of a specified
        text in one of their fields
      tags:
        - contractLibrary
      parameters:
        - name: t
          in: query
          description: Text
          required: true
          schema:
            type: string
        - name: l
          in: query
          description: Max number of entities
          required: true
          schema:
            type: integer
        - 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": "Will the average global temperature rise above 2°C by 2030?",
    "kalshiEventId": 1001,
    "subtitle": "Prediction on whether the global average temperature will exceed 2°C above pre-industrial levels by 2030",
    "yesSubtitle": "Yes, the temperature will rise above 2°C",
    "noSubtitle": "No, the temperature will not rise above 2°C",
    "openTime": "2024-04-01T00:00:00Z",
    "closeTime": "2024-12-31T23:59:59Z",
    "expirationTime": "2030-12-31T23:59:59Z",
    "latestExpirationTime": "2031-01-31T23:59:59Z",
    "status": "active",
    "result": "void",
    "canCloseEarly": false,
    "expirationValue": "2.0°C",
    "riskLimitCents": 500000,
    "rulesPrimary": "This market resolves based on the official global average temperature data published by the IPCC for the year 2030.",
    "rulesSecondary": "If the data is disputed, the market may be settled by an independent scientific panel.",
    "priceLevelStructure": "deci_cent",
    "priceRanges": "0-100",
    "lastUpdatedTs": "2024-04-15T12:00:00Z",
    "id": 1024,
    "title": "Global Temperature Increase by 2030",
    "expectedExpirationTime": "2030-12-31T23:59:59Z"
  }
]
```

**SDK Code**

```python
import requests

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

querystring = {"t":"climate change","l":"5"}

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/suggest?t=climate+change&l=5';
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/suggest?t=climate+change&l=5"

	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/suggest?t=climate+change&l=5")

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/suggest?t=climate+change&l=5")
  .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/suggest?t=climate+change&l=5', [
  '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/suggest?t=climate+change&l=5");
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/suggest?t=climate+change&l=5")! 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()
```