预测市场 API

API ID 14855

从Polymarket和Kalshi的官方公共API读取预测市场赔率,使用一个平面架构。每个市场一行:问题,YES/NO价格,隐含概率,成交量,24小时成交量,流动性,未平仓合约(Kalshi),结束时间,状态

API 文档

端点

请求
预测市场API - Kalshi和Polymarket赔率 MCP 每个请求返回最多100个结果以JSON格式
Endpoint ID: 38671
GET https://zylalabs.com/api/14855/prediction+markets+api/38671/prediction+markets+api
输入参数

预测市场 — 端点功能

对象 描述
query 可选 Words to search for in market and event titles, for example bitcoin, election, fed rates. Leave empty to get the top markets by volume.
venues 可选 Which prediction markets to read. Both are official public APIs without login. Several values: comma separated.
status 可选 Open = markets that can still be traded, closed = finished or settled markets, all = both.
category 可选 Optional. Keep only markets whose category or tag contains this text, for example Politics, Crypto, Economics, Sports. Leave empty for all categories.
minVolume 可选 Skip markets with a total traded volume below this value in USD. 0 keeps everything.
maxResults 可选 Maximum number of market rows to output in total, highest volume first. Maximum 2000.
matchAcrossVenues 可选 When both venues are selected, pair Kalshi and Polymarket markets that ask the same question (by title similarity) and add the other venue's price plus priceGapPts, the YES probability difference in percentage points.
minPriceMovePts 可选 Only-new mode: a known market is output again only if its YES probability changed by at least this many percentage points since the last run with the same Monitor ID.

剩余免费测试请求:3 / 3。


输入参数

query
venues
status
category
minVolume
maxResults
matchAcrossVenues
minPriceMovePts
API 示例响应
JSON
{
    "count": 5,
    "items": [
        {
            "venue": "polymarket",
            "marketId": "665374",
            "eventId": "73130",
            "eventTitle": "Will the U.S. invade Iran before 2027?",
            "question": "Will the U.S. invade Iran before 2027?",
            "outcomes": [
                "Yes",
                "No"
            ],
            "yesPrice": 0.075,
            "noPrice": 0.925,
            "volume": 79865019.0853,
            "volume24h": 235945.3295,
            "liquidity": 318190.7688,
            "openInterest": null,
            "closeTime": "2027-01-01T04:59:00Z",
            "status": "open",
            "category": "Military Strikes",
            "url": "https://polymarket.com/event/will-the-us-invade-iran-before-2027",
            "impliedProbabilityPct": 7.5,
            "fetchedAt": "2026-11-12T06:22:37Z"
        },
        {
            "venue": "polymarket",
            "marketId": "561251",
            "eventId": "31552",
            "eventTitle": "Presidential Election Winner 2028",
            "question": "Will LeBron James win the 2028 US Presidential Election?",
            "outcomes": [
                "Yes",
                "No"
            ],
            "yesPrice": 0.0005,
            "noPrice": 0.9995,
            "volume": 55187134.9687,
            "volume24h": 366.44,
            "liquidity": 2177922.8367,
            "openInterest": null,
            "closeTime": "2028-11-08T04:59:00Z",
            "status": "open",
            "category": "President",
            "url": "https://polymarket.com/event/presidential-election-winner-2028",
            "impliedProbabilityPct": 0.05,
            "fetchedAt": "2026-11-12T06:22:37Z"
        },
        {
            "venue": "polymarket",
            "marketId": "559687",
            "eventId": "30829",
            "eventTitle": "Democratic Presidential Nominee 2028",
            "question": "Will Oprah Winfrey win the 2028 Democratic presidential nomination?",
            "outcomes": [
                "Yes",
                "No"
            ],
            "yesPrice": 0.0005,
            "noPrice": 0.9995,
            "volume": 54667909.1858,
            "volume24h": 312,
            "liquidity": 2736274.107,
            "openInterest": null,
            "closeTime": "2028-11-08T04:59:00Z",
            "status": "open",
            "category": "United States",
            "url": "https://polymarket.com/event/democratic-presidential-nominee-2028",
            "impliedProbabilityPct": 0.05,
            "fetchedAt": "2026-11-12T06:22:37Z"
        },
        {
            "venue": "polymarket",
            "marketId": "559679",
            "eventId": "30829",
            "eventTitle": "Democratic Presidential Nominee 2028",
            "question": "Will Bernie Sanders win the 2028 Democratic presidential nomination?",
            "outcomes": [
                "Yes",
                "No"
            ],
            "yesPrice": 0.0025,
            "noPrice": 0.9975,
            "volume": 52983452.2956,
            "volume24h": 4410.063,
            "liquidity": 224784.2866,
            "openInterest": null,
            "closeTime": "2028-11-08T04:59:00Z",
            "status": "open",
            "category": "United States",
            "url": "https://polymarket.com/event/democratic-presidential-nominee-2028",
            "matchedVenue": "kalshi",
            "matchedMarketId": "KXPRESNOMD-28-BS",
            "matchedQuestion": "Will Bernie Sanders be the Democratic Presidential nominee in 2028?",
            "matchedYesPrice": 0.005,
            "matchedUrl": "https://kalshi.com/markets/kxpresnomd-28",
            "matchScore": 0.857,
            "priceGapPts": 0.25,
            "impliedProbabilityPct": 0.25,
            "fetchedAt": "2026-11-12T06:22:37Z"
        },
        {
            "venue": "polymarket",
            "marketId": "559684",
            "eventId": "30829",
            "eventTitle": "Democratic Presidential Nominee 2028",
            "question": "Will Chelsea Clinton win the 2028 Democratic presidential nomination?",
            "outcomes": [
                "Yes",
                "No"
            ],
            "yesPrice": 0.0075,
            "noPrice": 0.9925,
            "volume": 51133396.1102,
            "volume24h": 257.4,
            "liquidity": 177824.5623,
            "openInterest": null,
            "closeTime": "2028-11-08T04:59:00Z",
            "status": "open",
            "category": "United States",
            "url": "https://polymarket.com/event/democratic-presidential-nominee-2028",
            "impliedProbabilityPct": 0.75,
            "fetchedAt": "2026-11-12T06:22:37Z"
        }
    ]
}
预测市场 — 代码片段

