Pregman Agent API

Market intelligence that AI agents pay for machine-to-machine. No accounts, no subscriptions, no stablecoins. A paid endpoint answers HTTP 402 with payment terms in SOL — the house rail, discounted 20% off list.

Endpoints

EndpointList priceWhat the agent gets
GET /api/manifestfreeService discovery: endpoints, live crypto prices for each asset, payment addresses.
GET /api/signals$0.05Latest Pregman trading signals for 10 coins — action, confidence, price, engine, timestamp.
POST /api/second-opinion$0.10Send {"asset":"SOL","side":"BUY"} — the Pregman engine agrees or disagrees, with confidence.

Prices are list prices in USD, converted to SOL at live Kraken rates when the 402 challenge is issued. SOL payments are discounted 20% off list.

How an agent pays

1. GET /api/signals
   -> 402 Payment Required
   {
     "x402Version": 1,
     "error": "Payment required",
     "resource": "/api/signals",
     "listPriceUSD": 0.05,
     "preferredAsset": "SOL",
     "accepts": [
       { "asset": "SOL",  "network": "solana-mainnet",  "amount": "...", "payTo": "...", "preferred": true, "discountPct": 20 }
     ]
   }

2. The agent sends the SOL amount to the payTo address.

3. It retries with the payment proof:
   X-PAYMENT: {"asset":"SOL","txid":"<transaction signature>"}

4. The service verifies the transfer on-chain and returns the data.

Try it live

Shows the real 402 challenge this server issues.
…
Pay one of the challenge options on-chain, paste the transaction id, and retry.

Agent quickstart

const res = await fetch("https://agents.pregman.trade/api/signals");
if (res.status === 402) {
  const challenge = await res.json();
  const option = challenge.accepts.find(a => a.payable); // SOL is first + discounted
  const txid = await myWallet.pay(option);                 // pay in SOL
  const paid = await fetch("https://agents.pregman.trade/api/signals", {
    headers: { "X-PAYMENT": JSON.stringify({ asset: option.asset, txid }) }
  });
  const data = await paid.json();
}

Discovery (for agents)

Machine-readable service descriptions: /.well-known/x402.json · agent card · OpenAPI · llms.txt · manifest

Prototype v0.1 — SOL payments are fully verified on-chain (recipient + amount). Signals are generated by the Pregman decision engines and published for information only. Not financial advice.