← 返回
未分类 中文

Markets

Markets orchestration — connects ESPN live schedules with Kalshi and Polymarket prediction markets. Unified dashboards, odds comparison, entity search, and b...
市场编排 — 将 ESPN实时赛程与 Kalshi、Polymarket 预测市场对接。统一仪表盘、赔率比较、实体搜索,以及...
antonelli182 antonelli182 来源
未分类 clawhub v1.0.0 1 版本 99679.5 Key: 无需
★ 0
Stars
📥 311
下载
💾 0
安装
1
版本
#latest

概述

Markets Orchestration

Bridges ESPN live schedules (NBA, NFL, MLB, NHL, WNBA, CFB, CBB) with Kalshi and Polymarket prediction markets. Before writing queries, consult references/api-reference.md for supported sport codes, command parameters, and price normalization formats.

Quick Start

sports-skills markets get_todays_markets --sport=nba
sports-skills markets search_entity --query="Lakers" --sport=nba
sports-skills markets compare_odds --sport=nba --event_id=401234567
sports-skills markets get_sport_markets --sport=nfl
sports-skills markets get_sport_schedule --sport=nba
sports-skills markets normalize_price --price=0.65 --source=polymarket
sports-skills markets evaluate_market --sport=nba --event_id=401234567

Python SDK:

from sports_skills import markets

markets.get_todays_markets(sport="nba")
markets.search_entity(query="Lakers", sport="nba")
markets.compare_odds(sport="nba", event_id="401234567")
markets.get_sport_markets(sport="nfl")
markets.get_sport_schedule(sport="nba", date="2025-02-26")
markets.normalize_price(price=0.65, source="polymarket")
markets.evaluate_market(sport="nba", event_id="401234567")

CRITICAL: Before Any Query

CRITICAL: Before calling any orchestration command, verify:

  • A sport code is provided for sport-aware commands (get_todays_markets, compare_odds, get_sport_markets, evaluate_market).
  • Price sources are identified correctly before normalization: espn = American odds, polymarket = 0-1 probability, kalshi = 0-100 integer.

Important Notes

  • Sport context is passed through. --sport=nba maps automatically to the correct Polymarket sport code and Kalshi series ticker.
  • Both platforms use sport-aware search. Polymarket uses sport → series_id; Kalshi uses KXNBA, KXNFL, etc.
  • Prices are normalized. Everything is converted to implied probability for comparison.

Workflows

Today's NBA Dashboard

sports-skills markets get_todays_markets --sport=nba

Returns each game with ESPN info, DraftKings odds, matching Kalshi markets, and matching Polymarket markets.

Find Arb on a Specific Game

  1. Get the ESPN event ID: get_sport_schedule --sport=nba
  2. Compare odds: compare_odds --sport=nba --event_id=
  3. If arbitrage detected, response includes allocation percentages and guaranteed ROI.

Full Bet Evaluation

  1. evaluate_market --sport=nba --event_id=
  2. Fetches ESPN odds and matching prediction market price
  3. Pipes through betting.evaluate_bet: devig → edge → Kelly
  4. Returns fair probability, edge, EV, Kelly fraction, and recommendation

Examples

Example 1: Today's games with prediction market odds

User says: "What NBA games are on today and what are the prediction market odds?"

Actions:

  1. Call get_todays_markets(sport="nba")

Result: Unified dashboard with each game's ESPN info and Kalshi/Polymarket prices

Example 2: Cross-platform team search

User says: "Find me Lakers markets on Kalshi and Polymarket"

Actions:

  1. Call search_entity(query="Lakers", sport="nba")

Result: All Lakers markets across both exchanges with prices and volume

Example 3: Odds comparison for a specific game

User says: "Compare the odds for this Celtics game across ESPN and Polymarket"

Actions:

  1. Get event_id from get_sport_schedule(sport="nba")
  2. Call compare_odds(sport="nba", event_id="")

Result: Normalized side-by-side comparison with automatic arbitrage check

Example 4: Full market evaluation

User says: "Is there edge on the Chiefs game?"

Actions:

  1. Get event_id from get_sport_schedule(sport="nfl")
  2. Call evaluate_market(sport="nfl", event_id="")

Result: Fair probability, edge percentage, EV, Kelly fraction, and bet recommendation

Example 5: Browse all markets for a sport

User says: "Show me all NFL prediction markets"

Actions:

  1. Call get_sport_markets(sport="nfl")

Result: All open NFL markets across Kalshi and Polymarket

Example 6: Price conversion

User says: "Convert a Polymarket price of 65 cents to American odds"

Actions:

  1. Call normalize_price(price=0.65, source="polymarket")

Result: Common structure with implied probability (0.65), American odds (-185.7), and decimal (1.54)

Commands that DO NOT exist — never call these

  • ~~get_odds~~ — does not exist. Use compare_odds to see odds across sources.
  • ~~search_markets~~ — does not exist on the markets module. Use search_entity instead.
  • ~~get_schedule~~ — does not exist. Use get_sport_schedule instead.

If a command is not listed in references/api-reference.md, it does not exist.

Troubleshooting

Error: No markets returned for a sport

Cause: Sport code may be missing or incorrect

Solution: Check references/api-reference.md for valid sport codes. Use the exact code (e.g., nba, epl, laliga)

Error: compare_odds returns no data for an event

Cause: The event_id is incorrect or the game has not been indexed yet

Solution: Call get_sport_schedule(sport=...) to retrieve the correct event_id first

Error: One source shows warnings in the response

Cause: Kalshi or Polymarket is temporarily unavailable

Solution: The module returns partial results — use what is available. Retry the unavailable source separately using the kalshi or polymarket skill directly

Error: normalize_price returns unexpected American odds value

Cause: Wrong source parameter — Kalshi uses 0-100 integers, Polymarket uses 0-1 decimals

Solution: Verify the source. Kalshi price of 65 requires source="kalshi", Polymarket price of 0.65 requires source="polymarket"

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-07 16:51 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

Football Data

antonelli182
足球数据覆盖13个联赛,含积分榜、赛程、比赛统计、xG、转会及球员档案,零配置无需API密钥,涵盖英超等。
★ 3 📥 551
data-analysis

Football Data

antonelli182
涵盖13大联赛的足球数据——积分榜、赛程、比赛统计、预期进球、转会及球员资料。零配置,免API密钥。覆盖英超……
★ 2 📥 1,703

Kalshi

antonelli182
Kalshi 预测市场 — 提供事件、系列、市场、交易和K线数据。公共API,读取无需认证。美国受CFTC监管的交易所。Cove...
★ 0 📥 414