curl --location --request GET 'https://zylalabs.com/api/14855/prediction+markets+api/38671/prediction+markets+api?venues=polymarket,kalshi&status=open&minVolume=OptionalmaxResults=5&matchAcrossVenues=true&minPriceMovePts=5' --header 'Authorization: Bearer YOUR_API_KEY' 


    

API 访问密钥和身份验证

注册后,每个开发者都会被分配一个个人 API 访问密钥,这是一个唯一的字母和数字组合,用于访问我们的 API 端点。要使用 预测市场 API 进行身份验证,只需在 Authorization 标头中包含您的 bearer token。

标头
标头 描述
授权 必需 应为 Bearer access_key. 订阅后,请查看上方的"您的 API 访问密钥"。

无长期承诺。随时升级、降级或取消。

起价
$10,000/年


  • 自定义数量
  • 自定义速率限制
  • 专业客户支持
  • 实时 API 监控

概览

从Polymarket和Kalshi的官方公共API中以统一的模式读取预测市场赔率 每个市场一行:问题 YES/NO价格 隐含概率 交易量 24小时交易量 流动性 未平仓合约(Kalshi) 关闭时间 状态

预测市场 API FAQs

从Polymarket和Kalshi的官方公共API中读取预测市场赔率,以一个扁平模式显示。每个市场一行:问题 YES/NO价格 隐含概率 交易量 24小时交易量 流动性 未平仓合约(Kalshi) 关闭时间 状态

每个请求最多返回100个结果 使用maxResults参数设置

每个请求从公共源收集实时数据 相同的请求可以从缓存中服务长达6小时

列表参数接受多个用逗号分隔的值,例如:伦敦,巴黎

该端点接受以下查询参数,均为可选:query、venues、status、category、minVolume、maxResults、matchAcrossVenues、minPriceMovePts。查询:在市场和事件标题中搜索的单词,例如比特币、选举、联邦利率。留空以获取按交易量排名的顶级市场。场所:要读取的预测市场。两者都是无须登录的官方公共API。多个值:以逗号分隔。状态:开放=仍可交易的市场,关闭=已完成或结算的市场,全部=两者皆可。类别:可选。仅保留类别或标签包含此文本的市场,例如政治、加密货币、经济、体育。留空表示所有类别。

一般常见问题

Zyla API Hub 就像一个大型 API 商店,您可以在一个地方找到数千个 API。我们还为所有 API 提供专门支持和实时监控。注册后,您可以选择要使用的 API。请记住,每个 API 都需要自己的订阅。但如果您订阅多个 API,您将为所有这些 API 使用相同的密钥,使事情变得更简单。
价格以 USD(美元)、EUR(欧元)、CAD(加元)、AUD(澳元)和 GBP(英镑)列出。我们接受所有主要的借记卡和信用卡。我们的支付系统使用最新的安全技术,由 Stripe 提供支持,Stripe 是世界上最可靠的支付公司之一。如果您在使用卡片付款时遇到任何问题,请通过 [email protected]

