prediction-market-data
Cross-platform prediction market data via AIsa API. Query Polymarket and Kalshi markets, prices, orderbooks, candlesticks, positions, and trades. Use when user asks about: prediction market odds, election betting, event probabilities, market sentiment, Polymarket prices, Kalshi prices, sports betting odds, wallet PnL, or cross-platform market comparison.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/bibaofeng/prediction-market-dataPrediction Market Data
Query Polymarket and Kalshi prediction markets via AIsa API.
Setup
export AISA_API_KEY="your-key"
Get a key at aisa.one ($0.01/query, pay-as-you-go).
Workflow
Querying prediction market data involves these steps:
- Search markets to find IDs (always start here)
- Extract the ID from the response (
token_id,condition_id, ormarket_ticker) - Query details using the extracted ID (price, orderbook, candlesticks, etc.)
Quick Examples
Polymarket: search → get price
# Step 1: Search — find markets and extract token_id (side_a.id or side_b.id)
python3 {baseDir}/scripts/prediction_market_client.py polymarket markets --search "election" --status open --limit 5
# Step 2: Get price using token_id from Step 1
python3 {baseDir}/scripts/prediction_market_client.py polymarket price <token_id>
Kalshi: search → get price
# Step 1: Search — find markets and extract market_ticker
python3 {baseDir}/scripts/prediction_market_client.py kalshi markets --search "fed rate" --status open --limit 5
# Step 2: Get price using market_ticker from Step 1
python3 {baseDir}/scripts/prediction_market_client.py kalshi price <market_ticker>
Cross-platform sports
python3 {baseDir}/scripts/prediction_market_client.py sports by-date nba --date 2025-04-01
ID Reference
Most commands need an ID from the markets response. Always search first.
| Platform | ID Field | Where to Find |
|---|---|---|
| Polymarket | token_id | side_a.id or side_b.id in markets output |
| Polymarket | condition_id | condition_id in markets output |
| Kalshi | market_ticker | market_ticker in markets output |
Commands
Polymarket
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-bibaofeng-prediction-market-data": {
"enabled": true,
"auto_update": true
}
}
}Related Skills
prediction-market-data-zh
通过 AIsa API 查询跨平台预测市场数据。支持 Polymarket 和 Kalshi 的市场行情、价格、订单簿、K线、持仓和交易记录。适用场景:查询预测市场赔率、选举博彩、事件概率、市场情绪、Polymarket 价格、Kalshi 价格、体育博彩赔率、钱包盈亏、跨平台市场对比。
smart-search
Combine web and academic search into one smart AISA search mode. Use when: the user needs a balanced research pass that mixes public web coverage with academic depth.
Aisa Twitter
Skill by bibaofeng
media-gen
Generate AI images or videos through AIsa. Use when: the user needs creative generation, asset drafts, or media workflows. Supports image and video generation.
stock-portfolio-zh
通过 AISA 的实时价格与盈亏跟踪来创建和管理股票加密投资组合。触发条件:当用户想新增持仓、查看组合表现、重命名组合或审查当前盈亏时使用。