搜索

PythonReactSEOPDF
OpenClaw

polymarket-edge

Trade and analyse Polymarket prediction markets with a 5-minute BTC EMA crossover strategy. Browse markets, read order books, run signals, manage a live auto-trader, and view portfolio positions. Billed per-call via SkillPay.me (0.001 USDT / call, BNB Chain USDT).

icloud-git0 来源安装数☆ 0 仓库 Stars

安装与使用

请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。

SkillHub CLI

skillhub install icloud-git/polymarket-edge

打开来源仓库,查看说明和兼容环境后,按来源提供的命令或步骤安装。

将来源链接提供给你的 Agent,让它先读取说明、核对依赖,并向你说明将执行的安装步骤。

查看来源 ↗使用指南

技能说明

Polymarket Edge

A locally-running FastAPI skill that wraps the Polymarket Gamma + CLOB APIs with a built-in EMA(5/20) crossover strategy and SkillPay.me billing.

Setup

# Install dependencies
pip install -r requirements.txt

# Set required environment variables
export SKILL_BILLING_API_KEY=sk_your_skillpay_api_key_here
export SKILL_ID=polymarket-edge

# Start the skill server (port 8080)
python main.py

The interactive docs are available at http://localhost:8080/docs.

Environment variables

Variable Required Description
SKILL_BILLING_API_KEY ✅ From your skillpay.me dashboard
SKILL_ID ✅ Your skill slug, e.g. polymarket-edge
POLYMARKET_PRIVATE_KEY optional EVM private key for live order placement

Billing

Every billed endpoint requires ?user_id=<id> in the query string. If the user has no tokens the API returns HTTP 402 with a top_up_url.

GET  /balance?user_id=alice          → current token balance
GET  /topup?user_id=alice&amount=10  → BNB Chain USDT payment link

1 USDT = 1 000 tokens · 1 call = 1 token · min top-up 8 USDT · SkillPay takes 5 %

Key endpoints (all require ?user_id=)

Market data
GET /markets/search?q=bitcoin    Search all Polymarket markets
GET /markets/btc                 List active BTC/Bitcoin markets
GET /market/{id}                 Single market details
GET /market/{token_id}/book      Full order book (bids + asks)
GET /market/{token_id}/price     Mid-price, spread, implied probability
GET /market/{token_id}/history   5-min OHLCV candles
Strategy signals
POST /signal                     Run EMA crossover on top BTC markets
                                 Returns BUY_YES / BUY_NO / HOLD / SKIP per market
Auto-trader
GET  /autotrader/status          Is the auto-trader running?
POST /autotrader/start           Start 5-min BTC cycle (background task)
POST /autotrader/stop            Stop auto-trader
GET  /auto...

来源信息

Source
github
Repository
openclaw/skills
Path
skills/icloud-git/polymarket-edge
Version
—
Commit
4ca34884d41a7985b97782ffff956a836243622f
分类来源
rules
状态
active
可见性
public

这些信息来自收录时的来源分析,可能滞后;使用前请核对最新来源文件。

README

Polymarket Edge

An OpenClaw skill that lets any AI agent browse Polymarket prediction markets, run a 5-minute BTC EMA crossover strategy, and optionally place live trades — with every API call billed via SkillPay.me (0.001 USDT / call).

Polymarket Edge gives your agent a systematic, always-on trading edge on prediction markets — no manual research, no babysitting.


Quick Start

cd polymarket-edge
cp .env.example .env          # edit SKILL_BILLING_API_KEY if needed
pip install -r requirements.txt
python main.py                # starts on http://localhost:8080

Open http://localhost:8080/docs for the interactive Swagger UI.


Billing model

Item Value
Platform SkillPay.me (BNB Chain USDT)
Rate 1 token per call
Token price 1 USDT = 1000 tokens
Minimum top-up 8 USDT
Withdrawal fee 5%

Every billed endpoint requires ?user_id=<your_id>. If tokens run out the API returns HTTP 402 with a top_up_url.

GET /balance?user_id=alice          → { balance: 3200, usdt_equivalent: 3.2 }
GET /topup?user_id=alice&amount=10  → { payment_url: "https://..." }

Endpoints

Free
Method Path Description
GET / Health check
GET /balance Token balance
GET /topup Get USDT top-up link
Billed (1 token each)
Method Path Description
GET /markets/search?q=bitcoin Search all markets
GET /markets/btc List active BTC markets
GET /market/{id} Single market details
GET /market/{token_id}/book Full order book
GET /market/{token_id}/price Mid-price + spread
GET /market/{token_id}/history 5-min OHLCV candles
POST /signal Run EMA crossover on BTC markets
GET /autotrader/status Is auto-trader running?
POST /autotrader/start Start 5-min BTC cycle
POST /autotrader/stop Stop auto-trade...

来源内容

SKILL.md
# Polymarket Edge