此外,如果您已经以这些货币中的任何一种(USD、EUR、CAD、AUD、GBP)拥有有效订阅,该货币将保留用于后续订阅。只要您没有任何有效订阅,您可以随时更改货币。
定价页面上显示的本地货币基于您 IP 地址的国家/地区,仅供参考。实际价格以 USD(美元)为单位。当您付款时,即使您在我们的网站上看到以本地货币显示的等值金额,您的卡片对账单上也会以美元显示费用。这意味着您不能直接使用本地货币付款。
有时,银行可能会因其欺诈保护设置而拒绝收费。我们建议您首先联系您的银行,检查他们是否阻止了我们的收费。此外,您可以访问账单门户并更改关联的卡片以进行付款。如果这些方法不起作用并且您需要进一步帮助,请通过 [email protected]
价格由月度或年度订阅决定,具体取决于所选计划。
API 调用根据成功请求从您的计划中扣除。每个计划都包含您每月可以进行的特定数量的调用。只有成功的调用(由状态 200 响应指示)才会计入您的总数。这确保失败或不完整的请求不会影响您的月度配额。
Zyla API Hub 采用月度订阅系统。您的计费周期将从您购买付费计划的那一天开始,并在下个月的同一日期续订。因此,如果您想避免未来的费用,请提前取消订阅。
要升级您当前的订阅计划,只需转到 API 的定价页面并选择您要升级到的计划。升级将立即生效,让您立即享受新计划的功能。请注意,您之前计划中的任何剩余调用都不会转移到新计划,因此在升级时请注意这一点。您将被收取新计划的全部金额。
要检查您本月剩余多少 API 调用,请参考响应标头中的 "X-Zyla-API-Calls-Monthly-Remaining" 字段。例如,如果您的计划允许每月 1,000 个请求,而您已使用 100 个,则响应标头中的此字段将显示 900 个剩余调用。
要查看您的计划允许的最大 API 请求数,请检查 "X-Zyla-RateLimit-Limit" 响应标头。例如,如果您的计划包括每月 1,000 个请求,此标头将显示 1,000。
"X-Zyla-RateLimit-Reset" 标头显示您的速率限制重置之前的秒数。这告诉您何时您的请求计数将重新开始。例如,如果它显示 3,600,则意味着还有 3,600 秒直到限制重置。
是的,您可以随时通过访问您的账户并在账单页面上选择取消选项来取消您的计划。请注意,升级、降级和取消会立即生效。此外,取消后,您将不再有权访问该服务,即使您的配额中还有剩余调用。
为了让您有机会在没有任何承诺的情况下体验我们的 API,我们提供 7 天免费试用,允许您免费进行最多 50 次 API 调用。此试用只能使用一次,因此我们建议将其应用于您最感兴趣的 API。虽然我们的大多数 API 都提供免费试用,但有些可能不提供。试用在 7 天后或您进行了 50 次请求后结束,以先发生者为准。如果您在试用期间达到 50 次请求限制,您需要"开始您的付费计划"以继续发出请求。您可以在个人资料中的订阅 -> 选择您订阅的 API -> 定价标签下找到"开始您的付费计划"按钮。或者,如果您在第 7 天之前不取消订阅,您的免费试用将结束,您的计划将自动计费,授予您访问计划中指定的所有 API 调用的权限。请记住这一点以避免不必要的费用。
7 天后,您将被收取试用期间订阅的计划的全额费用。因此,在试用期结束前取消很重要。因忘记及时取消而提出的退款请求不被接受。
当您订阅 API 免费试用时,您可以进行最多 50 次 API 调用。如果您希望超出此限制进行额外的 API 调用,API 将提示您执行"开始您的付费计划"。您可以在个人资料中的订阅 -> 选择您订阅的 API -> 定价标签下找到"开始您的付费计划"按钮。
付款订单在每月 20 日至 30 日之间处理。如果您在 20 日之前提交请求,您的付款将在此时间范围内处理。
您可以通过我们的聊天渠道联系我们以获得即时帮助。我们始终在线,时间为上午 8 点至下午 5 点(EST)。如果您在该时间之后联系我们,我们将尽快回复您。此外,您可以通过 [email protected]

相关 API