Skip to content

wizerai1111/sharpsignal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

SharpSignal

Prediction Market Edge Intelligence — Pay Per Query

x402 Protocol Base Blockchain USDC Payments


What It Does

SharpSignal is a pay-per-query A2A (agent-to-agent) API that delivers structured probability analysis for prediction market questions. Submit any yes/no or probability proposition — SharpSignal queries Perplexity's sonar-reasoning-pro model with live web search across financial news sources (Bloomberg, Reuters, WSJ, CNBC, Polymarket) and returns a structured edge report covering the current state of affairs, bull and bear cases, and an implied probability estimate. No account, no subscription, no API key required — just send USDC on Base and get actionable intelligence.


Pricing

Price per query $0.25 USDC
Subscription required No
Account required No
API key required No
Payment chain Base (L2)

How It Works

  1. Send $0.25 USDC on Base to: 0x14a129b3e3Bd154c974118299d75F14626A6157B
  2. Copy your transaction hash from basescan.org
  3. POST to the gateway with the tx hash in the Authorization header

Gateway URL

https://xosljjzcpsouwifbclsy.supabase.co/functions/v1/payment_gate

Request Format

curl -X POST "https://xosljjzcpsouwifbclsy.supabase.co/functions/v1/payment_gate" \
  -H "Content-Type: application/json" \
  -H "Authorization: x402 <macaroon>:0xYOUR_TX_HASH" \
  -d '{"route": "prediction-edge", "prompt": "Will the Fed cut interest rates in May 2026?"}'

Body parameters:

Field Type Description
route string Always "prediction-edge"
prompt string Your prediction market question

Authorization header format:

x402 <macaroon>:0xYOUR_TX_HASH
  • <macaroon> — any non-empty string (reserved for future access control)
  • 0xYOUR_TX_HASH — the Base transaction hash from your $0.25 USDC payment

Response Format

{
  "status": "success",
  "data": {
    "choices": [
      {
        "message": {
          "content": "## Current Reality\n\n[Two-paragraph summary of the current state of affairs, grounded in live web search results from Bloomberg, Reuters, WSJ, CNBC, and Polymarket.]\n\n## Bull Case (Yes)\n- [Factor supporting the event occurring]\n- [Market signal or data point favoring YES]\n- [Structural or macro tailwind]\n\n## Bear Case (No)\n- [Factor working against the event]\n- [Counter-indicator or opposing signal]\n- [Risk or uncertainty that suppresses probability]\n\n## Implied Probability Estimate\n**62%** — [One-sentence justification based on current market conditions and evidence weight.]"
        }
      }
    ]
  }
}

The content field contains a structured Markdown analysis with four sections:

Section Description
Current Reality 2-paragraph summary of the current state of affairs, sourced from live web search
Bull Case (Yes) Bullet points supporting the event occurring
Bear Case (No) Bullet points arguing against
Implied Probability Estimate 0–100% with one-sentence justification

Powered By

Component Technology
AI reasoning + live web search Perplexity sonar-reasoning-pro
Payment protocol x402
Payment chain Base + USDC
Serverless runtime Supabase Edge Functions

Use Cases

  • AI agents making autonomous prediction market trades on Polymarket, Kalshi, or Metaculus
  • Developers building prediction market research bots and alert systems
  • On-chain agents that need real-time probability intelligence before executing trades
  • Quant researchers stress-testing market hypotheses against live news sources
  • LLM pipelines that need a grounded, structured probability signal as a tool call

Error Responses

HTTP Status Error Meaning
402 Payment Required No valid Authorization: x402 header sent
402 Payment already used This tx hash was already spent (replay protection)
402 Transaction not found on Base Tx is pending or invalid
402 Insufficient payment USDC amount sent was below $0.25
404 Route not configured Route name not recognized

Built On

SharpSignal is part of the Swarmrails ecosystem — a suite of x402-gated AI APIs built for autonomous agents on Base.

About

Prediction Market Edge Intelligence — Pay Per Query. x402 USDC-gated AI API on Base.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors