{
  "components": {
    "callbacks": {},
    "examples": {},
    "headers": {},
    "links": {},
    "parameters": {},
    "pathItems": {},
    "requestBodies": {},
    "responses": {},
    "schemas": {
      "Response3868Ab39519D_BookSide": {
        "description": "Side of the book for an order or trade. For event markets, this refers to the YES leg only: `bid` means buy YES, `ask` means sell YES. (Selling YES is economically equivalent to buying NO at `1 - price`, but this endpoint quotes everything from the YES side.)",
        "enum": [
          "bid",
          "ask"
        ],
        "type": "string"
      },
      "Response3868Ab39519D_ExchangeIndex": {
        "description": "Identifier for an exchange shard.",
        "example": 0,
        "type": "integer"
      },
      "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_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_GetMarketOrderbookResponse": {
        "properties": {
          "orderbook_fp": {
            "$ref": "#/components/schemas/Response3868Ab39519D_OrderbookCountFp"
          }
        },
        "required": [
          "orderbook_fp"
        ],
        "type": "object"
      },
      "Response3868Ab39519D_GetMarketResponse": {
        "properties": {
          "market": {
            "$ref": "#/components/schemas/Response3868Ab39519D_Market"
          }
        },
        "required": [
          "market"
        ],
        "type": "object"
      },
      "Response3868Ab39519D_GetMarketsResponse": {
        "properties": {
          "cursor": {
            "type": "string"
          },
          "markets": {
            "items": {
              "$ref": "#/components/schemas/Response3868Ab39519D_Market"
            },
            "type": "array"
          }
        },
        "required": [
          "markets",
          "cursor"
        ],
        "type": "object"
      },
      "Response3868Ab39519D_GetTradesResponse": {
        "properties": {
          "cursor": {
            "type": "string"
          },
          "trades": {
            "items": {
              "$ref": "#/components/schemas/Response3868Ab39519D_Trade"
            },
            "type": "array"
          }
        },
        "required": [
          "trades",
          "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_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_OrderbookCountFp": {
        "description": "Orderbook with fixed-point contract counts (fp) in all dollar price levels.",
        "properties": {
          "no_dollars": {
            "items": {
              "$ref": "#/components/schemas/Response3868Ab39519D_PriceLevelDollarsCountFp"
            },
            "type": "array"
          },
          "yes_dollars": {
            "items": {
              "$ref": "#/components/schemas/Response3868Ab39519D_PriceLevelDollarsCountFp"
            },
            "type": "array"
          }
        },
        "required": [
          "yes_dollars",
          "no_dollars"
        ],
        "type": "object"
      },
      "Response3868Ab39519D_PriceLevelDollarsCountFp": {
        "description": "Price level in dollars represented as [dollars_string, fp] where dollars_string is like \"0.1500\" and fp is a FixedPointCount string (fixed-point contract count). The second element is the contract quantity (not price).",
        "example": [
          "0.1500",
          "100.00"
        ],
        "items": {
          "type": "string"
        },
        "maxItems": 2,
        "minItems": 2,
        "type": "array"
      },
      "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"
      },
      "Response3868Ab39519D_Trade": {
        "properties": {
          "count_fp": {
            "$ref": "#/components/schemas/Response3868Ab39519D_FixedPointCount"
          },
          "created_time": {
            "description": "Timestamp when this trade was executed",
            "format": "date-time",
            "type": "string"
          },
          "is_block_trade": {
            "description": "True if this trade was matched off-book as a block trade (e.g. via RFQ / negotiated block proposal); false for trades that filled on the standard order book.",
            "type": "boolean"
          },
          "no_price_dollars": {
            "$ref": "#/components/schemas/Response3868Ab39519D_FixedPointDollars"
          },
          "taker_book_side": {
            "$ref": "#/components/schemas/Response3868Ab39519D_BookSide"
          },
          "taker_outcome_side": {
            "description": "The outcome side the taker is positioned for. buy-yes and sell-no produce 'yes'; buy-no and sell-yes produce 'no'.\n\n`taker_outcome_side` describes directional exposure only; it does not change the trade's price. A trade at price `p` with `taker_outcome_side=no` is matched against the maker at the same price `p` with the opposite direction — both parties trade at the same price.\n\n`taker_outcome_side` and `taker_book_side` will become the canonical way to determine trade direction. The legacy `taker_side` field will be deprecated in a future release — please migrate to these new fields.\n",
            "enum": [
              "yes",
              "no"
            ],
            "type": "string",
            "x-enum-varnames": [
              "TradeTakerOutcomeSideYes",
              "TradeTakerOutcomeSideNo"
            ]
          },
          "taker_side": {
            "deprecated": true,
            "description": "Deprecated. Use `taker_outcome_side` (or `taker_book_side`) instead. See [Order direction](/getting_started/order_direction). This field will not be removed before May 14, 2026.\n",
            "enum": [
              "yes",
              "no"
            ],
            "type": "string",
            "x-enum-varnames": [
              "TradeTakerSideYes",
              "TradeTakerSideNo"
            ],
            "x-go-type-skip-optional-pointer": true
          },
          "ticker": {
            "description": "Unique identifier for the market",
            "type": "string"
          },
          "trade_id": {
            "description": "Unique identifier for this trade",
            "type": "string"
          },
          "yes_price_dollars": {
            "$ref": "#/components/schemas/Response3868Ab39519D_FixedPointDollars"
          }
        },
        "required": [
          "trade_id",
          "ticker",
          "count_fp",
          "yes_price_dollars",
          "no_price_dollars",
          "taker_outcome_side",
          "taker_book_side",
          "created_time",
          "is_block_trade"
        ],
        "type": "object"
      }
    },
    "securitySchemes": {
      "bearerAuth": {
        "scheme": "bearer",
        "type": "http"
      }
    }
  },
  "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.0,
          "display_plan": "payg",
          "payg": 1.0,
          "similarweb_payg": 1.0,
          "team": 1.0,
          "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.0,
      "display_plan": "payg",
      "payg": 1.0,
      "similarweb_payg": 1.0,
      "team": 1.0,
      "version": "e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb"
    },
    "x-aisa-provider": "kalshi-unauthorized"
  },
  "jsonSchemaDialect": "https://json-schema.org/draft/2020-12/schema",
  "openapi": "3.1.0",
  "paths": {
    "/apis/v1/kalshi/markets": {
      "get": {
        "description": "Filter by market status. Possible values: `unopened`, `open`, `closed`, `settled`. Leave empty to return markets with any status.\n - Only one `status` filter may be supplied at a time.\n - Timestamp filters will be mutually exclusive from other timestamp filters and certain status filters.\n\n | Compatible Timestamp Filters | Additional Status Filters| Extra Notes |\n |------------------------------|--------------------------|-------------|\n | min_created_ts, max_created_ts | `unopened`, `open`, *empty* | |\n | min_close_ts, max_close_ts | `closed`, *empty* | |\n | min_settled_ts, max_settled_ts | `settled`, *empty* | |\n | 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` |\n\n 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.\n\n默认价格配置",
        "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"
          }
        },
        "summary": "获取 Kalshi 市场",
        "tags": [
          "default"
        ],
        "x-aisa-capabilities": {
          "idempotency": "Idempotency-Key",
          "max_price": "X-AISA-Max-Price-USD",
          "mpp": true,
          "mpp_methods": [
            "GET"
          ],
          "quote": {
            "header": "X-AISA-Cost-Mode",
            "value": "quote"
          },
          "x402": false
        },
        "x-aisa-catalog-id": "kalshi-unauthorized",
        "x-aisa-category": "7",
        "x-aisa-docs-url": "https://aisa.one/docs/api-reference/prediction-market/get_kalshi-markets",
        "x-aisa-passthrough": true,
        "x-aisa-pricing": {
          "cost_contract": "fixed_success",
          "customer_pricing": "fixed_success",
          "default_request_estimate_usd": 0.02,
          "estimate_source": "profile_seed",
          "evidence_source": "request_snapshot"
        },
        "x-aisa-query-policy": {
          "ignore_undeclared": false,
          "request_wins": true
        },
        "x-aisa-response-source": {
          "content_hash": "sha256:fe72ad0587cb2c618714876bbd78e40fa8c05029d6748cc2d5f9382f156ddeff",
          "kind": "upstream_success_contract",
          "source": {
            "content_hash": "sha256:cfce9cc4c641e69ce9e5baf9e0708c3256b093e470eee8f401c5f16b1d049fa6",
            "converter": "scripts/import_upstream.py@3",
            "fetched_at": "2026-10-30T10:05:24.221611+00:00",
            "kind": "provider_openapi",
            "owner": "AIsa-team/docs",
            "policy_revision": "sha256:25fd8bf816f117887cdf7d7331937e796730a49dcd548f8f7dfa3148117fc4ef",
            "refresh_interval_hours": 24,
            "refresh_policy": "automatic",
            "review_period_days": 30,
            "url": "https://docs.kalshi.com/openapi.yaml"
          }
        },
        "x-aisa-revision": {
          "customer_pricing_ref": "e48c194af679",
          "plan_policy_version": "e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb",
          "profile_ref": "b35ad8082c22"
        },
        "x-aisa-runtime-operation": {
          "method": "ANY",
          "operation_id": "get_kalshi_markets",
          "path": "/apis/v1/kalshi/markets"
        },
        "x-aisa-source": {
          "content_hash": "sha256:cfce9cc4c641e69ce9e5baf9e0708c3256b093e470eee8f401c5f16b1d049fa6",
          "converter": "scripts/import_upstream.py@3",
          "fetched_at": "2026-10-30T10:05:24.221611+00:00",
          "kind": "provider_openapi",
          "owner": "AIsa-team/docs",
          "policy_revision": "sha256:25fd8bf816f117887cdf7d7331937e796730a49dcd548f8f7dfa3148117fc4ef",
          "refresh_interval_hours": 24,
          "refresh_policy": "automatic",
          "review_period_days": 30,
          "url": "https://docs.kalshi.com/openapi.yaml"
        },
        "x-aisa-status": "enabled",
        "x-aisa-upstream-path": "/markets",
        "x-aisa-validation": "provider"
      }
    },
    "/apis/v1/kalshi/markets/{ticker}": {
      "get": {
        "description": "Endpoint for getting data about a specific market by its ticker. A market represents a specific binary outcome within an event that users can trade on (e.g., \"Will candidate X win?\"). Markets have yes/no positions, current prices, volume, and settlement rules.\n\n默认价格配置",
        "operationId": "any_kalshi_unauthorized_apis_v1_kalshi_markets_ticker",
        "parameters": [
          {
            "description": "Market ticker",
            "in": "path",
            "name": "ticker",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Response3868Ab39519D_GetMarketResponse"
                }
              }
            },
            "description": "Market retrieved successfully"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Error response; upstream passthrough responses may use provider formats"
          }
        },
        "summary": "Get Market Price",
        "tags": [
          "default"
        ],
        "x-aisa-capabilities": {
          "idempotency": "Idempotency-Key",
          "max_price": "X-AISA-Max-Price-USD",
          "mpp": true,
          "mpp_methods": [
            "GET"
          ],
          "quote": {
            "header": "X-AISA-Cost-Mode",
            "value": "quote"
          },
          "x402": false
        },
        "x-aisa-catalog-id": "kalshi-unauthorized",
        "x-aisa-category": "7",
        "x-aisa-docs-url": "https://aisa.one/docs/api-reference/kalshi-unauthorized/any_kalshi_unauthorized_apis_v1_kalshi_markets_ticker",
        "x-aisa-passthrough": true,
        "x-aisa-pricing": {
          "cost_contract": "fixed_success",
          "customer_pricing": "fixed_success",
          "default_request_estimate_usd": 0.02,
          "estimate_source": "profile_seed",
          "evidence_source": "request_snapshot"
        },
        "x-aisa-query-policy": {
          "ignore_undeclared": false,
          "request_wins": true
        },
        "x-aisa-response-source": {
          "content_hash": "sha256:4dbf6988acdcabf4ae7122e7c4463d60784da12fc454b6b91da28f93549fe6ff",
          "kind": "upstream_success_contract",
          "source": {
            "content_hash": "sha256:cfce9cc4c641e69ce9e5baf9e0708c3256b093e470eee8f401c5f16b1d049fa6",
            "converter": "scripts/import_upstream.py@3",
            "fetched_at": "2026-10-30T10:05:24.221611+00:00",
            "kind": "provider_openapi",
            "owner": "AIsa-team/docs",
            "policy_revision": "sha256:25fd8bf816f117887cdf7d7331937e796730a49dcd548f8f7dfa3148117fc4ef",
            "refresh_interval_hours": 24,
            "refresh_policy": "automatic",
            "review_period_days": 30,
            "url": "https://docs.kalshi.com/openapi.yaml"
          }
        },
        "x-aisa-revision": {
          "customer_pricing_ref": "e48c194af679",
          "plan_policy_version": "e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb",
          "profile_ref": "9e8e2a18f261"
        },
        "x-aisa-runtime-operation": {
          "method": "ANY",
          "operation_id": "any_kalshi_unauthorized_apis_v1_kalshi_markets_ticker",
          "path": "/apis/v1/kalshi/markets/{ticker}"
        },
        "x-aisa-source": {
          "content_hash": "sha256:cfce9cc4c641e69ce9e5baf9e0708c3256b093e470eee8f401c5f16b1d049fa6",
          "converter": "scripts/import_upstream.py@3",
          "fetched_at": "2026-10-30T10:05:24.221611+00:00",
          "kind": "provider_openapi",
          "owner": "AIsa-team/docs",
          "policy_revision": "sha256:25fd8bf816f117887cdf7d7331937e796730a49dcd548f8f7dfa3148117fc4ef",
          "refresh_interval_hours": 24,
          "refresh_policy": "automatic",
          "review_period_days": 30,
          "url": "https://docs.kalshi.com/openapi.yaml"
        },
        "x-aisa-status": "enabled",
        "x-aisa-upstream-path": "/markets/{ticker}",
        "x-aisa-validation": "provider"
      }
    },
    "/apis/v1/kalshi/markets/{ticker}/orderbook": {
      "get": {
        "description": "Endpoint for getting the current order book for a specific market.  The order book shows all active bid orders for both yes and no sides of a binary market. It returns yes bids and no bids only (no asks are returned). This is because in binary markets, a bid for yes at price X is equivalent to an ask for no at price (100-X). For example, a yes bid at 7¢ is the same as a no ask at 93¢, with identical contract sizes.  Each side shows price levels with their corresponding quantities and order counts, organized from best to worst prices.\n\n默认价格配置",
        "operationId": "any_kalshi_unauthorized_apis_v1_kalshi_markets_ti_7bc540",
        "parameters": [
          {
            "description": "Market ticker",
            "in": "path",
            "name": "ticker",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Depth of the orderbook to retrieve (0 or negative means all levels, 1-100 for specific depth)",
            "in": "query",
            "name": "depth",
            "required": false,
            "schema": {
              "default": 0,
              "maximum": 100,
              "minimum": 0,
              "type": "integer"
            },
            "x-oapi-codegen-extra-tags": {
              "validate": "omitempty,min=0,max=100"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Response3868Ab39519D_GetMarketOrderbookResponse"
                }
              }
            },
            "description": "Orderbook retrieved successfully"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Error response; upstream passthrough responses may use provider formats"
          }
        },
        "summary": "Get Kalshi Market OrderBook",
        "tags": [
          "default"
        ],
        "x-aisa-capabilities": {
          "idempotency": "Idempotency-Key",
          "max_price": "X-AISA-Max-Price-USD",
          "mpp": true,
          "mpp_methods": [
            "GET"
          ],
          "quote": {
            "header": "X-AISA-Cost-Mode",
            "value": "quote"
          },
          "x402": false
        },
        "x-aisa-catalog-id": "kalshi-unauthorized",
        "x-aisa-category": "7",
        "x-aisa-docs-url": "https://aisa.one/docs/api-reference/kalshi-unauthorized/any_kalshi_unauthorized_apis_v1_kalshi_markets_ti_7bc540",
        "x-aisa-passthrough": true,
        "x-aisa-pricing": {
          "cost_contract": "fixed_success",
          "customer_pricing": "fixed_success",
          "default_request_estimate_usd": 0.02,
          "estimate_source": "profile_seed",
          "evidence_source": "request_snapshot"
        },
        "x-aisa-query-policy": {
          "ignore_undeclared": false,
          "request_wins": true
        },
        "x-aisa-response-source": {
          "content_hash": "sha256:aecc34da83a2344d9dbc122f5c89ef6b795cfc7ed3259fafb8e62255c6b91c11",
          "kind": "upstream_success_contract",
          "source": {
            "content_hash": "sha256:cfce9cc4c641e69ce9e5baf9e0708c3256b093e470eee8f401c5f16b1d049fa6",
            "converter": "scripts/import_upstream.py@3",
            "fetched_at": "2026-10-30T10:05:24.221611+00:00",
            "kind": "provider_openapi",
            "owner": "AIsa-team/docs",
            "policy_revision": "sha256:25fd8bf816f117887cdf7d7331937e796730a49dcd548f8f7dfa3148117fc4ef",
            "refresh_interval_hours": 24,
            "refresh_policy": "automatic",
            "review_period_days": 30,
            "url": "https://docs.kalshi.com/openapi.yaml"
          }
        },
        "x-aisa-revision": {
          "customer_pricing_ref": "e48c194af679",
          "plan_policy_version": "e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb",
          "profile_ref": "21d18ed82faa"
        },
        "x-aisa-runtime-operation": {
          "method": "ANY",
          "operation_id": "any_kalshi_unauthorized_apis_v1_kalshi_markets_ti_7bc540",
          "path": "/apis/v1/kalshi/markets/{ticker}/orderbook"
        },
        "x-aisa-source": {
          "content_hash": "sha256:cfce9cc4c641e69ce9e5baf9e0708c3256b093e470eee8f401c5f16b1d049fa6",
          "converter": "scripts/import_upstream.py@3",
          "fetched_at": "2026-10-30T10:05:24.221611+00:00",
          "kind": "provider_openapi",
          "owner": "AIsa-team/docs",
          "policy_revision": "sha256:25fd8bf816f117887cdf7d7331937e796730a49dcd548f8f7dfa3148117fc4ef",
          "refresh_interval_hours": 24,
          "refresh_policy": "automatic",
          "review_period_days": 30,
          "url": "https://docs.kalshi.com/openapi.yaml"
        },
        "x-aisa-status": "enabled",
        "x-aisa-upstream-path": "/markets/{ticker}/orderbook",
        "x-aisa-validation": "provider"
      }
    },
    "/apis/v1/kalshi/trades": {
      "get": {
        "description": "Endpoint for getting all trades for all markets. A trade represents a completed transaction between two users on a specific market. Each trade includes the market ticker, price, quantity, and timestamp information. Block trades are included in the response by default and identified by the `is_block_trade` field; use the `is_block_trade` query parameter to filter by block / non-block. This endpoint returns a paginated response. Use the 'limit' parameter to control page size (1-1000, defaults to 100). The response includes a 'cursor' field - pass this value in the 'cursor' parameter of your next request to get the next page. An empty cursor indicates no more pages are available.\n\n默认价格配置",
        "operationId": "get_kalshi_trades",
        "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": "Filter trades by whether they are block trades. Omit to return all trades. Set to `true` to return only block trades. Set to `false` to return only non-block trades.\n",
            "in": "query",
            "name": "is_block_trade",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "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 before this Unix timestamp",
            "in": "query",
            "name": "max_ts",
            "schema": {
              "format": "int64",
              "type": "integer"
            }
          },
          {
            "description": "Filter items after this Unix timestamp",
            "in": "query",
            "name": "min_ts",
            "schema": {
              "format": "int64",
              "type": "integer"
            }
          },
          {
            "description": "Filter by market ticker",
            "in": "query",
            "name": "ticker",
            "schema": {
              "type": "string",
              "x-go-type-skip-optional-pointer": true
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Response3868Ab39519D_GetTradesResponse"
                }
              }
            },
            "description": "Trades retrieved successfully"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Error response; upstream passthrough responses may use provider formats"
          }
        },
        "summary": "获取 Kalshi 交易",
        "tags": [
          "default"
        ],
        "x-aisa-capabilities": {
          "idempotency": "Idempotency-Key",
          "max_price": "X-AISA-Max-Price-USD",
          "mpp": true,
          "mpp_methods": [
            "GET"
          ],
          "quote": {
            "header": "X-AISA-Cost-Mode",
            "value": "quote"
          },
          "x402": false
        },
        "x-aisa-catalog-id": "kalshi-unauthorized",
        "x-aisa-category": "7",
        "x-aisa-docs-url": "https://aisa.one/docs/api-reference/prediction-market/get_kalshi-trades",
        "x-aisa-passthrough": true,
        "x-aisa-pricing": {
          "cost_contract": "fixed_success",
          "customer_pricing": "fixed_success",
          "default_request_estimate_usd": 0.02,
          "estimate_source": "profile_seed",
          "evidence_source": "request_snapshot"
        },
        "x-aisa-query-policy": {
          "ignore_undeclared": false,
          "request_wins": true
        },
        "x-aisa-response-source": {
          "content_hash": "sha256:e7feda1ea6c637595100e1d416075d7d989ec93350e9e7943ceef1e2cbde8989",
          "kind": "upstream_success_contract",
          "source": {
            "content_hash": "sha256:cfce9cc4c641e69ce9e5baf9e0708c3256b093e470eee8f401c5f16b1d049fa6",
            "converter": "scripts/import_upstream.py@3",
            "fetched_at": "2026-10-30T10:05:24.221611+00:00",
            "kind": "provider_openapi",
            "owner": "AIsa-team/docs",
            "policy_revision": "sha256:25fd8bf816f117887cdf7d7331937e796730a49dcd548f8f7dfa3148117fc4ef",
            "refresh_interval_hours": 24,
            "refresh_policy": "automatic",
            "review_period_days": 30,
            "url": "https://docs.kalshi.com/openapi.yaml"
          }
        },
        "x-aisa-revision": {
          "customer_pricing_ref": "e48c194af679",
          "plan_policy_version": "e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb",
          "profile_ref": "e12d28b57bb7"
        },
        "x-aisa-runtime-operation": {
          "method": "ANY",
          "operation_id": "get_kalshi_trades",
          "path": "/apis/v1/kalshi/trades"
        },
        "x-aisa-source": {
          "content_hash": "sha256:cfce9cc4c641e69ce9e5baf9e0708c3256b093e470eee8f401c5f16b1d049fa6",
          "converter": "scripts/import_upstream.py@3",
          "fetched_at": "2026-10-30T10:05:24.221611+00:00",
          "kind": "provider_openapi",
          "owner": "AIsa-team/docs",
          "policy_revision": "sha256:25fd8bf816f117887cdf7d7331937e796730a49dcd548f8f7dfa3148117fc4ef",
          "refresh_interval_hours": 24,
          "refresh_policy": "automatic",
          "review_period_days": 30,
          "url": "https://docs.kalshi.com/openapi.yaml"
        },
        "x-aisa-status": "enabled",
        "x-aisa-upstream-path": "/markets/trades",
        "x-aisa-validation": "provider"
      }
    }
  },
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "servers": [
    {
      "url": "https://api.aisa.one"
    }
  ]
}
