> ## Documentation Index
> Fetch the complete documentation index at: https://aisa.one/docs/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> - Base URLs: models `https://api.aisa.one/v1` (Gemini GenerateContent: `https://api.aisa.one/v1beta`); data APIs `https://api.aisa.one/apis/v1`. The `servers` of each operation in https://aisa.one/openapi.yaml is authoritative.
> - Auth: `Authorization: Bearer $AISA_API_KEY`. Never print, log, or commit the key.
> - MCP (preferred for agents): `https://mcp.aisa.one/mcp`, signed in with OAuth, so there is no key to paste.
> - Agent Skill: `npx skills add AIsa-team/agent-skills --skill aisa`. Fallback with the AIsa CLI: `aisa skills install aisa`.
> - Spending: docs, https://aisa.one/models, https://aisa.one/api, `/v1/models`, and MCP `search`, `list_categories`, `get_details`, `batch_quote`, and the `account` operation are free. Quote the exact calls before running them (MCP `batch_quote`, CLI `aisa quote --json`). If the quote reports `auto_execute_eligible: true`, run it unless the user set a tighter limit or asked only for a quote. Otherwise, tell the user in one message the planned calls, the quoted price, and a total USD budget for the task, then wait for approval. Direct HTTP calls follow the stricter rule at https://aisa.one/docs/get-started/cli.md#direct-http-fallback. Do not make paid calls to test availability. Full rule: https://aisa.one/llms.txt

# 获取 Kalshi 市场

> 列出 Kalshi（受 CFTC 监管的美国预测交易所）上的市场，并带以美元计价的实时买卖报价。

列出 Kalshi（受 CFTC 监管的美国预测交易所）上的市场，并带以美元计价的实时买卖报价。当你需要来自受监管场所的赔率，或想用第二个市场交叉验证 Polymarket 价格时使用；可用 `tickers`（逗号分隔）获取指定市场，用 `event_ticker` / `series_ticker` 限定分组，或用 `status`、`search` 以及创建 / 收盘 / 结算时间区间收窄范围。

返回 `markets[]`，包含 `title`、`status`、`yes_bid_dollars` / `yes_ask_dollars`、`last_price_dollars`、`volume_fp`、`open_interest_fp` 和 `rules_primary`（结算标准），并附带用于分页的 `cursor`。

如需已成交记录而不是报价，请使用 [`get_kalshi_trades`](https://aisa.one/docs/zh/api-reference/prediction-market/get_kalshi-trades)。如需在承载类似问题的加密原生场所查询，请使用 [`get_polymarket_markets`](https://aisa.one/docs/zh/api-reference/prediction-market/get_polymarket-markets)。

> [!NOTE]
>
> **第一次用？** 把任意 MCP 客户端指向 `https://mcp.aisa.one/mcp` —— Claude Code、
> Codex、Cursor、VS Code 都可以。鉴权走 OAuth：客户端打开浏览器，你点一次
> Allow，不需要粘贴任何 key。之后智能体通过几个元工具调用所有端点：
> `search`、`list_categories`、`get_details` 和 `batch_quote` 免费，`batch_use`
> 按次计费。各客户端的接入步骤见[通过 MCP 连接](https://aisa.one/docs/zh/agent-quickstart.md)；实时工具列表和
> 每次调用的价格见 [aisa.one/zh-cn/mcp](https://aisa.one/zh-cn/mcp#connect)。

[在你的 agent 里把这个端点跑起来 →](https://aisa.one/mcp?from=/zh/api-reference/prediction-market/get_kalshi-markets)

## 请求规范

* **方法与路径:** GET /apis/v1/kalshi/markets
* **可用状态:** enabled
* **请求 URL 模板:** `https://api.aisa.one/apis/v1/kalshi/markets`
* **cursor:** query; 可选
* **event\_ticker:** query; 可选
* **limit:** query; 可选
* **max\_close\_ts:** query; 可选
* **max\_created\_ts:** query; 可选
* **max\_settled\_ts:** query; 可选
* **max\_updated\_ts:** query; 可选
* **min\_close\_ts:** query; 可选
* **min\_created\_ts:** query; 可选
* **min\_settled\_ts:** query; 可选
* **min\_updated\_ts:** query; 可选
* **mve\_filter:** query; 可选
* **series\_ticker:** query; 可选
* **status:** query; 可选
* **tickers:** query; 可选

[完整 OpenAPI 定义](https://aisa.one/docs/openapi/zh/kalshi-unauthorized.json)

有效请求声明（包括认证和引用的 schema）：

```json theme={null}
{
  "operationId": "get_kalshi_markets",
  "method": "GET",
  "path": "/apis/v1/kalshi/markets",
  "servers": [
    {
      "url": "https://api.aisa.one"
    }
  ],
  "parameters": [
    {
      "description": "Pagination cursor. Use the cursor value returned from the previous response to get the next page of results. Leave empty for the first page.",
      "in": "query",
      "name": "cursor",
      "schema": {
        "type": "string",
        "x-go-type-skip-optional-pointer": true
      }
    },
    {
      "description": "Event ticker to filter by. Only a single event ticker is supported.",
      "in": "query",
      "name": "event_ticker",
      "schema": {
        "type": "string",
        "x-go-type-skip-optional-pointer": true
      }
    },
    {
      "description": "Number of results per page. Defaults to 100. Maximum value is 1000.",
      "in": "query",
      "name": "limit",
      "schema": {
        "default": 100,
        "format": "int64",
        "maximum": 1000,
        "minimum": 0,
        "type": "integer",
        "x-oapi-codegen-extra-tags": {
          "validate": "omitempty,gte=0,lte=1000"
        }
      }
    },
    {
      "description": "Filter items that close before this Unix timestamp",
      "in": "query",
      "name": "max_close_ts",
      "schema": {
        "format": "int64",
        "type": "integer"
      }
    },
    {
      "description": "Filter items that created before this Unix timestamp",
      "in": "query",
      "name": "max_created_ts",
      "schema": {
        "format": "int64",
        "type": "integer"
      }
    },
    {
      "description": "Filter items that settled before this Unix timestamp",
      "in": "query",
      "name": "max_settled_ts",
      "schema": {
        "format": "int64",
        "type": "integer"
      }
    },
    {
      "description": "Return markets with metadata updated at or before this Unix timestamp (in seconds). Tracks non-trading changes only. May be combined with min_updated_ts and mve_filter=exclude. May also be combined with series_ticker, which requires mve_filter=exclude. Incompatible with other filters.",
      "in": "query",
      "name": "max_updated_ts",
      "schema": {
        "format": "int64",
        "type": "integer"
      }
    },
    {
      "description": "Filter items that close after this Unix timestamp",
      "in": "query",
      "name": "min_close_ts",
      "schema": {
        "format": "int64",
        "type": "integer"
      }
    },
    {
      "description": "Filter items that created after this Unix timestamp",
      "in": "query",
      "name": "min_created_ts",
      "schema": {
        "format": "int64",
        "type": "integer"
      }
    },
    {
      "description": "Filter items that settled after this Unix timestamp",
      "in": "query",
      "name": "min_settled_ts",
      "schema": {
        "format": "int64",
        "type": "integer"
      }
    },
    {
      "description": "Return markets with metadata updated later than this Unix timestamp (in seconds). Tracks non-trading changes only. May be combined with max_updated_ts and mve_filter=exclude. May also be combined with series_ticker, which requires mve_filter=exclude. Incompatible with other filters.",
      "in": "query",
      "name": "min_updated_ts",
      "schema": {
        "format": "int64",
        "type": "integer"
      }
    },
    {
      "description": "Filter by multivariate events (combos). 'only' returns only multivariate events, 'exclude' excludes multivariate events.",
      "in": "query",
      "name": "mve_filter",
      "schema": {
        "enum": [
          "only",
          "exclude"
        ],
        "type": "string"
      }
    },
    {
      "description": "Filter by series ticker",
      "in": "query",
      "name": "series_ticker",
      "schema": {
        "type": "string",
        "x-go-type-skip-optional-pointer": true
      }
    },
    {
      "description": "Filter by market status. Leave empty to return markets with any status.",
      "in": "query",
      "name": "status",
      "schema": {
        "enum": [
          "unopened",
          "open",
          "paused",
          "closed",
          "settled"
        ],
        "type": "string"
      }
    },
    {
      "description": "Filter by specific market tickers. Comma-separated list of market tickers to retrieve.",
      "in": "query",
      "name": "tickers",
      "schema": {
        "type": "string"
      }
    }
  ],
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "x-aisa-status": "enabled",
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "scheme": "bearer",
        "type": "http"
      }
    }
  }
}
```

## 费用与请求规则

公开参考价格：每次成功请求 \$0.02 USD。 账户适用价格可能不同；支持报价的接口可按实际请求获取报价。


## OpenAPI

````yaml openapi/zh/kalshi-unauthorized.json GET /apis/v1/kalshi/markets
openapi: 3.1.0
info:
  description: ''
  title: kalshi-unauthorized
  version: '1'
  x-aisa-capabilities:
    idempotency: Idempotency-Key
    max_price: X-AISA-Max-Price-USD
    quote:
      header: X-AISA-Cost-Mode
      value: quote
  x-aisa-catalogs:
    kalshi-unauthorized:
      description: ''
      title: kalshi-unauthorized
      x-aisa-capabilities:
        idempotency: Idempotency-Key
        max_price: X-AISA-Max-Price-USD
        quote:
          header: X-AISA-Cost-Mode
          value: quote
      x-aisa-document:
        facts_hash: 1cb9c86abd2764bf5fd2b2807cd6239713dcf291769a3199c126757c53c845aa
        generator_version: '3'
        protocol_version: '1'
        schema_version: '1'
      x-aisa-plans:
        builder: 1
        display_plan: payg
        payg: 1
        similarweb_payg: 1
        team: 1
        version: e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb
  x-aisa-configured-paths:
    - /apis/v1/kalshi/markets
    - /apis/v1/kalshi/markets/{ticker}
    - /apis/v1/kalshi/markets/{ticker}/orderbook
    - /apis/v1/kalshi/trades
  x-aisa-document:
    composer_version: '31'
    document_hash: sha256:ed1b240c061963308df889e62c08e38b3fc401e6989d5af91edd257fcd04d9a2
    facts_hash: 1cb9c86abd2764bf5fd2b2807cd6239713dcf291769a3199c126757c53c845aa
    generator_version: '3'
    protocol_version: '1'
    response_pending: []
    schema_version: '1'
  x-aisa-plans:
    builder: 1
    display_plan: payg
    payg: 1
    similarweb_payg: 1
    team: 1
    version: e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb
  x-aisa-provider: kalshi-unauthorized
servers:
  - url: https://api.aisa.one
security:
  - bearerAuth: []
paths:
  /apis/v1/kalshi/markets:
    get:
      tags:
        - default
      summary: 获取 Kalshi 市场
      description: >-
        Filter by market status. Possible values: `unopened`, `open`, `closed`,
        `settled`. Leave empty to return markets with any status.
         - Only one `status` filter may be supplied at a time.
         - Timestamp filters will be mutually exclusive from other timestamp filters and certain status filters.

         | Compatible Timestamp Filters | Additional Status Filters| Extra Notes |
         |------------------------------|--------------------------|-------------|
         | min_created_ts, max_created_ts | `unopened`, `open`, *empty* | |
         | min_close_ts, max_close_ts | `closed`, *empty* | |
         | min_settled_ts, max_settled_ts | `settled`, *empty* | |
         | min_updated_ts, max_updated_ts | *empty* | Incompatible with all filters besides `mve_filter=exclude`. May be combined with `series_ticker`, which requires `mve_filter=exclude` |

         Markets that settled before the historical cutoff are only available via `GET /historical/markets`. See [Historical Data](https://docs.kalshi.com/getting_started/historical_data) for details.

        默认价格配置
      operationId: get_kalshi_markets
      parameters:
        - description: >-
            Pagination cursor. Use the cursor value returned from the previous
            response to get the next page of results. Leave empty for the first
            page.
          in: query
          name: cursor
          schema:
            type: string
            x-go-type-skip-optional-pointer: true
        - description: Event ticker to filter by. Only a single event ticker is supported.
          in: query
          name: event_ticker
          schema:
            type: string
            x-go-type-skip-optional-pointer: true
        - description: 每页结果数。默认为 100，最大值为 1000。
          in: query
          name: limit
          schema:
            default: 100
            format: int64
            maximum: 1000
            minimum: 0
            type: integer
            x-oapi-codegen-extra-tags:
              validate: omitempty,gte=0,lte=1000
        - description: Filter items that close before this Unix timestamp
          in: query
          name: max_close_ts
          schema:
            format: int64
            type: integer
        - description: Filter items that created before this Unix timestamp
          in: query
          name: max_created_ts
          schema:
            format: int64
            type: integer
        - description: Filter items that settled before this Unix timestamp
          in: query
          name: max_settled_ts
          schema:
            format: int64
            type: integer
        - description: >-
            Return markets with metadata updated at or before this Unix
            timestamp (in seconds). Tracks non-trading changes only. May be
            combined with min_updated_ts and mve_filter=exclude. May also be
            combined with series_ticker, which requires mve_filter=exclude.
            Incompatible with other filters.
          in: query
          name: max_updated_ts
          schema:
            format: int64
            type: integer
        - description: Filter items that close after this Unix timestamp
          in: query
          name: min_close_ts
          schema:
            format: int64
            type: integer
        - description: Filter items that created after this Unix timestamp
          in: query
          name: min_created_ts
          schema:
            format: int64
            type: integer
        - description: Filter items that settled after this Unix timestamp
          in: query
          name: min_settled_ts
          schema:
            format: int64
            type: integer
        - description: >-
            Return markets with metadata updated later than this Unix timestamp
            (in seconds). Tracks non-trading changes only. May be combined with
            max_updated_ts and mve_filter=exclude. May also be combined with
            series_ticker, which requires mve_filter=exclude. Incompatible with
            other filters.
          in: query
          name: min_updated_ts
          schema:
            format: int64
            type: integer
        - description: >-
            Filter by multivariate events (combos). 'only' returns only
            multivariate events, 'exclude' excludes multivariate events.
          in: query
          name: mve_filter
          schema:
            enum:
              - only
              - exclude
            type: string
        - description: Filter by series ticker
          in: query
          name: series_ticker
          schema:
            type: string
            x-go-type-skip-optional-pointer: true
        - description: >-
            Filter by market status. Leave empty to return markets with any
            status.
          in: query
          name: status
          schema:
            enum:
              - unopened
              - open
              - paused
              - closed
              - settled
            type: string
        - description: >-
            Filter by specific market tickers. Comma-separated list of market
            tickers to retrieve.
          in: query
          name: tickers
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Response3868Ab39519D_GetMarketsResponse'
          description: Markets retrieved successfully
        default:
          content:
            application/json:
              schema: {}
          description: >-
            Error response; upstream passthrough responses may use provider
            formats
components:
  schemas:
    Response3868Ab39519D_GetMarketsResponse:
      properties:
        cursor:
          type: string
        markets:
          items:
            $ref: '#/components/schemas/Response3868Ab39519D_Market'
          type: array
      required:
        - markets
        - cursor
      type: object
    Response3868Ab39519D_Market:
      properties:
        can_close_early:
          type: boolean
        cap_strike:
          description: Maximum expiration value that leads to a YES settlement
          format: double
          type:
            - number
            - 'null'
          x-omitempty: true
        close_time:
          format: date-time
          type: string
        created_time:
          format: date-time
          type: string
        custom_strike:
          description: Expiration value for each target that leads to a YES settlement
          type:
            - object
            - 'null'
          x-omitempty: true
        early_close_condition:
          description: The condition under which the market can close early
          type:
            - string
            - 'null'
          x-go-type-skip-optional-pointer: true
          x-omitempty: true
        event_ticker:
          type: string
        exchange_index:
          allOf:
            - $ref: '#/components/schemas/Response3868Ab39519D_ExchangeIndex'
          x-go-type-skip-optional-pointer: true
          x-omitempty: false
        expected_expiration_time:
          description: Time when this market is expected to expire
          format: date-time
          type:
            - string
            - 'null'
          x-omitempty: true
        expiration_time:
          deprecated: true
          format: date-time
          type: string
          x-go-type-skip-optional-pointer: true
        expiration_value:
          description: The value that was considered for the settlement
          type: string
        fee_waiver_expiration_time:
          description: Time when this market's fee waiver expires
          format: date-time
          type:
            - string
            - 'null'
          x-omitempty: true
        floor_strike:
          description: Minimum expiration value that leads to a YES settlement
          format: double
          type:
            - number
            - 'null'
          x-omitempty: true
        functional_strike:
          description: Mapping from expiration values to settlement values
          type:
            - string
            - 'null'
          x-omitempty: true
        is_provisional:
          description: >-
            If true, the market may be removed after determination if there is
            no activity on it
          type: boolean
          x-go-type-skip-optional-pointer: true
          x-omitempty: true
        last_price_dollars:
          $ref: '#/components/schemas/Response3868Ab39519D_FixedPointDollars'
        latest_expiration_time:
          description: Latest possible time for this market to expire
          format: date-time
          type: string
        market_type:
          description: Identifies the type of market
          enum:
            - binary
            - scalar
          type: string
        mve_collection_ticker:
          description: The ticker of the multivariate event collection
          type: string
          x-go-type-skip-optional-pointer: true
          x-omitempty: true
        mve_selected_legs:
          items:
            $ref: '#/components/schemas/Response3868Ab39519D_MveSelectedLeg'
          type: array
          x-go-type-skip-optional-pointer: true
          x-omitempty: true
        no_ask_dollars:
          $ref: '#/components/schemas/Response3868Ab39519D_FixedPointDollars'
        no_bid_dollars:
          $ref: '#/components/schemas/Response3868Ab39519D_FixedPointDollars'
        no_sub_title:
          description: Shortened title for the no side of this market
          type: string
        notional_value_dollars:
          $ref: '#/components/schemas/Response3868Ab39519D_FixedPointDollars'
        occurrence_datetime:
          description: >-
            The recorded datetime when the underlying event occurred, if
            available
          format: date-time
          type:
            - string
            - 'null'
        open_interest_fp:
          $ref: '#/components/schemas/Response3868Ab39519D_FixedPointCount'
        open_time:
          format: date-time
          type: string
        previous_price_dollars:
          $ref: '#/components/schemas/Response3868Ab39519D_FixedPointDollars'
        previous_yes_ask_dollars:
          $ref: '#/components/schemas/Response3868Ab39519D_FixedPointDollars'
        previous_yes_bid_dollars:
          $ref: '#/components/schemas/Response3868Ab39519D_FixedPointDollars'
        price_level_structure:
          description: >-
            Price level structure for this market, defining price ranges and
            tick sizes
          type: string
        price_ranges:
          description: Valid price ranges for orders on this market
          items:
            $ref: '#/components/schemas/Response3868Ab39519D_PriceRange'
          type: array
        primary_participant_key:
          type:
            - string
            - 'null'
          x-omitempty: true
        result:
          enum:
            - 'yes'
            - 'no'
            - scalar
            - ''
          type: string
        rules_primary:
          description: A plain language description of the most important market terms
          type: string
        rules_secondary:
          description: A plain language description of secondary market terms
          type: string
        settlement_bounds_type:
          description: >-
            Which settlement bounds apply to this market. default means the
            market has no settlement bounds
          enum:
            - default
            - floor
          type: string
        settlement_floor_dollars:
          $ref: '#/components/schemas/Response3868Ab39519D_FixedPointDollars'
        settlement_timer_seconds:
          description: The amount of time after determination that the market settles
          type: integer
        settlement_ts:
          description: >-
            Timestamp when the market was settled. Only filled for settled
            markets
          format: date-time
          type:
            - string
            - 'null'
          x-omitempty: true
        settlement_value_dollars:
          $ref: '#/components/schemas/Response3868Ab39519D_FixedPointDollars'
        status:
          description: The current status of the market in its lifecycle.
          enum:
            - initialized
            - inactive
            - active
            - closed
            - determined
            - disputed
            - amended
            - finalized
          type: string
        strike_type:
          description: Strike type defines how the market strike is defined and evaluated
          enum:
            - greater
            - greater_or_equal
            - less
            - less_or_equal
            - between
            - functional
            - custom
            - structured
          type: string
          x-go-type-skip-optional-pointer: true
          x-omitempty: true
        subtitle:
          deprecated: true
          type: string
          x-go-type-skip-optional-pointer: true
        ticker:
          type: string
        title:
          deprecated: true
          type: string
          x-go-type-skip-optional-pointer: true
        updated_time:
          description: Time of the last non-trading metadata update.
          format: date-time
          type: string
        volume_24h_fp:
          $ref: '#/components/schemas/Response3868Ab39519D_FixedPointCount'
        volume_fp:
          $ref: '#/components/schemas/Response3868Ab39519D_FixedPointCount'
        yes_ask_dollars:
          $ref: '#/components/schemas/Response3868Ab39519D_FixedPointDollars'
        yes_ask_size_fp:
          $ref: '#/components/schemas/Response3868Ab39519D_FixedPointCount'
        yes_bid_dollars:
          $ref: '#/components/schemas/Response3868Ab39519D_FixedPointDollars'
        yes_bid_size_fp:
          $ref: '#/components/schemas/Response3868Ab39519D_FixedPointCount'
        yes_sub_title:
          description: Shortened title for the yes side of this market
          type: string
      required:
        - ticker
        - event_ticker
        - market_type
        - yes_sub_title
        - no_sub_title
        - created_time
        - updated_time
        - open_time
        - close_time
        - latest_expiration_time
        - settlement_timer_seconds
        - status
        - notional_value_dollars
        - yes_bid_dollars
        - yes_ask_dollars
        - no_bid_dollars
        - no_ask_dollars
        - yes_bid_size_fp
        - yes_ask_size_fp
        - last_price_dollars
        - previous_yes_bid_dollars
        - previous_yes_ask_dollars
        - previous_price_dollars
        - volume_fp
        - volume_24h_fp
        - open_interest_fp
        - result
        - can_close_early
        - expiration_value
        - rules_primary
        - rules_secondary
        - price_level_structure
        - price_ranges
        - settlement_bounds_type
      type: object
    Response3868Ab39519D_ExchangeIndex:
      description: Identifier for an exchange shard.
      example: 0
      type: integer
    Response3868Ab39519D_FixedPointDollars:
      description: >-
        Fixed-point US dollar string. Most request fields accept 2-4 decimal
        places (e.g., "0.56", "0.5600"); responses emit up to 6. Valid quote
        intervals for a given market are constrained by that market's price
        level structure.
      example: '0.5600'
      type: string
    Response3868Ab39519D_MveSelectedLeg:
      properties:
        event_ticker:
          description: Unique identifier for the selected event
          type: string
          x-go-type-skip-optional-pointer: true
        market_ticker:
          description: Unique identifier for the selected market
          type: string
          x-go-type-skip-optional-pointer: true
        side:
          description: The side of the selected market
          type: string
          x-go-type-skip-optional-pointer: true
        yes_settlement_value_dollars:
          $ref: '#/components/schemas/Response3868Ab39519D_FixedPointDollars'
      type: object
    Response3868Ab39519D_FixedPointCount:
      description: >-
        Fixed-point contract count string (2 decimals, e.g., "10.00"; referred
        to as "fp" in field names). Requests accept 0-2 decimal places (e.g.,
        "10", "10.0", "10.00"); responses always emit 2 decimals. Fractional
        contract values (e.g., "2.50") are supported; the minimum granularity is
        0.01 contracts.
      example: '10.00'
      type: string
    Response3868Ab39519D_PriceRange:
      properties:
        end:
          description: Ending price for this range in dollars
          type: string
        start:
          description: Starting price for this range in dollars
          type: string
        step:
          description: Price step/tick size for this range in dollars
          type: string
      required:
        - start
        - end
        - step
      type: object
  securitySchemes:
    bearerAuth:
      scheme: bearer
      type: http

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.