---
name: smarkets
description: "Smarkets Exchange betting with 2% commission"
emoji: "🎰"
commands:
  - /sm
gates:
  envs:
    - SMARKETS_SESSION_TOKEN
---

# Smarkets Exchange

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

## Quick Start

```bash
# 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

| Command | Description |
|---------|-------------|
| `/sm markets [query]` | Search markets |
| `/sm market <id>` | Get market details |
| `/sm prices <marketId>` | Current prices |
| `/sm book <marketId> <contractId>` | Show orderbook |

### Trading

| Command | Description |
|---------|-------------|
| `/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:**
```bash
/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

| Command | Description |
|---------|-------------|
| `/sm balance` | Check account balance |

## Configuration

```bash
# 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

| Domain | Examples |
|--------|----------|
| politics | Elections, referendums |
| sport | Football, tennis, cricket |
| entertainment | Oscars, Eurovision, reality TV |
| current_affairs | Economic events, news |
| esports | CS: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

- [Smarkets Exchange](https://smarkets.com/)
- [Smarkets API Docs](https://docs.smarkets.com/)


---
Source attribution: alsk1992
Original project: https://github.com/alsk1992/CloddsBot/blob/c930628c47a4a745f497e29035a3b64622f97cc7/src/skills/bundled/smarkets/SKILL.md
License: MIT
License information: https://opensource.org/license/mit
Original upstream instructions; downloaded from Mega AI Hub.

## Upstream license notice

MIT License

Copyright (c) 2026 alsk1992

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.



# Mega AI Hub resource metadata

Creator / publisher: alsk1992
Original project: https://github.com/alsk1992/CloddsBot/blob/c930628c47a4a745f497e29035a3b64622f97cc7/src/skills/bundled/smarkets/SKILL.md
Attribution basis: Source repository record

Fields of work: Marketing
Roles: Advertising Specialist, Growth Marketer, Product Marketer
Specialties: API
Tools: Smarkets
Country applicability: Country not specified
Classification basis: Source catalog labels
Instruction SHA-256: bce6ba2125453f308126ef212be8b01117536bb2881559206fb67aff6fa1a2f9
