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/execution-latency
Execution Latency Benchmarks Institutional Crypto Telemetry

Empirical cross-venue fill speeds and broadcast timings across Coinbase REST and Aerodrome DEX (p50, p90, p99, fill rate).

PARAMS: date (YYYY-MM-DD), time (HHMM), venue ("coinbase" | "base_dex")
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/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
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/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.