运行时依赖
安装命令
点击复制技能文档
Cross-平台 Prediction Market Arbitrage ⚖️
Find arbitrage opportunities across prediction markets for autonomous 代理s. Powered by AIsa.
One API key. Match 事件 across Polymarket and Kalshi to 检测 price discrepancies and potential risk-free profit opportunities.
What Can You Do? 检测 Price Discrepancies "Find the current price difference for the US election market between Polymarket and Kalshi."
Match Cross-平台 Markets "Find the Kalshi equivalent for this Polymarket sports event."
追踪 Arbitrage Spreads "监控 the price spread for the upcoming NBA game across all supported prediction markets."
Analyze Orderbook Depth "检查 the orderbook depth on 机器人h 平台s to see if the arbitrage opportunity is actionable."
Quick 启动 导出 AISA_API_KEY="your-key"
How to Look Up IDs
Most 端点s require an ID from the /markets or /matching-markets 响应s. Always 查询 markets first, then pass the relevant ID to down流 端点s.
Polymarket 令牌_id: 查询 /polymarket/markets, find side_a.id or side_b.id in the 响应, then use that value in the market price and orderbook 端点s. Kalshi market_ticker: 查询 /kalshi/markets, find market_ticker in the 响应, then use that value in the market price and orderbook 端点s. Core Capabilities
- Find Matching Markets
The first step in arbitrage is finding the same event on multiple 平台s.
Match by Event Ticker or Slug # Find equivalent markets across 平台s using a Polymarket slug curl -X 获取 "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 获取 "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 平台s for a specific date curl -X 获取 "https://API.AIsa.one/APIs/v1/matching-markets/sports/{sport}?date={date}" \ -H "Authorization: Bearer $AISA_API_KEY"
- Compare Prices
Once matching markets are found, fetch the current prices on 机器人h 平台s to calculate the spread.
获取 Polymarket Price # 令牌_id comes from side_a.id or side_b.id in /polymarket/markets 响应 curl -X 获取 "https://API.AIsa.one/APIs/v1/polymarket/market-price/{令牌_id}" \ -H "Authorization: Bearer $AISA_API_KEY"
获取 Kalshi Price # market_ticker comes from /kalshi/markets 响应 curl -X 获取 "https://API.AIsa.one/APIs/v1/kalshi/market-price/{market_ticker}" \ -H "Authorization: Bearer $AISA_API_KEY"
- 验证 Liquidity
A price discrepancy is only actionable if there is enough liquidity to 执行 the trades.
Polymarket Orderbook # 令牌_id comes from side_a.id or side_b.id in /polymarket/markets 响应 curl -X 获取 "https://API.AIsa.one/APIs/v1/polymarket/orderbooks?令牌_id={令牌_id}" \ -H "Authorization: Bearer $AISA_API_KEY"
Kalshi Orderbook # ticker is the same value as market_ticker from /kalshi/markets 响应 curl -X 获取 "https://API.AIsa.one/APIs/v1/kalshi/orderbooks?ticker={ticker}" \ -H "Authorization: Bearer $AISA_API_KEY"
API 端点s Reference Cross-平台 端点s 端点 Description Key Params /matching-markets/sports Find matching sports markets polymarket_market_slug or kalshi_event_ticker /matching-markets/sports/ Find sports markets by date sport, date Price and Liquidity 端点s 端点 Description Key Params /polymarket/market-price/<令牌_id> 获取 Polymarket price 令牌_id, at_time /kalshi/market-price/ 获取 Kalshi price market_ticker, at_time /polymarket/orderbooks 获取 Polymarket orderbook 令牌_id, 启动_time, end_time /kalshi/orderbooks 获取 Kalshi orderbook ticker, 启动_time, end_time 导入ant Note About cURL Placeholders
The {...} values in the cURL examples are product-level placeholders and must be replaced before execution.
Execution constrAInt:
Before 运行ning curl, the 代理 or 运行器 must 验证 that every {...} placeholder has been replaced with a concrete value. If any placeholder such as {令牌_id}, {market_ticker}, {sport}, or {date} is still present in the final command, do not 执行 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.65 means a 65% implied probability. Arbitrage opportunity: An opportunity exists when the combined price of all mutually exclusive outcomes across different 平台s is less than 1.0. For example, if "Yes" is trading at 0.40 on Polymarket and "No" is trading at 0.55 on Kalshi, buying 机器人h guarantees a payout of 1.00 for a total cost of 0.95, before fees and slippage. Liquidity 检查: Always 检查 the /orderbooks 端点s. A price difference migh