Skip to content
prediction-market-data-zh logo

预测市场数据

prediction-market-data-zh

通过 AIsa API 查询跨平台预测市场数据。支持 Polymarket 和 Kalshi 的市场行情、价格、订单簿、K线、持仓和交易记录。适用场景:查询预测市场赔率、选举博彩、事件概率、市场情绪、Polymarket 价格、Kalshi 价格、体育博彩赔率、钱包盈亏、跨平台市场对比。 Use when: the user needs market data, stock analysis, watchlists, or portfolio workflows.

baofeng-tech/agent-skills0installs0stars

SKILL.md

Full skill instructions

预测市场数据

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

配置

export AISA_API_KEY="your-key"

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

工作流程

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

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

快速示例

Polymarket:搜索 → 获取价格

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

# 第二步:用第一步的 token_id 获取价格
python3 scripts/​prediction_market_client.py polymarket price <token_id>

Kalshi:搜索 → 获取价格

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

# 第二步:用第一步的 market_ticker 获取价格
python3 scripts/​prediction_market_client.py kalshi price <market_ticker>

跨平台体育市场

python3 scripts/​prediction_market_client.py sports by-date nba --date 2025-04-01

ID 参考

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

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

命令参考

Polymarket

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

Kalshi

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

跨平台体育市场

python3 scripts/​prediction_market_client.py sports matching (--polymarket-slug <slug> | --kalshi-ticker <ticker>)
python3 scripts/​prediction_market_client.py sports by-date <运动类型> --date <YYYY-MM-DD>

支持:nfl、mlb、cfb、nba、nhl、cbb、pga、tennis。

理解赔率

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

安全与权限

需要: AISA_API_KEY 环境变量。

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

完整文档:AIsa API 参考。

More skills from baofeng-tech

openclaw-aisa-youtube-aisa logo
baofeng-tech/agent-skills

openclaw-aisa-youtube-aisa

Search YouTube videos, channels, and trends through the AISA YouTube SERP client. Use when: the user needs YouTube search, trend discovery, channel research, or SERP analysis.

0 0
View
youtube-search logo
baofeng-tech/agent-skills

youtube-search

YouTube Search API via AIsa unified endpoint. Search YouTube videos, channels, and playlists with a single AIsa API key — no Google API key or OAuth required. Use this skill when users want to search YouTube content. For other AIsa capabilities (LLM, financial data, Twitter, web search), see the ...

0 0
View
twitter-command-center-search-post logo
baofeng-tech/agent-skills

twitter-command-center-search-post

Searches and reads X (Twitter): profiles, timelines, mentions, followers, tweet search, trends, lists, communities, and Spaces. Publishes posts after the user completes OAuth in the browser. Use when the user asks about Twitter/X data, social listening, or posting without sharing account passwords.

0 0
View
twitter logo
baofeng-tech/agent-skills

twitter

Searches and reads X (Twitter): profiles, timelines, mentions, followers, tweet search, trends, lists, communities, and Spaces. Publishes posts, likes/unlikes tweets, and follows/unfollows users after the user completes OAuth in the browser. Use when the user asks about Twitter/X data, social lis...

0 0
View
stock-hot logo
baofeng-tech/agent-skills

stock-hot

Hot Scanner — find the most trending and high-momentum stocks and crypto right now via AIsa API. Top gainers, losers, most active by volume, crypto highlights, news catalysts, and top 5 watchlist picks. Use when the user asks about trending stocks, what's hot, market movers, or momentum plays.

0 0
View
stock-watchlist logo
baofeng-tech/agent-skills

stock-watchlist

Manage a stock/crypto watchlist with price target and stop-loss alerts via AIsa API. Add, remove, list, and check tickers with live price alerts. Use when the user wants to track stocks, set price alerts, manage a watchlist, or check triggered alerts.

0 0
View
stock-analysis logo
baofeng-tech/agent-skills

stock-analysis

Analyze stocks and cryptocurrencies with 8-dimension scoring via AIsa API. Provides BUY/HOLD/SELL signals with confidence levels, entry/target/stop prices, and risk flags. Supports single or multi-ticker analysis with optional fast mode and JSON output. Use when the user asks to analyze a stock, ...

0 0
View
scholar-search logo
baofeng-tech/agent-skills

scholar-search

Search academic papers and scholarly articles via AIsa Scholar endpoint. Supports year range filtering for targeted research. Use when: the user needs web search, research, source discovery, or content extraction.

0 0
View
stock-rumors logo
baofeng-tech/agent-skills

stock-rumors

Rumor Scanner — find early signals including M&A rumors, insider activity, analyst upgrades/downgrades, social whispers, and SEC/regulatory activity via AIsa API. Ranked by impact score. Use when the user asks about rumors, insider trading, M&A activity, analyst changes, or early market signals.

0 0
View
openclaw-media-gen logo
baofeng-tech/agent-skills

openclaw-media-gen

Generate images and videos with AIsa. Four image models (Google Gemini 3 Pro Image, Alibaba Wan 2.7 image + image-pro, ByteDance Seedream) and four Wan video variants (wan2.6/2.7 × t2v/i2v). One API key; the client routes each model to the correct endpoint automatically. Use when: the user needs ...

0 0
View
marketpulse logo
baofeng-tech/agent-skills

marketpulse

Query real-time and historical equity market data—prices, news, financial statements, metrics, analyst estimates, insider and institutional activity, SEC filings, earnings press releases, segmented revenues, stock screening, and macro interest rates. Use when you need broad public-market research...

0 0
View
aisa-twitter-command-center logo
baofeng-tech/agent-skills

aisa-twitter-command-center

Search X/Twitter profiles, tweets, trends, lists, communities, and Spaces through the AIsa relay, then support approved posting workflows with OAuth. Use when the user asks for Twitter research, monitoring, or posting without sharing passwords.

0 0
View

Popular AI tools

Kaiber logo
Video

Kaiber

Generate, edit, and beat-sync AI video with leading models in one workspace.

Paid
View
Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View

Transform Your Design with AI Designer by ImgCreator.ai

Freemium
View
Akool AI logo
Content & writing

Akool AI

Revolutionizing Video Production with AI-Powered Creativity

Paid
View

Extend an image past the frame and let AI fill the new aspect ratio.

Freemium
View
StarByFace logo
Security

StarByFace

Discover your celebrity doppelgänger with StarByFace!

Free
View
C

ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.

Freemium
View
Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View