Sand AISand AI MAGI-2MAGI-2 hiện đã có trên SandBase: video 1080p với âm thanh gốcDùng thử ngay

Kalshi Get Kalshi Markets

Tài liệu API
https://api.sandbase.ai/v1/api/kalshi/markets

Get Kalshi Markets from Kalshi. Returns the official Kalshi API response unchanged.

Giá
$0.02USD / lượt gọi
Phương thức
POST
Phản hồi
JSON
Tham số
0 bắt buộc · 15 tùy chọn

Phòng thử nghiệm

Đầu vào
Pagination cursor. Use the cursor value returned from the previous response to get the next page of results. Leave empty for the first page.
Event ticker to filter by. Only a single event ticker is supported.
01000
Number of results per page. Defaults to 100. Maximum value is 1000. Phạm vi: 0 đến 1000.
Filter items that close before this Unix timestamp
Filter items that created before this Unix timestamp
Filter items that settled before this Unix timestamp
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.
Filter items that close after this Unix timestamp
Filter items that created after this Unix timestamp
Filter items that settled after this Unix timestamp
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.
Filter by multivariate events (combos). 'only' returns only multivariate events, 'exclude' excludes multivariate events.
Filter by series ticker
Filter by market status. Leave empty to return markets with any status.
Filter by specific market tickers. Comma-separated list of market tickers to retrieve.
Đầu raSẵn sàng

Đầu ra của bạn sẽ xuất hiện ở đây

Hoàn tất đầu vào, rồi nhấp Run.

README API

Kalshi Get Kalshi Markets API

Returns a page of Kalshi prediction markets with their ticker, title, status, open and close times, and current bid, ask and last prices in dollars. All parameters are optional. With no input it returns the first page of markets of any status.

Use cases

  • List all open markets for one event_ticker to see every contract in that event.
  • Pull markets that close between min_close_ts and max_close_ts to build a calendar of upcoming resolutions.
  • Use mve_filter set to exclude to skip combo markets and keep only single-outcome markets.
  • Look up several known markets at once by passing a comma-separated tickers list.

Request

curl -X POST "https://api.sandbase.ai/v1/api/kalshi/markets" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
cursorstringNoPagination cursor. Use the cursor value returned from the previous response to get the next page of results. Leave empty for the first page.
event_tickerstringNoEvent ticker to filter by. Only a single event ticker is supported.
limitintegerNoNumber of results per page. Defaults to 100. Maximum value is 1000.
max_close_tsintegerNoFilter items that close before this Unix timestamp
max_created_tsintegerNoFilter items that created before this Unix timestamp
max_settled_tsintegerNoFilter items that settled before this Unix timestamp
max_updated_tsintegerNoReturn 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, wh
min_close_tsintegerNoFilter items that close after this Unix timestamp
min_created_tsintegerNoFilter items that created after this Unix timestamp
min_settled_tsintegerNoFilter items that settled after this Unix timestamp
min_updated_tsintegerNoReturn 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, whic
mve_filterstringNoFilter by multivariate events (combos). 'only' returns only multivariate events, 'exclude' excludes multivariate events.
series_tickerstringNoFilter by series ticker
statusstringNoFilter by market status. Leave empty to return markets with any status.
tickersstringNoFilter by specific market tickers. Comma-separated list of market tickers to retrieve.

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "cursor": "CgwIwJ2m1wYQwJOY2wESMktYTVZFQ1JPU1NDQVRFR09SWS1TMjAyNkNUMkxZV0xYVVhIQVJBT0YtS0RG…",
  "markets": [
    {
      "can_close_early": true,
      "close_time": "2026-11-10T20:00:00Z",
      "created_time": "2026-11-03T07:35:29.872509Z",
      "custom_strike": {
        "Associated Events": "KXALLSVENSKANGAME-26NOV03SIRHAL,KXBUNDESLIGAGAME-26NOV07BVBSVE,KXBUNDESLIGAGAME-…",
        "Associated Market Sides": "yes,yes,yes,yes,yes,yes,yes,yes,yes,yes,yes,yes,yes,yes,yes,yes,yes,yes,yes,yes,…",
        "Associated Markets": "KXALLSVENSKANGAME-26NOV03SIRHAL-SIR,KXBUNDESLIGAGAME-26NOV07BVBSVE-BVB,KXBUNDESL…",
        "Multivariate Event Ticker": "KXMVECROSSCATEGORY-S2026JL77JHDP6ANNFK7D"
      },
      "event_ticker": "KXMVECROSSCATEGORY-S2026JL77JHDP6ANNFK7D",
      "exchange_index": 1,
      "expected_expiration_time": "2026-11-09T02:00:00Z",
      "expiration_time": "2026-11-10T20:00:00Z",
      "expiration_value": "",
      "is_provisional": true,
      "last_price_dollars": "0.0000",
      "latest_expiration_time": "2026-11-10T20:00:00Z"
    }
  ]
}

