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

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

Fetches all KalshiMarket entities associated to KalshiEvent entity

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

## OpenAPI Specification

```yaml
openapi: 3.1.0
info:
  title: connect
  version: 1.0.0
paths:
  /kalshiMarket/deps:
    get:
      operationId: kalshi-market-dependents
      summary: Kalshi Market Dependents
      description: Fetches all KalshiMarket entities associated to KalshiEvent entity
      tags:
        - contractLibrary
      parameters:
        - name: masterid
          in: query
          description: KalshiEvent entity ID
          required: true
          schema:
            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 Market",
    "kalshiEventId": 123456789,
    "subtitle": "Market on the outcome of the 2024 US Presidential Election",
    "yesSubtitle": "Democratic candidate wins",
    "noSubtitle": "Democratic candidate loses",
    "openTime": "2024-10-01T08:00:00Z",
    "closeTime": "2024-11-05T20:00:00Z",
    "expirationTime": "2024-11-08T00:00:00Z",
    "latestExpirationTime": "2024-11-10T00:00:00Z",
    "status": "active",
    "result": "void",
    "canCloseEarly": false,
    "expirationValue": "2024-11-08",
    "riskLimitCents": 5000000,
    "rulesPrimary": "All trades are final. Market closes at 8 PM EST on November 5, 2024. Settlement based on official election results.",
    "rulesSecondary": "No trading allowed after market close. Disputes resolved by Kalshi arbitration panel.",
    "priceLevelStructure": "linear_cent",
    "priceRanges": "0-100",
    "lastUpdatedTs": "2024-04-20T12:00:00Z",
    "id": 987654321,
    "title": "Will the Democratic candidate win the 2024 US Presidential Election?",
    "expectedExpirationTime": "2024-11-08T00:00:00Z"
  }
]
```

**SDK Code**

```python
import requests

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

querystring = {"masterid":"123456789"}

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/deps?masterid=123456789';
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/deps?masterid=123456789"

	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/deps?masterid=123456789")

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/deps?masterid=123456789")
  .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/deps?masterid=123456789', [
  '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/deps?masterid=123456789");
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/deps?masterid=123456789")! 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()
```