Technical documentation for autonomous betting systems
polymarket-cli for prediction markets or Cloudbet API for sportsEsports betting involves placing wagers on competitive video game matches. The market structure mirrors traditional sports: moneyline (match winner), handicaps (spread), totals (over/under maps/rounds), and proposition bets.
| Type | Description | Example |
|---|---|---|
| Moneyline | Predict match winner | Team Liquid @ 1.85 |
| Handicap | Victory margin adjustment | G2 -1.5 maps @ 2.10 |
| Totals | Over/under rounds or maps | Over 2.5 maps @ 1.90 |
| Props | Specific in-game events | First blood @ 1.95 |
Not all betting platforms are agent-friendly. Here are the best options for programmatic access:
Official Rust CLI released Feb 2024. Query markets, place orders, manage positions directly from terminal. Built for agents.
Established crypto sportsbook with esports coverage. Public odds API, supports BTC/ETH/USDT. Good esports liquidity.
Official autonomous trading framework. Connect LLMs to execute trades based on news and analysis.
Sharp-friendly traditional sportsbook. Best odds in industry, accepts winning players. API requires account approval.
US-regulated prediction market. Event contracts on politics, economics, weather. API available.
New prediction markets platform connecting to global liquidity pools. Agent-first architecture. Aggregates multiple sources.
Launching 2026 - worth monitoring
The fastest way for agents to access prediction markets (released Feb 24, 2026):
# Install via Cargo (Rust)
cargo install polymarket-cli
# Or clone and build
git clone https://github.com/Polymarket/polymarket-cli
cd polymarket-cli
cargo build --release
# Query markets
polymarket markets list --category esports
# Get specific market
polymarket market get [market-id]
# Place order (requires wallet setup)
polymarket order place --market [id] --side yes --amount 10 --price 0.55
See full Polymarket CLI tutorial for wallet setup and advanced usage.
For traditional esports betting with crypto:
# Get esports fixtures
curl -X GET "https://sports-api.cloudbet.com/pub/v2/odds/fixtures?sport=esports" \
-H "X-API-Key: YOUR_API_KEY"
# Response structure
{
"fixtures": [
{
"id": "12345",
"name": "Team Liquid vs G2 Esports",
"sport": "esports",
"competition": "ESL Pro League",
"markets": {
"moneyline": {
"home": { "price": 1.85, "line": null },
"away": { "price": 2.05, "line": null }
}
}
}
]
}
See full Cloudbet API tutorial for authentication and placing bets.
| Format | Example | Implied Prob | Profit on $100 |
|---|---|---|---|
| Decimal | 2.50 | 40% | $150 |
| American (+) | +150 | 40% | $150 |
| American (-) | -200 | 66.7% | $50 |
| Fractional | 3/2 | 40% | $150 |
# Conversion functions (Python)
def decimal_to_probability(decimal_odds):
return 1 / decimal_odds
def american_to_decimal(american):
if american > 0:
return (american / 100) + 1
else:
return (100 / abs(american)) + 1
def decimal_to_american(decimal_odds):
if decimal_odds >= 2.0:
return (decimal_odds - 1) * 100
else:
return -100 / (decimal_odds - 1)
| Source | Data Type | Cost |
|---|---|---|
| Liquipedia | Team/player stats, results, rosters | Free (scrape responsibly) |
| PandaScore | Live scores, odds, schedules | Free tier + paid |
| HLTV | CS2 stats, rankings, demos | Free (API unofficial) |
| Cloudbet API | Live odds, fixtures | Free with account |
| Polymarket | Prediction market prices | Free |
The betting industry is shifting toward agent-first architectures. Key developments to watch:
Magic Markets is building toward this vision - connecting prediction markets to global liquidity in a way not previously possible. Their agent-first approach suggests a future where autonomous systems are primary market participants.