Co-Pilot / 辅助式
更新于 a month ago

polymarket-trader

Aagentmc15
0.0k
agentmc15/polymarket-trader
78
Agent 评分

💡 摘要

使用Claude Code构建Polymarket交易应用的设置指南。

🎯 适合人群

对交易应用感兴趣的开发者分析市场趋势的数据科学家寻找自动化策略的交易者学习区块链交易的学生构建交易平台的企业家

🤖 AI 吐槽:看起来很能打,但别让配置把人劝退。

安全分析中风险

风险:Medium。建议检查:是否执行 shell/命令行指令;是否发起外网请求(SSRF/数据外发);文件读写范围与路径穿越风险。以最小权限运行,并在生产环境启用前审计代码与依赖。

Polymarket Trading Application - Claude Code Setup

This directory contains all the configuration files needed to use Claude Code for building your Polymarket trading application.

Quick Start

1. Create Your Project

mkdir polymarket-trader cd polymarket-trader git init

2. Copy Configuration Files

Copy all files from this directory to your project root:

# Copy everything cp -r /path/to/polymarket-setup/* . cp -r /path/to/polymarket-setup/.* .

Or manually copy:

  • CLAUDE.md → Project root
  • .claude/ → Project root (contains skills and commands)
  • .mcp.json → Project root (for MCP server integrations)

3. Launch Claude Code

claude

4. Initialize the Project

In Claude Code, run:

/project:init-polymarket

This will scaffold the entire project structure.

Directory Structure

polymarket-setup/
├── CLAUDE.md                          # Main project context for Claude
├── .mcp.json                          # MCP server configurations
├── .claude/
│   ├── commands/                      # Custom slash commands
│   │   ├── init-polymarket.md         # Initialize project structure
│   │   ├── add-feature.md             # Add new features
│   │   ├── add-strategy.md            # Create trading strategies
│   │   ├── run-backtest.md            # Execute backtests
│   │   └── debug-trading.md           # Debug trading issues
│   └── skills/                        # Custom skills
│       ├── polymarket-api/
│       │   └── SKILL.md               # Polymarket API integration guide
│       ├── trading-strategies/
│       │   └── SKILL.md               # Strategy development framework
│       └── trader-analysis/
│           └── SKILL.md               # Trader tracking & analysis
└── README.md                          # This file

Available Commands

After setup, these slash commands are available in Claude Code:

| Command | Description | |---------|-------------| | /project:init-polymarket | Scaffold the entire project | | /project:add-feature [description] | Add a new feature | | /project:add-strategy [name] | Create a trading strategy | | /project:run-backtest [strategy] [options] | Run a backtest | | /project:debug-trading [issue] | Debug trading problems |

Custom Skills

The skills provide Claude with specialized knowledge:

polymarket-api

Comprehensive guide for Polymarket's CLOB API, Gamma API, and blockchain integration. Includes:

  • Authentication patterns
  • Order placement and management
  • WebSocket subscriptions
  • Price calculations
  • Error handling

trading-strategies

Framework for building, testing, and deploying trading strategies:

  • BaseStrategy class
  • Signal generation
  • Position sizing
  • Risk management
  • Backtesting framework

trader-analysis

Tools for discovering and following successful traders:

  • Trader metrics calculation
  • Scoring system
  • Copy trading implementation
  • Real-time monitoring

Using with Anthropic Skills

You can also use official Anthropic skills alongside these custom ones:

# In Claude Code /plugin marketplace add anthropics/skills /plugin install frontend-design@anthropic-agent-skills

Recommended official skills for this project:

  • frontend-design - For building the React dashboard
  • webapp-testing - For automated testing
  • mcp-builder - If you need custom MCP servers

Environment Setup

Before building, ensure you have:

  1. Polymarket Credentials:

    • Export your private key from Polymarket
    • Generate API credentials using the derivation endpoint
  2. Infrastructure:

    • PostgreSQL with TimescaleDB
    • Redis for caching and Celery
  3. Node.js & Python:

    • Node.js 18+
    • Python 3.11+

Tips for Best Results

  1. Start with Planning: Ask Claude to explain its approach before coding
  2. Use Plan Mode: Press Shift+Tab twice to enter Plan Mode
  3. Commit Often: Ask Claude to commit after each feature
  4. Run Tests: Always verify with tests before moving on
  5. One Feature at a Time: Focus on single features for best results

Resources

Support

For issues with:


Happy trading! 🚀

五维分析
清晰度8/10
创新性7/10
实用性9/10
完整性8/10
可维护性7/10
优缺点分析

优点

  • 全面的设置说明
  • 支持自定义交易策略
  • 与Polymarket API集成
  • 包括交易者分析工具

缺点

  • 需要多个依赖项
  • 对初学者来说设置可能复杂
  • 提供的示例有限
  • 假设用户熟悉Claude Code

相关技能

pytorch

S
toolCode Lib / 代码库
92/ 100

“它是深度学习的瑞士军刀,但祝你好运能从47种安装方法里找到那个不会搞崩你系统的那一个。”

agno

S
toolCode Lib / 代码库
90/ 100

“它承诺成为智能体领域的Kubernetes,但得看开发者有没有耐心学习又一个编排层。”

nuxt-skills

S
toolCo-Pilot / 辅助式
90/ 100

“这本质上是一份组织良好的小抄,能把你的 AI 助手变成一只 Nuxt 框架的复读机。”

免责声明:本内容来源于 GitHub 开源项目,仅供展示和评分分析使用。

版权归原作者所有 agentmc15.