ワンクリックで
prediction-market-arbitrage
Find and analyze arbitrage opportunities across prediction markets like Polymarket and Kalshi.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Find and analyze arbitrage opportunities across prediction markets like Polymarket and Kalshi.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
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.
Query real-time and historical cryptocurrency market data via CoinGecko — simple prices, coin details, historical charts, OHLC candles, token prices by contract address, market-cap rankings, exchange data and tickers, categories, trending searches, and crypto news. Use for crypto research, price tracking, on-chain token lookup, portfolio analysis, and market-cap screening.
Query real-time and historical financial data across equities and crypto—prices, market moves, metrics, and trends for analysis, alerts, and reporting. Use when: the user needs market data, stock analysis, watchlists, or portfolio workflows.
Query real-time and historical financial data for equities—prices, news, financial statements, metrics, analyst estimates, insider and institutional activity, SEC filings, earnings press releases, segmented revenues, stock screening, and macro interest rates.
Prediction markets data - Polymarket, Kalshi markets, prices, positions, and trades
Analyze read-only dividend metrics for stocks via AIsa API. Provides yield, payout ratio, growth CAGR, safety score, income rating, and Dividend Aristocrat/King status without placing trades, making purchases, or managing brokerage accounts. Use when: the user needs market data, stock analysis, dividend research, or read-only financial data workflows.
| name | prediction-market-arbitrage |
| description | Find and analyze arbitrage opportunities across prediction markets like Polymarket and Kalshi. |
| license | MIT |
| compatibility | Works with any agentskills.io-compatible harness — Claude Code, Claude, OpenCode, Cursor, Codex, Gemini CLI, OpenClaw, Hermes, Goose, and others. Requires Python 3, a POSIX shell, and AISA_API_KEY. |
| metadata | {"aisa":{"emoji":"⚖️","homepage":"https://aisa.one","requires":{"bins":["curl","python3"],"env":["AISA_API_KEY"]},"primaryEnv":"AISA_API_KEY","harnesses":["claude-code","claude","opencode","cursor","codex","gemini-cli","openclaw","hermes","goose"]}} |
Find arbitrage opportunities across prediction markets for autonomous agents. Powered by AIsa.
One API key. Match events across Polymarket and Kalshi to detect price discrepancies and potential risk-free profit opportunities.
Works with any agentskills.io-compatible harness, including:
Requires Python 3, a POSIX shell, and AISA_API_KEY (get one at
aisa.one).
"Find the current price difference for the US election market between Polymarket and Kalshi."
"Find the Kalshi equivalent for this Polymarket sports event."
"Monitor the price spread for the upcoming NBA game across all supported prediction markets."
"Check the orderbook depth on both platforms to see if the arbitrage opportunity is actionable."
export AISA_API_KEY="your-key"
Most endpoints require an ID from the /markets or /matching-markets responses. Always query markets first, then pass the relevant ID to downstream endpoints.
token_id: Query /polymarket/markets, find side_a.id or side_b.id in the response, then use that value in the market price and orderbook endpoints.market_ticker: Query /kalshi/markets, find market_ticker in the response, then use that value in the market price and orderbook endpoints.The first step in arbitrage is finding the same event on multiple platforms.
# Find equivalent markets across platforms using a Polymarket slug
curl -X GET "https://api.aisa.one/apis/v1/matching-markets/sports?polymarket_market_slug={polymarket_market_slug}" \
-H "Authorization: Bearer $AISA_API_KEY"
# Or find equivalent markets using a Kalshi event ticker
curl -X GET "https://api.aisa.one/apis/v1/matching-markets/sports?kalshi_event_ticker={kalshi_event_ticker}" \
-H "Authorization: Bearer $AISA_API_KEY"
# Find all matching sports markets across platforms for a specific date
curl -X GET "https://api.aisa.one/apis/v1/matching-markets/sports/{sport}?date={date}" \
-H "Authorization: Bearer $AISA_API_KEY"
Once matching markets are found, fetch the current prices on both platforms to calculate the spread.
# token_id comes from side_a.id or side_b.id in /polymarket/markets response
curl -X GET "https://api.aisa.one/apis/v1/polymarket/market-price/{token_id}" \
-H "Authorization: Bearer $AISA_API_KEY"
# market_ticker comes from /kalshi/markets response
curl -X GET "https://api.aisa.one/apis/v1/kalshi/market-price/{market_ticker}" \
-H "Authorization: Bearer $AISA_API_KEY"
A price discrepancy is only actionable if there is enough liquidity to execute the trades.
# token_id comes from side_a.id or side_b.id in /polymarket/markets response
curl -X GET "https://api.aisa.one/apis/v1/polymarket/orderbooks?token_id={token_id}" \
-H "Authorization: Bearer $AISA_API_KEY"
# ticker is the same value as market_ticker from /kalshi/markets response
curl -X GET "https://api.aisa.one/apis/v1/kalshi/orderbooks?ticker={ticker}" \
-H "Authorization: Bearer $AISA_API_KEY"
| Endpoint | Description | Key Params |
|---|---|---|
/matching-markets/sports | Find matching sports markets | polymarket_market_slug or kalshi_event_ticker |
/matching-markets/sports/<sport> | Find sports markets by date | sport, date |
| Endpoint | Description | Key Params |
|---|---|---|
/polymarket/market-price/<token_id> | Get Polymarket price | token_id, at_time |
/kalshi/market-price/<market_ticker> | Get Kalshi price | market_ticker, at_time |
/polymarket/orderbooks | Get Polymarket orderbook | token_id, start_time, end_time |
/kalshi/orderbooks | Get Kalshi orderbook | ticker, start_time, end_time |
The {...} values in the cURL examples are product-level placeholders and must be replaced before execution.
Execution constraint:
curl, the agent or runner must verify that every {...} placeholder has been replaced with a concrete value.{token_id}, {market_ticker}, {sport}, or {date} is still present in the final command, do not execute the command. Fail fast and surface a missing-parameter error instead.This constraint is required because a literal brace placeholder may be interpreted by curl as URL globbing syntax rather than as plain text.
0.65 means a 65% implied probability.1.0. For example, if "Yes" is trading at 0.40 on Polymarket and "No" is trading at 0.55 on Kalshi, buying both guarantees a payout of 1.00 for a total cost of 0.95, before fees and slippage./orderbooks endpoints. A price difference might exist, but if the orderbook lacks depth, executing the trade may eliminate the profit.| API | Cost |
|---|---|
| Prediction market read query | $0.01 |
export AISA_API_KEY="your-key"See API Reference for complete endpoint documentation.