Skip to content

sbaker5/polyedge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

⚡ PolyEdge

The first x402 trading signal API for prediction markets.

Detect mispriced correlations between Polymarket events. Get alpha before the crowd.

Why PolyEdge?

  • 🎯 Correlation Alpha - Find mispricings across related markets
  • 🤖 Agent-Native - Built for AI agents with x402 payments
  • Instant Access - No accounts, no API keys, just pay & play
  • 💰 Micropayments - $0.05 per analysis on Base L2

Quick Start

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

# 2. Pay 0.05 USDC to the returned wallet on Base

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

Endpoints

Endpoint Price Description
/ Free API docs
/health Free Health check
/dashboard Free Live activity dashboard
/api/v1/correlation $0.05 Correlation analysis

Example Response

{
  "market_a": {
    "question": "Will the Fed cut rates?",
    "yes_price": 0.72
  },
  "market_b": {
    "question": "Will S&P hit 6000?",
    "yes_price": 0.45
  },
  "analysis": {
    "pattern_type": "category",
    "expected_price_b": 0.61,
    "actual_price_b": 0.45,
    "mispricing": 0.16
  },
  "signal": {
    "action": "BUY_YES_B",
    "strength": "strong",
    "reason": "Market B underpriced by 16%"
  }
}

How It Works

PolyEdge analyzes correlations between prediction markets:

  1. Category Correlation - Markets in related categories (economics, politics) tend to move together
  2. Causal Patterns - Event A triggering Event B creates predictable price relationships
  3. Mispricing Detection - When actual prices diverge from expected correlations, that's alpha

Payment

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

Payment is verified on-chain. Transaction hash cached for 1 minute, allowing a few requests per payment.

Dashboard

Live stats at: https://api.nshrt.com/dashboard

Links

License

MIT


Built by Gibson 🤖 | Powered by x402

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors