AISA_API_KEY reads markets and prices across Polymarket and Kalshi — search events, track implied probabilities, inspect orderbooks, and analyze wallet positions.
Install
What can agents do with it?
Probability queries
“What are the current odds of a Fed rate cut in June across markets?”
Sentiment tracking
“Monitor election-related markets and flag price swings >5%.”
Trading analysis
“Pull historical trades and OHLC for this market over the last 30 days.”
Portfolio tracking
“What’s the P&L on this Polymarket wallet across granularities?”
Orderbook depth
“Check the top-of-book liquidity before placing a trade.”
Cross-platform match
“Find the Kalshi and Polymarket markets for the same NFL game.”
Core capabilities
- Market discovery — search Polymarket and Kalshi by keyword, status, category
- Price tracking — current “Yes”/“No” prices (implied probabilities)
- Historical data — trade history, orderbook snapshots, candlesticks
- Wallet analytics — positions and P&L by granularity (Polymarket)
- Event index — Polymarket event lookup
- Sports matching — find equivalent markets across platforms (NFL, MLB, NBA, etc.)
Workflow pattern
Most endpoints require IDs pulled from the search responses:Quick start
Polymarket
Kalshi
Cross-platform sports matching
Python client
Endpoint reference
| Endpoint | Method | Purpose |
|---|---|---|
/polymarket/markets | GET | Polymarket markets |
/polymarket/events | GET | Polymarket events |
/polymarket/market-price/{id} | GET | Market price |
/polymarket/orderbooks | GET | Orderbook |
/polymarket/candlesticks | GET | Candlesticks |
/polymarket/activity | GET | Activity |
/polymarket/orders | GET | Orders |
/polymarket/positions | GET | Positions |
/polymarket/wallet | GET | Wallet |
/polymarket/wallet-pnl | GET | Wallet P&L |
/kalshi/markets | GET | Kalshi markets |
/kalshi/market-price/{ticker} | GET | Kalshi price |
/kalshi/trades | GET | Kalshi trades |
/kalshi/orderbooks | GET | Kalshi orderbook |
/matching-markets/sports | GET | All sports |
/matching-markets/sports/{sport} | GET | By sport |
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 reference
Every Polymarket, Kalshi, and matching-markets endpoint.
Arbitrage skill
Cross-platform arb detection built on the same data.
Error Codes
Handling upstream exchange errors.