Response fields

FieldMeaning
cursorPagination token for the next page of markets. Send it back as cursor in the next request.
markets[].tickerUnique ticker of the market. Use it to look up a single market, its order book, or its trades.
markets[].event_tickerTicker of the event the market belongs to. Use it as the event_ticker filter.
markets[].title / markets[].no_sub_titleText describing the market and its outcome. For combo markets these list each leg, such as yes Sirius,yes Dortmund.
markets[].statusCurrent state of the market, for example active.
markets[].market_typeKind of market. The sample shows binary.
markets[].open_time / markets[].close_time / markets[].expiration_timeISO 8601 UTC timestamps for when trading opens, when it closes, and when the market expires.
markets[].yes_ask_dollars / markets[].no_ask_dollars / markets[].no_bid_dollars / markets[].last_price_dollarsPrices in dollars, given as strings with four decimals. They cover the yes ask, no ask, no bid, and the last traded price.
markets[].volume_fp / markets[].volume_24h_fp / markets[].open_interest_fpTrading volume, 24-hour volume, and open interest, given as decimal strings.
markets[].mve_selected_legs[]For combo markets, the legs that make up the market. Each leg has event_ticker, market_ticker and side.
markets[].resultSettlement result of the market. It is an empty string in the sample, where the markets have not settled.

Notes

  • Page through results by sending the returned cursor value as cursor. Set limit up to 1000 (default 100).
  • The *_ts filters take Unix timestamps in seconds. Response times are ISO 8601 strings.
  • min_updated_ts and max_updated_ts cannot be combined with most other filters. See the parameter descriptions for the allowed combinations.
  • To see live bids and asks for one market, call Kalshi Get Kalshi Market OrderBook. To see executed trades, call Kalshi Get Kalshi Trades.

Pricing

$0.02 per successful call. Failed calls are not charged.

Khám phá thêm

APIs liên quan

Tất cả APIs
APIGiáPhản hồi
Kalshi$0.02 mỗi lần gọiJSON
Kalshi$0.02 mỗi lần gọiJSON
Kalshi$0.02 mỗi lần gọiJSON
Kalshi$0.02 mỗi lần gọiJSON

Câu hỏi

FAQ

Làm thế nào để dùng API Kalshi Get Kalshi Markets?

Gửi yêu cầu POST đến https://api.sandbase.ai/v1/api/kalshi/markets với khóa API SandBase của bạn trong tiêu đề Authorization (Bearer) và các tham số trong phần thân JSON. Bạn cũng có thể thử trực tiếp trong Playground trên trang này mà không cần viết code.

API Kalshi Get Kalshi Markets có giá bao nhiêu?

$0.02 mỗi lần gọi, được tính từ số dư SandBase của bạn. Bạn chỉ bị tính phí cho các lần gọi bạn thực hiện; không có gói đăng ký.

API Kalshi Get Kalshi Markets chấp nhận những tham số nào?

Không có tham số bắt buộc. Tùy chọn: cursor (string), event_ticker (string), limit (integer), max_close_ts (integer), max_created_ts (integer) và max_settled_ts (integer) và 9 mục khác. Bảng Parameters và Playground trên trang này liệt kê mọi trường.

API Kalshi Get Kalshi Markets trả về gì?

Phản hồi JSON được trả về trong cùng một yêu cầu HTTP (đồng bộ). README trên trang này có ví dụ phản hồi.

Tôi có cần tài khoản nhà phát triển hoặc API key của Kalshi không?

Không. Kalshi Get Kalshi Markets chạy thông qua SandBase, nên chỉ cần một API key SandBase là đủ cho endpoint này và mọi API cùng model khác trong danh mục. Bạn không cần đăng ký riêng để có quyền truy cập API của Kalshi.