Compute mid price from bid/ask top-of-book levels
Compute mid price from bid/ask top-of-book levels. Call when you have L1 bid and ask and need a mid for marks. Returns mid, spread_abs, and spread_bps as deterministic JSON for $0.001 USDC via x402 on Base. First-party local math only—no RPC, live market feed, API keys, storage, or mediagen. Advisory only; the caller owns capital, risk, and production controls.
Answeringour last check, 2026-09-24
1 of 1checks answered this week
1253 msmedian answer time
$0.001listed price per call
$0.001price it asked us
Paid test badge: not yet. The checks above are free: we call the tool without paying and read the payment request it sends back. The Verified badge needs paid calls whose answers match the promised output, and nobody can buy a badge.
Endpoint
POST https://api.delx.ai/api/v1/x402/ob-mid-from-levels
| Category | Market data |
|---|---|
| Provider host | api.delx.ai |
| Networks | eip155:8453, solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp |
| Payment schemes | exact |
| Self-reported calls, 30 days | 1 from 1 payers (the provider's figure, not ours) |
Our checks, last 30 days
| Day | Result | HTTP | Asked | Time |
|---|---|---|---|---|
| 2026-09-24 | valid payment request | 402 | $0.001 | 1253 ms |
Example input (from the provider)
{
"body": {
"ask": 100.2,
"bid": 100
},
"bodyType": "json",
"method": "POST",
"type": "http"
}
Promised output schema (from the provider)
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"properties": {
"body": {
"additionalProperties": true,
"properties": {
"ask": {
"description": "Best ask price (top of book)",
"type": "number"
},
"bid": {
"description": "Best bid price (top of book)",
"type": "number"
}
},
"required": [
"bid",
"ask"
],
"type": "object"
},
"bodyType": {
"const": "json",
"type": "string"
},
"method": {
"const": "POST",
"type": "string"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method",
"bodyType",
"body"
],
"type": "object"
},
"output": {
"additionalProperties": true,
"description": "Bounded first-party JSON result; input is processed in memory and not retained.",
"properties": {
"ask": {
"type": "number"
},
"bid": {
"type": "number"
},
"mid": {
"type": "number"
},
"schema": {
"type": "string"
},
"spread_abs": {
"type": "number"
},
"spread_bps": {
"type": "number"
}
},
"type": "object"
}
},
"required": [
"input",
"output"
],
"type": "object"
}