Command Palette

Search for a command to run...

Назад к скиллам
скилл № 68717

trade-prediction-markets

Build and test Polymarket prediction market trading strategies for YES/NO token trading. Provides 6 tools: get_all_prediction_events (browse markets, $0.001)…

БесплатноБез исполняемых скриптов
aAAaqwqот aAAaqwq★ 123 звезды на GitHub

Установить trade-prediction-markets в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

Trade Prediction Markets

Quick Start

This skill enables trading on Polymarket prediction markets (YES/NO tokens) for real-world events.

Load the tools first:

Use MCPSearch to select: mcp__workbench__get_all_prediction_events
Use MCPSearch to select: mcp__workbench__get_prediction_market_data
Use MCPSearch to select: mcp__workbench__create_prediction_market_strategy

Basic workflow:

1. Browse markets:
   get_all_prediction_events(market_category="crypto_rolling")
   → See BTC/ETH price prediction markets

2. Analyze market data:
   get_prediction_market_data(condition_id="0x123...")
   → Study YES/NO token price history

3. Create strategy:
   create_prediction_market_strategy(
       strategy_name="PolymarketArb_M",
       description="Buy YES when price <40%, sell at 55%"
   )

4. Test strategy:
   run_prediction_market_backtest(
       strategy_name="PolymarketArb_M",
       ...
   )

When to use this skill:

  • Trading on real-world events (elections, Fed decisions, sports)
  • Want binary outcome exposure (YES/NO)
  • Interested in probability-based trading
  • Exploring prediction market opportunities

Available Tools (6)

get_all_prediction_events

Purpose: Browse available Polymarket prediction markets

Parameters:

  • active_only (optional, boolean): Only active events (default: true)
  • market_category (optional, string): Filter by category

Categories:

  • crypto_rolling: Crypto price predictions (BTC >$100k in next hour?)
  • politics: Elections, policy decisions
  • economics: GDP, inflation, Fed decisions
  • sports: Game outcomes, championships
  • entertainment: Awards, box office results

Returns: List of events with names, categories, markets, condition IDs, resolution status

Pricing: $0.001

Use when: Discovering trading opportunities, browsing available markets

get_prediction_market_data

Purpose: Analyze YES/NO token price history for specific market

Parameters:

  • condition_id (required): Polymarket condition ID
  • start_date (optional): Filter from date (YYYY-MM-DD)
  • end_date (optional): Filter to date (YYYY-MM-DD)
  • timeframe (optional): Candle timeframe (1m, 5m, 15m, 30m, 1h, 4h, default: 1m)
  • limit (optional, 1-10000): Max candles per token (default: 1000)

Returns: Market metadata, YES token price timeseries, NO token price timeseries

Pricing: $0.001

Use when: Analyzing market price history, researching token behavior, validating strategy concepts

create_prediction_market_strategy

Purpose: Generate Polymarket strategy code with YES/NO trading logic

Parameters:

  • strategy_name (required): Strategy name (follow pattern: Name_RiskLevel)
  • description (required): Detailed requirements for YES/NO logic, exit criteria, position sizing

Returns: Complete Python PolymarketStrategy code

Pricing: Real LLM cost + margin (max $4.50)

Execution Time: ~30-60 seconds

Use when: Building new Polymarket strategies

run_prediction_market_backtest

Purpose: Test prediction market strategy on historical data

Parameters:

  • strategy_name (required): PolymarketStrategy to test
  • start_date (required): Start date (YYYY-MM-DD)
  • end_date (required): End date (YYYY-MM-DD)
  • condition_id (for single market): Specific condition ID
  • asset (for rolling markets): Asset symbol ("BTC", "ETH")
  • interval (for rolling markets): Market interval ("15m", "1h")
  • initial_balance (optional): Starting USDC (default: 10000)
  • timeframe (optional): Execution timeframe (default: 1m)

Returns: Backtest metrics (profit/loss, win rate, position history)

Pricing: $0.001

Execution Time: ~20-60 seconds

Use when: Validating prediction market strategies

get_data_availability

Purpose: Check available data ranges for Polymarket markets

Parameters:

  • data_type: "polymarket" or "all"
  • asset (optional): Filter by asset
  • include_resolved (optional): Include resolved markets

Returns: Data availability with date ranges

Pricing: $0.001

Use when: Before backtesting (verify sufficient data)

get_latest_backtest_results

Purpose: View recent prediction market backtest results

Parameters:

  • strategy_name (optional): Filter by strategy
  • limit (optional): Number of results

Returns: Recent backtest records

Pricing: Free

Use when: Checking existing backtest results

Core Concepts

Prediction Market Mechanics

YES/NO Token Structure:

Event: "Will BTC exceed $100,000 by end of hour?"

YES Token:
- Pays $1.00 if event occurs
- Pays $0.00 if event doesn't occur
- Current price = Market's implied probability
- Example: YES token at $0.65 = 65% implied probability

NO Token:
- Pays $1.00 if event DOESN'T occur
- Pays $0.00 if event occurs
- Current price = 1 - YES price
- Example: NO token at $0.35 = 35% implied probability

Total: YES price + NO price ≈ $1.00 (arbitrage if not)

**How

Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

  1. 01mcp__workbench__get_all_prediction_events
  2. 02mcp__workbench__get_prediction_market_data
  3. 03mcp__workbench__create_prediction_market_strategy
  4. 04mcp__workbench__run_prediction_market_backtest
  5. 05mcp__workbench__get_data_availability
  6. 06mcp__workbench__get_latest_backtest_results

FAQ

Что делает скилл trade-prediction-markets?

Build and test Polymarket prediction market trading strategies for YES/NO token trading. Provides 6 tools: get_all_prediction_events (browse markets, $0.001), get_prediction_market_data (analyze price history, $0.001), create_prediction_market_strategy (generate code, $1-$4.50), run_prediction_market_backtest (test performance, $0.001). Trade on real-world events (politics, economics, sports, crypto). Currently simulation only (live deployment coming soon).

Как установить скилл trade-prediction-markets?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл trade-prediction-markets запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить trade-prediction-markets с