数据分析

预测市场数据

试用

通过 AIsa API 查询跨平台预测市场数据。支持 Polymarket 和 Kalshi 的市场行情、价格、订单簿、K线、持仓和交易记录。适用场景:查询预测市场赔率、选举博彩、事件概率、市场情绪、Polymarket 价格、Kalshi 价格、体育博彩赔率、钱包盈亏、跨平台市场对比。

它能做什么

通过 AIsa API 查询 Polymarket 和 Kalshi 预测市场。

技能文档

预测市场数据

通过 AIsa API 查询 PolymarketKalshi 预测市场。

配置

export AISA_API_KEY="your-key"

aisa.one 获取 Key($0.01/次查询,按量付费)。

工作流程

查询预测市场数据的步骤:

  1. 搜索市场获取 ID(必须从这一步开始)
  2. 从返回结果中提取 IDtoken_idcondition_idmarket_ticker
  3. 用 ID 查询详情(价格、订单簿、K线等)

快速示例

Polymarket:搜索 → 获取价格

# 第一步:搜索市场,提取 token_id(side_a.id 或 side_b.id)
python3 {baseDir}/scripts/prediction_market_client.py polymarket markets --search "election" --status open --limit 5

# 第二步:用第一步的 token_id 获取价格
python3 {baseDir}/scripts/prediction_market_client.py polymarket price 

Kalshi:搜索 → 获取价格

# 第一步:搜索市场,提取 market_ticker
python3 {baseDir}/scripts/prediction_market_client.py kalshi markets --search "fed rate" --status open --limit 5

# 第二步:用第一步的 market_ticker 获取价格
python3 {baseDir}/scripts/prediction_market_client.py kalshi price 

跨平台体育市场

python3 {baseDir}/scripts/prediction_market_client.py sports by-date nba --date 2025-04-01

ID 参考

大多数命令需要从 markets 返回中获取 ID,务必先搜索。

平台ID 字段获取位置
Polymarkettoken_idmarkets 输出中的 side_a.idside_b.id
Polymarketcondition_idmarkets 输出中的 condition_id
Kalshimarket_tickermarkets 输出中的 market_ticker

命令参考

Polymarket

python3 {baseDir}/scripts/prediction_market_client.py polymarket markets [--search <关键词>] [--status open|closed] [--min-volume <数值>] [--limit <数值>]
python3 {baseDir}/scripts/prediction_market_client.py polymarket price  [--at-time ]
python3 {baseDir}/scripts/prediction_market_client.py polymarket activity --user <钱包地址> [--market-slug ] [--limit <数值>]
python3 {baseDir}/scripts/prediction_market_client.py polymarket orders [--market-slug ] [--token-id ] [--user <钱包地址>] [--limit <数值>]
python3 {baseDir}/scripts/prediction_market_client.py polymarket orderbooks --token-id  [--start <毫秒>] [--end <毫秒>] [--limit <数值>]
python3 {baseDir}/scripts/prediction_market_client.py polymarket candlesticks  --start  --end  [--interval 1|60|1440]
python3 {baseDir}/scripts/prediction_market_client.py polymarket positions <钱包地址> [--limit <数值>]
python3 {baseDir}/scripts/prediction_market_client.py polymarket wallet (--eoa <地址> | --proxy <地址>) [--with-metrics]
python3 {baseDir}/scripts/prediction_market_client.py polymarket pnl <钱包地址> --granularity 

Kalshi

python3 {baseDir}/scripts/prediction_market_client.py kalshi markets [--search <关键词>] [--status open|closed] [--min-volume <数值>] [--limit <数值>]
python3 {baseDir}/scripts/prediction_market_client.py kalshi price  [--at-time ]
python3 {baseDir}/scripts/prediction_market_client.py kalshi trades [--ticker ] [--start ] [--end ] [--limit <数值>]
python3 {baseDir}/scripts/prediction_market_client.py kalshi orderbooks --ticker  [--start <毫秒>] [--end <毫秒>] [--limit <数值>]

跨平台体育市场

python3 {baseDir}/scripts/prediction_market_client.py sports matching (--polymarket-slug  | --kalshi-ticker )
python3 {baseDir}/scripts/prediction_market_client.py sports by-date <运动类型> --date 

支持:nflmlbcfbnbanhlcbbpgatennis

理解赔率

价格为小数:0.65 = 65% 隐含概率。"Yes" 价格 = 事件发生的概率。交易量越高 = 流动性越强。

安全与权限

需要: AISA_API_KEY 环境变量。

所有操作均为只读,通过 HTTPS GET 请求 api.aisa.one。不执行交易、不连接钱包、除 API Key 外不发送个人数据。每个响应包含 usage.costusage.credits_remaining

完整文档:AIsa API 参考

相关技能

从 AdMapix API 拉取广告创意、应用、榜单和收入预估等数据,原样返回结构化 JSON。

作者 fly0pants4.3k 次安装296 星标

把自然语言描述转为结构化 JSON,并由 mcp-diagram-generator MCP 服务生成 Draw.io、Mermaid 或 Excalidraw 图表文件。

作者 nssa.io1.0k 次安装47 星标

从 git 历史构建人与文件的归属关系图,识别敏感代码的巴士因子风险。

作者 OpenAI27.5k 星标

为 Codex 插件生成目录结构、必需的清单文件以及 marketplace.json 条目。

作者 OpenAI27.5k 星标

Deploy web projects to Netlify using the Netlify CLI (`npx netlify`). Use when the user asks to deploy, host, publish, or link a site/repo on Netlify, including preview and production deploys.

作者 OpenAI27.5k 星标

sentry

官方

Use when the user asks to inspect Sentry issues or events, summarize recent production errors, or pull basic Sentry health data via the Sentry CLI; perform read-only queries using the `sentry` command

作者 OpenAI27.5k 星标

bibaofeng 的更多技能

浏览全部技能

一句话拿到任意话题近 30 天的多源研究简报,带排名、聚类和引用链接。

作者 bibaofeng19 次安装

Query real-time and historical financial data across equities and crypto—prices, market moves, metrics, and trends for analysis, alerts, and reporting. Use w...

作者 bibaofeng34 次安装

Multi-source search engine powered by AIsa API. Combines Tavily web search, Scholar academic search, Smart hybrid search, and Perplexity deep research — all...

作者 bibaofeng19 次安装

Reads and searches X (Twitter) data including profiles, timelines, mentions, followers, tweet search, trends, lists, communities, and Spaces. Also supports p...

作者 bibaofeng13 次安装

Generate images and videos with AIsa. Supports four image models (Google Gemini 3 Pro Image, Alibaba Wan 2.7 image + image-pro, ByteDance Seedream) and four...

作者 bibaofeng12 次安装

Unified SaaS integration gateway via api.aisa.one (AISA gateway, v3.1): manage OAuth auth for third-party SaaS apps (Gmail/Slack/GitHub/Notion etc.), tool ex...

作者 bibaofeng12 次安装