OpenParable
Skip to content
← Back to skills

Smarkets

Apps & Automation
smarkets

Smarkets is an Agent Skill for apps & automation published in the alsk1992/CloddsBot repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

Smarkets Exchange betting with 2% commission

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/alsk1992/CloddsBot/blob/HEAD/src/skills/bundled/smarkets/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/smarkets, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

Smarkets Exchange

Full integration with Smarkets, a betting exchange with lower fees than Betfair (2% vs 5%). Politics, sports, and entertainment markets.

Quick Start

# Set credentials
export SMARKETS_SESSION_TOKEN="your-session-token"

# Search markets
/sm markets election

# Get market prices
/sm prices 12345

# Place buy order
/sm buy 12345 67890 0.55 10

# Place sell order
/sm sell 12345 67890 0.60 10

Commands

Market Data

CommandDescription
/sm markets [query]Search markets
/sm market <id>Get market details
/sm prices <marketId>Current prices
/sm book <marketId> <contractId>Show orderbook

Trading

CommandDescription
/sm buy <marketId> <contractId> <price> <quantity>Place buy order
/sm sell <marketId> <contractId> <price> <quantity>Place sell order
/sm cancel <orderId>Cancel order
/sm cancelall [marketId]Cancel all orders
/sm orders [marketId]List open orders

Examples:

/sm buy 123 456 0.55 10    # Buy at 55% price, £10
/sm sell 123 456 0.60 10   # Sell at 60% price, £10
/sm cancel abc123          # Cancel specific order

Account

CommandDescription
/sm balanceCheck account balance

Configuration

# Required for trading
export SMARKETS_SESSION_TOKEN="your-session-token"

# Optional - API token for market data only
export SMARKETS_API_TOKEN="your-api-token"

Features

  • Low Fees - 2% commission vs Betfair's 5%
  • Politics Markets - UK, US, EU elections
  • Sports - Football, tennis, horse racing
  • Entertainment - TV, music, awards
  • Real-time Streaming - WebSocket price updates

Market Types

DomainExamples
politicsElections, referendums
sportFootball, tennis, cricket
entertainmentOscars, Eurovision, reality TV
current_affairsEconomic events, news
esportsCS:GO, League of Legends

Trading Notes

  1. Prices: Expressed as percentages (0.55 = 55%)
  2. Quantities: In GBP
  3. Buy: Betting FOR an outcome
  4. Sell: Betting AGAINST an outcome

Resources