0
0MOD.API
DEVELOPER SPECIFICATION v2.0

API GATEWAY ENDPOINTS

Institutional crypto market telemetry & modular edge micro-utilities for autonomous AI agents. Sub-second execution at Cloudflare's edge with dynamic HTTP 402 settlement on Base USDC.

NETWORK: BASE MAINNET (8453)
ASSET: USDC (0x8335...2913)
RECEIVER: 0x1AaD...7501

// AVAILABLE ROUTE SPECIFICATIONS

PRICING IS EXCLUSIVELY DYNAMIC — ALL PAID ROUTES CHALLENGE VIA HTTP 402 ON BASE USDC.
AUTHORITATIVE LIVE METADATA & PARAMS: /api/v1/discovery

ROUTE SPECIFICATION & PARAMETERS SETTLEMENT
GET /api/v1/crypto/dislocations
Market Dislocation Stream Institutional Crypto Telemetry

Synchronized cross-venue dislocation events between Coinbase and Aerodrome Base DEX (buy/sell venue, prices, spread bps, net profit).

PARAMS: pair (string, required), date (YYYY-MM-DD), time (HHMM)
DYNAMIC (x402)
GET /api/v1/crypto/arb-leaderboard
Cross-Pair Arb Leaderboard & Half-Life Radar Institutional Crypto Telemetry

Single-call cross-pair arbitrage opportunity screener and spread persistence radar ranking all 12 supported Base pairs by dislocation count, p50/p90 duration half-life, survival curves, CEX/DEX book depth, and optimal clip size.

PARAMS: date (YYYY-MM-DD, optional — omit for latest radar), time (HHMM, optional, default "0000")
DYNAMIC (x402)
GET /api/v1/crypto/regimes
CEX-DEX Spread Percentiles & Volatility Regimes Institutional Crypto Telemetry

Per-pair 24h and 7d net_spread_bps percentile distributions (p10..p99), positive_net_rate, sample_count, latest_spread_bps, and volatility regime classification (compressed/normal/elevated/extreme).

PARAMS: pair (string, optional), date (YYYY-MM-DD, optional — omit for latest regime snapshot)
DYNAMIC (x402)
POST /api/v1/crypto/impact-simulation
Pre-Trade Impact Simulation Institutional Crypto Telemetry

Pre-trade impact check against the LIVE L2 book: expected fill price (VWAP), slippage (bps), fillable size, and fill-probability for a hypothetical order. Read-only PAPER simulation — no custody is touched.

PARAMS: pair (string, required), side ("buy" | "sell"), size_base (number) or size_usd (number)
DYNAMIC (x402)
GET /api/v1/crypto/daily-rollup
CEX-DEX Daily Spread Rollup Institutional Crypto Telemetry

Full-day CEX-DEX 15-minute spread candles and daily summary metrics (sample_count, positive_net_count, p50/p90 duration, avg CEX/DEX depth, max_raw_spread_bps, cex_buy_share_pct) for a (pair, date).

PARAMS: pair (string, required), date (YYYY-MM-DD, required)
DYNAMIC (x402)
POST /api/v1/crypto/venue-routing
Live CEX vs DEX Venue Routing Institutional Crypto Telemetry

Compares live Coinbase L2 book depth against Base DEX pool state for { pair, side, size_usd } and returns expected_fill_price, slippage_bps, all_in_cost_bps, best_venue, net_savings_usd, and split_allocation.

PARAMS: pair (string, required), side ("buy" | "sell"), size_usd (number, required)
DYNAMIC (x402)
GET /api/v1/crypto/spread-candles
CEX-DEX Spread Candles Institutional Crypto Telemetry

Cross-venue 15-minute spread candles (OHLC raw/net spread bps, average net profit, and aggregate book depth).

