# BlockQuant B2B Gateway > Lossless Uniswap V3 WETH/USDC (0.05%) tick data and sandboxed parametric > backtesting compute on Base Mainnet, sold to humans and autonomous agents and > settled in USDC over the native x402 payment protocol. All paid endpoints are > machine-negotiable: an unpaid request returns HTTP 402 with the exact price and > pay-to requirements, and the same request replayed with a valid `X-Payment` > header is verified, settled on-chain, and served. Base URL: https://api.blockquant.tech Network: Base Mainnet (chainId 8453) Currency: USDC (native Base USDC, 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913, 6 decimals) Dataset asset: WETH/USDC 0.05% Uniswap V3 pool, Base Mainnet CSV schema (every product): timestamp,blockNumber,tick,sqrtPriceX96,usdcPrice ## Pricing (USD price tokens, settled in USDC on Base) - $1.00 — GET /api/v1/data/stream — one targeted block-range tick query - $5.00 — GET /api/v1/data/archive/{date} — one full closed UTC day, zipped CSV - $25.00 — POST /api/v1/matrix/backtest — one sandboxed parametric backtest sweep ## How payment works (x402 / X-Payment header) 1. Send the normal HTTP request to a paid endpoint with NO payment. 2. The gateway answers `402 Payment Required`. The body + headers carry the payment requirements: price, asset (USDC), network (`base`), and the pay-to address. The authoritative live pay-to address is also exposed at GET /api/v1/status (field: payments.payTo). 3. Construct an x402 payment authorization (EIP-3009 transfer authorization for USDC on Base) for the quoted amount to the pay-to address, base64-encode the x402 payload, and replay the IDENTICAL request with header: X-Payment: 4. The gateway verifies and settles via the Coinbase CDP facilitator, then returns the product. A settlement receipt is returned in the `X-Payment-Response` header. Reuse of a spent authorization is rejected. Use the standard x402 client tooling (e.g. x402-fetch / x402-axios) to automate steps 2–4; it handles the 402 challenge, signing, and replay transparently. ## Free, non-billed endpoints (no X-Payment required) - GET /healthz — liveness probe - GET /api/v1/status — service info, live network/mode, pay-to address, pricing, catalog range - GET /api/v1/catalog — dataset asset, CSV schema string, list of available closed days ## Endpoint: GET /api/v1/data/stream ($1.00) Targeted historical block-range query over ONE closed UTC day. Query parameters: - date (required) YYYY-MM-DD, must be a closed (past) UTC day. Today/future rejected. - format (optional) raw | human. Default: raw. - limit (optional) integer 1..5000. Default 500. Returns the LAST N matching rows, in chronological order. - fromBlock (optional) integer >= 0. Keep only rows with blockNumber >= fromBlock. format=raw (default, recommended for bots / lossless math): Each row = { timestamp, blockNumber, tick, sqrtPriceX96 }. `sqrtPriceX96` is the un-truncated uint160 returned AS A STRING — no float rounding, no precision loss. Cast it yourself for exact pool math. format=human (for spreadsheets / quick reads): Each row = { timestamp, blockNumber, tick, usdcPricePerEth, usdcPriceCsv }. `usdcPricePerEth` is base-10 USDC/ETH computed on the fly from sqrtPriceX96; `usdcPriceCsv` is the price as stored in the source CSV. Lossy — do not use for exact reconciliation; use format=raw for that. Response: { status, date, format, fromBlock, limit, matchedTotal, count, rows[] }. ## Endpoint: GET /api/v1/data/archive/{date} ($5.00) Full closed-day raw tick archive. Path param `date` = YYYY-MM-DD (closed UTC day). Returns a streamed, memory-safe ZIP (application/zip) containing base_price_ticks_{date}.csv with the canonical schema. Best value for bulk / training-data pulls of an entire day. ## Endpoint: POST /api/v1/matrix/backtest ($25.00) Sandboxed parametric backtest sweep over one or more closed days. The engine runs inside an OS-level jail; the request config is strictly allowlisted (unknown keys rejected — no arbitrary code path on the Base tier). Request body (application/json): { "dates": ["YYYY-MM-DD", ...], // required, closed UTC days; unknown days reported as missing "config": { // optional; defaults shown "candleMinutes": 1, // one of 1, 3, 5, 10 "matrix": { "profitTargets": [0.001,0.002,0.005], // each 0.0001..0.5, <=12 values "stopLosses": [0.003,0.005,0.01], // each 0.0001..0.5, <=12 values "bidLayerCounts": [1,5,10] // each int 1..50, <=12 values }, // product of the three arrays must be <= 1000 cells "indicators": [ // 1..6, built-in kernels only, no duplicates { "name": "rsi", "params": { "period": 14 } }, { "name": "bbands", "params": { "period": 20, "stdDev": 2 } }, { "name": "macd", "params": { "fast": 12, "slow": 26, "signal": 9 } } ], "feeBps": 5, // 0..100 "notionalPerLayer": 1000, // 1..1000000 "topN": 25, // 1..100 "rankBy": "netPnLPct" // one of netPnLPct, fillRate, trades } } Response: { status, schema, engineVersion, generatedAt, requestedDates, presentDates, missingDates, matrixSize, rankBy, winner, leaderboard[] }. ## Machine documentation - x402 manifest: https://api.blockquant.tech/.well-known/x402.json - OpenAPI 3.0.3: https://api.blockquant.tech/openapi.yaml - This file: https://api.blockquant.tech/llms.txt - Human handbook: https://blockquant.tech/