A locally-running FastAPI skill that wraps the Polymarket Gamma + CLOB APIs with
a built-in EMA(5/20) crossover strategy and SkillPay.me billing.

## Setup

```bash
# Install dependencies
pip install -r requirements.txt

# Set required environment variables
export SKILL_BILLING_API_KEY=sk_your_skillpay_api_key_here
export SKILL_ID=polymarket-edge

# Start the skill server (port 8080)
python main.py
```

The interactive docs are available at `http://localhost:8080/docs`.

## Environment variables

| Variable | Required | Description |
|---|---|---|
| `SKILL_BILLING_API_KEY` | ✅ | From your skillpay.me dashboard |
| `SKILL_ID` | ✅ | Your skill slug, e.g. `polymarket-edge` |
| `POLYMARKET_PRIVATE_KEY` | optional | EVM private key for live order placement |

## Billing

Every billed endpoint requires `?user_id=<id>` in the query string.
If the user has no tokens the API returns **HTTP 402** with a `top_up_url`.

```
GET  /balance?user_id=alice          → current token balance
GET  /topup?user_id=alice&amount=10  → BNB Chain USDT payment link
```

1 USDT = 1 000 tokens · 1 call = 1 token · min top-up 8 USDT · SkillPay takes 5 %

## Key endpoints (all require `?user_id=`)

### Market data
```
GET /markets/search?q=bitcoin    Search all Polymarket markets
GET /markets/btc                 List active BTC/Bitcoin markets
GET /market/{id}                 Single market details
GET /market/{token_id}/book      Full order book (bids + asks)
GET /market/{token_id}/price     Mid-price, spread, implied probability
GET /market/{token_id}/history   5-min OHLCV candles
```

### Strategy signals
```
POST /signal                     Run EMA crossover on top BTC markets
                                 Returns BUY_YES / BUY_NO / HOLD / SKIP per market
```

### Auto-trader
```
GET  /autotrader/status          Is the auto-trader running?
POST /autotrader/start           Start 5-min BTC cycle (background task)
POST /autotrader/stop            Stop auto-trader
GET  /auto...
README
# Polymarket Edge

An OpenClaw skill that lets any AI agent browse Polymarket prediction markets, run a 5-minute BTC EMA crossover strategy, and optionally place live trades — with every API call billed via **SkillPay.me** (0.001 USDT / call).

> **Polymarket Edge** gives your agent a systematic, always-on trading edge on prediction markets — no manual research, no babysitting.

---

## Quick Start

```bash
cd polymarket-edge
cp .env.example .env          # edit SKILL_BILLING_API_KEY if needed
pip install -r requirements.txt
python main.py                # starts on http://localhost:8080
```

Open `http://localhost:8080/docs` for the interactive Swagger UI.

---

## Billing model

| Item | Value |
|------|-------|
| Platform | SkillPay.me (BNB Chain USDT) |
| Rate | 1 token per call |
| Token price | 1 USDT = 1000 tokens |
| Minimum top-up | 8 USDT |
| Withdrawal fee | 5% |

Every billed endpoint requires `?user_id=<your_id>`. If tokens run out the API returns `HTTP 402` with a `top_up_url`.

```
GET /balance?user_id=alice          → { balance: 3200, usdt_equivalent: 3.2 }
GET /topup?user_id=alice&amount=10  → { payment_url: "https://..." }
```

---

## Endpoints

### Free
| Method | Path | Description |
|--------|------|-------------|
| GET | `/` | Health check |
| GET | `/balance` | Token balance |
| GET | `/topup` | Get USDT top-up link |

### Billed (1 token each)
| Method | Path | Description |
|--------|------|-------------|
| GET | `/markets/search?q=bitcoin` | Search all markets |
| GET | `/markets/btc` | List active BTC markets |
| GET | `/market/{id}` | Single market details |
| GET | `/market/{token_id}/book` | Full order book |
| GET | `/market/{token_id}/price` | Mid-price + spread |
| GET | `/market/{token_id}/history` | 5-min OHLCV candles |
| POST | `/signal` | Run EMA crossover on BTC markets |
| GET | `/autotrader/status` | Is auto-trader running? |
| POST | `/autotrader/start` | Start 5-min BTC cycle |
| POST | `/autotrader/stop` | Stop auto-trade...

相关技能

OpenClaw

ai-maestro

23blocks-os

AI Agent Orchestrator with Skills System - Give AI Agents superpowers: memory search, code graph queries, agent-to-agent messaging. Manage Claude, Codex or any AI Agent from one dashboard. Move Agents between c...

OpenClaw

registry-broker-skills

hashgraph-online

AI agent skills for the Universal Registry - search, chat, and register 72,000+ agents across 14+ protocols. Works with Claude, Codex, Cursor, OpenClaw, and any AI assistant.

OpenClaw

skills-manager

rito-w

A cross-platform skills manager for AI IDEs. Search marketplace, download locally, and install to Claude, Cursor, Windsurf, and more with one click.