AISA_API_KEY matches equivalent events on Polymarket and Kalshi, compares implied probabilities, and verifies orderbook depth so agents can execute with confidence.
Install
First, install the AIsa CLI if you have not already:What can agents do with it?
Cross-exchange scan
“Find NFL games with priced markets on both Polymarket and Kalshi.”
Spread detection
“Flag outcome pairs where combined implied probability < 1.0.”
Liquidity verification
“Check top-of-book depth on both sides before triggering an alert.”
Sports arb workflow
“Daily NBA/NFL/MLB arbitrage scan with configurable edge threshold.”
Elections & macro
“Surface arbitrage windows on election, rate, and macro event markets.”
Execution prep
“Produce a trade plan with size limits from orderbook depth.”
How it works
Match equivalent events
Use the
/matching-markets/sports (and /sports/{sport}) endpoints, or slug/ticker heuristics, to pair up a Polymarket token_id with a Kalshi market_ticker for the same real-world event.Compare prices
Call each platform’s
market-price endpoint. An arbitrage window exists when the combined implied probabilities of mutually-exclusive outcomes sum to less than 1.0.Example: buying complementary outcomes at 0.40 and 0.55 totals 0.95 — a 0.05 edge before fees.Quick start
1. Match markets
2. Compare prices
3. Check orderbook depth
Python client
Endpoint reference
| Endpoint | Method | Purpose |
|---|---|---|
/matching-markets/sports | GET | All sports |
/matching-markets/sports/{sport} | GET | By sport |
/polymarket/market-price/{token_id} | GET | Polymarket price |
/kalshi/market-price/{ticker} | GET | Kalshi price |
/polymarket/orderbooks | GET | Polymarket orderbook |
/kalshi/orderbooks | GET | Kalshi orderbook |
Get started
- Sign up at aisa.one (new accounts start with $2 free credit).
- Generate an API key from the console.
export AISA_API_KEY="your-key"and install the skill:
Related
Prediction Market API
All Polymarket, Kalshi, and matching-markets endpoints.
Market Data skill
The underlying data skill this one builds on.
Rate Limits
Concurrency caps when running arb scans.