PARAMS: pair (string, required), date (YYYY-MM-DD), time (HHMM), interval (string, default "15m")
DYNAMIC (x402)
GET /api/v1/crypto/coverage
Crypto Telemetry Coverage Institutional Crypto Telemetry

Active data coverage boundaries, timestamps, and supported pair registry across 13+ tracked pairs.

PARAMS: pair (string, optional)
FREE
GET /api/v1/crypto/sample
Crypto Telemetry Sample (Free Teaser) Institutional Crypto Telemetry

Free recent 15-minute CEX-DEX telemetry teaser returning up to 3 real dislocation/candle rows from R2 plus coverage boundaries and paid upgrade hints.

PARAMS: pair (string, optional, default "ETH/USD")
FREE
GET /api/v1/crypto/pulse
Crypto Market Pulse (Free Radar) Institutional Crypto Telemetry

Free aggregate CEX-DEX market activity radar returning active_pairs, dislocations_last_hour, max_spread_bps, median_spread_bps, and venues_active across Base plus upgrade hints.

PARAMS: none (ungated)
FREE
POST /api/v1/dex-price-summary
DEX Price Summary Modular Edge Utilities

Real-time DEX token price, 24h volume, liquidity, and top pair stats across chains via DexScreener.

PARAMS: query (string, required)
DYNAMIC (x402)
POST /api/v1/stealth-dom
Stealth DOM Modular Edge Utilities

Headless edge web page fetcher. Converts HTML to clean Markdown via Turndown or returns raw body.

PARAMS: url (string, required), format ("markdown" | "text" | "raw"), userAgent (string), timeout (ms)
DYNAMIC (x402)
POST /api/v1/url-markdown
URL to Markdown Modular Edge Utilities

Hybrid edge HTML-to-Markdown + Cloudflare Browser Run JS-rendering converter. Strips script/style/nav/footer boilerplate and returns LLM-ready Markdown with title, word_count, char_count, and rendered flag.

PARAMS: url (string, required), render (boolean, optional), userAgent (string, optional), timeout (ms, optional)
DYNAMIC (x402)
POST /api/v1/airgap-scrub
Airgap Scrub Modular Edge Utilities

Stateless pre-LLM privacy filter. Redacts PII/PCI (SSNs, Credit Cards, Phones, Addresses, Emails, ZIPs) before sending text to external LLMs. Zero retention.

PARAMS: text (string, required), strictMode (boolean)
DYNAMIC (x402)
POST /api/v1/domain-check
Domain Check Modular Edge Utilities

Direct global RDAP WHOIS registry lookup for .com, .net, .org, and global TLDs from the Cloudflare edge.

PARAMS: domain (string, required)
DYNAMIC (x402)
POST /api/v1/image-ocr-shrink
Image OCR Shrink Modular Edge Utilities

Vision OCR text and table markdown extractor from image URLs using Workers AI Vision Llama 3.2.

PARAMS: imageUrl (string, required)
DYNAMIC (x402)

// INTERACTIVE x402 TEST CONSOLE

Test live HTTP 402 challenges from your browser, inspect schemas & sample payloads, or test settlement.

NO WALLET
BASE (8453) USDC
STATUS: READY // SELECT ACTION -- ms
// Click "RUN 402 PROBE" to execute an unauthenticated live call against api.0mod.com.
// The edge gateway will return the HTTP 402 Payment Required challenge and payment contract parameters.
// Or click "VIEW SAMPLE DATA" to inspect the canonical response schema immediately.

// HTTP 402 PROTOCOL SPEC

All routes are protected by the x402 protocol. Initial calls without a payment header return HTTP 402 with contract parameters.

1. POST /api/v1/stealth-dom → 402 Payment Required
2. Sign EIP-712 off-chain authorization payload
3. Add header: PAYMENT-SIGNATURE: <base64>
4. Resubmit → 200 OK + Data Payload

// DISCOVERY & HEALTH

Machine-readable OpenAPI/JSON discovery schemas for autonomous AI agents.