sbaker5

polyedge

x402 trading signal API for Polymarket - detect mispriced correlations between prediction markets

sbaker5 0 Updated 3mo ago
GitHub

Install

npx skillscat add sbaker5/polyedge

Install via the SkillsCat registry.

SKILL.md

PolyEdge

The first x402 trading signal API for prediction markets.

Detect mispriced correlations between Polymarket events. Pay with USDC on Base, get alpha.

Quick Start

# 1. Request analysis (get 402 + payment instructions)
curl https://api.nshrt.com/api/v1/correlation?a=<slug-a>&b=<slug-b>

# 2. Pay 0.05 USDC to the wallet address on Base L2

# 3. Retry with payment proof
curl -H "X-Payment: 0x<tx_hash>" \
  "https://api.nshrt.com/api/v1/correlation?a=<slug-a>&b=<slug-b>"

Endpoints

Endpoint Price Description
GET / Free API info
GET /health Free Health check
GET /dashboard Free Activity dashboard
GET /api/v1/correlation?a=&b= $0.05 USDC Correlation analysis

Payment

  • Network: Base L2
  • Asset: USDC
  • Price: $0.05 per request
  • Protocol: x402
  • Window: 1 minute per payment

Response Format

{
  "market_a": { "question": "...", "yes_price": 0.72 },
  "market_b": { "question": "...", "yes_price": 0.45 },
  "analysis": {
    "pattern_type": "category",
    "expected_price_b": 0.61,
    "mispricing": 0.16,
    "confidence": "medium"
  },
  "signal": {
    "action": "BUY_YES_B",
    "strength": "strong",
    "reason": "Market B underpriced by 16%"
  }
}

Signal Types

  • BUY_YES_A/B - Market underpriced
  • BUY_NO_A/B - Market overpriced
  • HOLD - No significant mispricing
  • SKIP - Markets are mutually exclusive

Links