prediction-market-arbitrage
Skill0 starsChanged 7 months agoMITView on GitHub
Find and analyze arbitrage opportunities across prediction markets like Polymarket and Kalshi. Use when you need to match equivalent markets, compare prices, and verify whether a spread looks actionable.
- Reads credentials
1 other project uses a version of this, 1 of them edited.
Adopted by
Most recently taken up by
- AISA-skills/financial-data-skillsedited, first seen Nov 1, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 1
- AISA-skills/financial-data-skills★ 483% same
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository59 other files it gives its agents.
- aisa-multi-search-engineSkill
- aisa-providerSkill
- aisa-tavilySkill
- aisa-twitter-apiSkill
- aisa-twitter-command-centerSkill
- aisa-twitter-engagement-suiteSkill
- aisa-twitter-post-engageSkill
- aisa-youtube-searchSkill
- aisa-youtube-serp-scoutSkill
- cn-llmSkill
- crypto-market-dataSkill
- gmail-lead-deskSkill
- kol-creator-discoverySkill
- last30daysSkill
- last30days-zhSkill
- llm-routerSkill
- marketpulseSkill
- marketSkill
- media-genSkill
- multi-searchSkill
- multi-source-searchSkill
- notion-workspaceSkill
- openclaw-aisa-youtube-aisaSkill
- openclaw-media-genSkill
- openclaw-searchSkill
- openclaw-twitter-post-engageSkill
- openclaw-twitterSkill
- openclaw-youtubeSkill
- perplexity-researchSkill
- perplexity-searchSkill
- prediction-market-arbitrage-apiSkill
- prediction-market-arbitrage-zhSkill
- prediction-market-dataSkill
- prediction-market-data-zhSkill
- prediction-marketSkill
- saas-gatewaySkill
- scholar-searchSkill
- searchSkill
- seo-keyword-researchSkill
- smart-searchSkill
- stock-analysisSkill
- stock-dividendSkill
- stock-hotSkill
- stock-portfolioSkill
- stock-rumorsSkill
- stock-watchlistSkill
- tavily-extractSkill
- tavily-searchSkill
- trend-forecastSkill
- twitter-autopilotSkill
- twitter-command-center-search-post-interactSkill
- twitter-command-center-search-postSkill
- twitterSkill
- us-stock-analystSkill
- web-searchSkill
- x-intelligence-automationSkill
- youtube-searchSkill
- youtube-serpSkill
- youtubeSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 0 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 178
Before running curl, the agent or runner must verify that every {...} placeholder has been replaced with a concrete value.
- Very specific: line 179
If any placeholder such as {token_id}, {market_ticker}, {sport}, or {date} is still present in the final command, do not execute the …
- Very specific: line 187
Liquidity check: Always check the /orderbooks endpoints.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Prediction Market Arbitrage ⚖️
Find and analyze arbitrage opportunities across prediction markets such as Polymarket and Kalshi.
This skill helps agents:
- find matching markets across platforms
- compare current prices
- inspect orderbook depth and liquidity
- judge whether an apparent spread may be actionable
Powered by AIsa with a single AISA_API_KEY.
Use when
- You want to find the Kalshi or Polymarket equivalent of a market on another platform.
- You want to compare implied probabilities across platforms for the same event.
- You want to check whether a price gap is large enough to investigate as a possible arbitrage.
- You want to verify liquidity before treating a spread as actionable.
Compatibility
Works with any agentskills.io-compatible harness, including:
- Claude Code and Claude
- OpenAI Codex
- Cursor
- Gemini CLI
- OpenCode, Goose, OpenClaw, Hermes
- and other harnesses that implement the Agent Skills specification
Requires Python 3, a POSIX shell, and AISA_API_KEY from aisa.one.
Quick start
export AISA_API_KEY="your-key"Example requests
Detect price discrepancies
"Find the current price difference for the US election market between Polymarket and Kalshi."Match cross-platform markets
"Find the Kalshi equivalent for this Polymarket sports event."Track arbitrage spreads
"Monitor the price spread for the upcoming NBA game across all supported prediction markets."Analyze orderbook depth
"Check the orderbook depth on both platforms to see if the arbitrage opportunity is actionable."How to look up IDs
Most endpoints require an ID from the /markets or /matching-markets responses. Query markets first, then pass the relevant ID into downstream endpoints.
- Polymarket
token_id: Query/polymarket/markets, findside_a.idorside_b.idin the response, then use that value in the market price and orderbook endpoints. - Kalshi
market_ticker: Query/kalshi/markets, findmarket_tickerin the response, then use that value in the market price and orderbook endpoints.
Core capabilities
1. Find matching markets
The first step in arbitrage analysis is finding the same event on multiple platforms.
Match by event ticker or slug
# 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"Match sports by date
# 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"2. Compare prices
Once matching markets are found, fetch the current prices on both platforms to calculate the spread.
Get Polymarket price
# 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"Get Kalshi price
# 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"3. Verify liquidity
A price discrepancy is only actionable if there is enough liquidity to execute the trades.
Polymarket orderbook
# 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"Kalshi orderbook
# 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"API endpoints reference
Cross-platform endpoints
| 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 |
Price and liquidity endpoints
| 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 |
Important note about cURL placeholders
The {...} values in the cURL examples are product-level placeholders and must be replaced before execution.
Execution constraint:
- Before running
curl, the agent or runner must verify that every{...}placeholder has been replaced with a concrete value. - If any placeholder such as
{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.
Understanding arbitrage and odds
- Prices as probabilities: Prices are usually shown as decimals. For example,
0.65means a 65% implied probability. - Arbitrage opportunity: An opportunity exists when the combined price of all mutually exclusive outcomes across different platforms is less than
1.0. For example, if "Yes" is trading at0.40on Polymarket and "No" is trading at0.55on Kalshi, buying both guarantees a payout of1.00for a total cost of0.95, before fees and slippage. - Liquidity check: Always check the
/orderbooksendpoints. A price difference might exist, but if the orderbook lacks depth, executing the trade may eliminate the profit.
Pricing
| API | Cost |
| Prediction market read query | $0.01 |
Get started
- Sign up at aisa.one
- Get your API key
- Add credits (pay-as-you-go)
- Set the environment variable:
export AISA_API_KEY="your-key"
Full API reference
See API Reference for complete endpoint documentation.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

