Skip to content

About

Echo Markets is a Paybox plugin for Prediction-market intelligence for AI agents, sold a few cents at a time over x402. No accounts, no API keys — the payment is the credential.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

23 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EchoMarkets

EchoMarkets

Now your agent can buy the signal.
Paid prediction-market intelligence for AI agents — consumed in PayBox, executable in Dawn.

Website · Demo video · Live API · MoonPay Hackathons · Chapter 1


Why this exists

Dawn lets an LLM write and run a Polymarket strategy. PayBox gives that agent a wallet it can spend from. Nobody was selling the thing in between: a conclusion. Dawn's strategies can pull raw feeds, odds and web pages and reason about them. EchoMarkets sells what comes out the other end: a direction, a confidence score and the reasons, to any agent with a PayBox wallet. Two cents, no account.

Dawn's LLM can write the strategy. EchoMarkets tells it when to act.

What it is

EchoMarkets is a PayBox plugin and an x402 API that sells prediction-market intelligence to AI agents, a few cents at a time. No accounts, no API keys — the payment is the credential.

Ask your agent Cost What comes back
“Find me a market on the next Fed decision and preview it.” free Live odds, bid/ask spread, liquidity and resolution date from Polymarket
“Get me the full brief.” 0.02 USDC Order-book depth, 24h movement, resolution criteria and risk notes
“Buy the signal-follow template for this market.” 0.10 USDC A ready-to-run Dawn strategy for that market, with 24 hours of signal access

Payments are USDC on Solana mainnet. Every paid call is an x402 proposal that PayBox shows the user for approval before it pays. EchoMarkets never holds funds or keys. Signals are not financial advice.

Status: the plugin is submitted for PayBox marketplace review as part of MoonPay Hackathons Chapter 1. The x402 API is live now for any x402 client, PayBox's use_service included.

How it works

Agent (Claude, ChatGPT…) ──use_plugin──▶ PayBox sandbox runs plugin/dist/plugin.mjs
                                           ├─ search_markets     free · Polymarket Gamma API
                                           ├─ brief_preview      free · Polymarket Gamma + CLOB
                                           ├─ list_templates     free · no network
                                           ├─ buy_brief          x402 proposal → GET  /api/brief/{market}     0.02 USDC
                                           └─ buy_template       x402 proposal → POST /api/templates/{slug}  0.10 USDC
PayBox shows the payment → user approves → PayBox pays and retries → agent gets the brief or the Dawn .py

Dawn strategy ──Bearer token (24h, HMAC)──▶ GET /api/signal/{market}   direction · confidence · reasons
  1. Enable EchoMarkets under Plugins in PayBox.
  2. Ask your agent. Search and preview are free.
  3. Approve the 2¢ or 10¢ payment when PayBox shows it.
  4. The brief, or a personalised strategy file, lands in chat.
  5. Run the strategy in Dawn (paper mode by default): dawn strategy launch file.py --name demo --budget 20

No plugin? Paste this into any agent with a PayBox wallet:

Read https://www.echomarkets.xyz/api/templates. Using my PayBox wallet, buy me a brief on <market>, then the signal-follow template for it. Save the python to a file and tell me the dawn command to launch it in paper mode.

What the signal looks like

The signal is plain JSON. The strategy is plain Python.

{
  "direction": "buy",
  "confidence": 0.72,
  "reasoning": [
    "tight spread 1.0¢",
    "liquidity $184,220",
    "order book bid-heavy"
  ]
}

It is computed from live Polymarket order books: spread, liquidity, price band and bid/ask balance. It is a transparent heuristic, not a model, and every response carries its reasons so an agent or strategy can decide how much weight to give it. A public hit-rate page is on the roadmap.

Strategy templates

Each template is generated for one market and one outcome, ships with a 24-hour signal token, simulates before it buys, gates on price impact and respects the Dawn budget. Paper mode by default; add --live for real funds. --budget N is always required and caps cumulative buys server-side.

Template Does Parameters
signal-follow Polls the EchoMarkets signal and buys when confidence clears a threshold threshold, size_usd, hours
event-trigger Sleeps until a time window, watches an external JSON feed, buys when the condition fires feed_url, window_start, window_end, size_usd
mean-reversion Buys when the outcome price drops more than X% from the recent baseline drop_pct, lookback_minutes, size_usd

API

The same routes answer any x402 client, including PayBox's use_service.

Method Route Price Returns
GET /api/brief/{market} 0.02 USDC · x402 Full brief for one market
POST /api/templates/{slug} 0.10 USDC · x402 Personalised Dawn strategy + 24h signal token
GET /api/signal/{market} bearer token Direction, confidence and reasoning — polled by the strategy
GET /api/templates free What is for sale and how to buy it
curl -i https://www.echomarkets.xyz/api/brief/<polymarket-slug>
# → HTTP 402 Payment Required + x402 payment requirements

Repository

echomarkets/
├── plugin/   PayBox plugin — MCP server bundled to dist/plugin.mjs (PayBox starter v1.0.2)
└── web/      Next.js 16 app — landing page + x402 API on www.echomarkets.xyz

The two folders are independent (separate lockfiles, no workspace). The only shared values are the prices, which must match exactly: brief 20000 and template 100000 atomic USDC (6 decimals).

Plugin (plugin/)

Requires Node 24 and pnpm 11.11.0.

cd plugin
pnpm install --frozen-lockfile
pnpm test        # type-check, deterministic build ×2, conformance

Upload dist/plugin.mjs in the PayBox developer portal. Network hosts: www.echomarkets.xyz, gamma-api.polymarket.com, clob.polymarket.com. The server URL can be overridden with the portal env var ECHO_BASE.

The plugin follows the PayBox sandbox rules: no network at startup or discovery, every fetch bounded to 4 s, no state between calls, stdout reserved for MCP.

Server (web/)

See web/README.md for setup, environment variables and deployment.

Built with

PayBox · Dawn · Polymarket · Solana · x402 · Coinbase CDP · Next.js

License

MIT © 2026 Ivan Molto. Files that come from the PayBox plugin starter (plugin/src/paybox.ts, plugin/scripts/) remain under PayBox's own terms.


Built with love for MoonPay Hackathons - Chapter 1 from sunny Malta by Ivan Molto.

About

Echo Markets is a Paybox plugin for Prediction-market intelligence for AI agents, sold a few cents at a time over x402. No accounts, no API keys — the payment is the credential.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages