changedOutput schema / (root)
Previous value: -nullNew value: +{
+ "description": "Response for ``POST /market-spread``.",
+ "properties": {
+ "asset": {
+ "title": "Asset",
+ "type": "string"
+ },
+ "buy_price": {
+ "title": "Buy Price",
+ "type": "number"
+ },
+ "buy_venue": {
+ "title": "Buy Venue",
+ "type": "string"
+ },
+ "confidence": {
+ "maximum": 1,
+ "minimum": 0,
+ "title": "Confidence",
+ "type": "number"
+ },
+ "cost_usdc": {
+ "description": "Price charged in stablecoin units (USDC/USDT 1:1); 0 on the free tier.",
+ "title": "Cost Usdc",
+ "type": "number"
+ },
+ "estimated_net_profit_usd": {
+ "title": "Estimated Net Profit Usd",
+ "type": "number"
+ },
+ "execution_risk": {
+ "enum": [
+ "low",
+ "medium",
+ "high"
+ ],
+ "title": "Execution Risk",
+ "type": "string"
+ },
+ "fees_bps": {
+ "title": "Fees Bps",
+ "type": "number"
+ },
+ "fetched_at": {
+ "description": "UTC timestamp when the data was fetched.",
+ "format": "date-time",
+ "title": "Fetched At",
+ "type": "string"
+ },
+ "freshness_seconds": {
+ "description": "Age of the underlying data in seconds (0 = fetched live).",
+ "title": "Freshness Seconds",
+ "type": "integer"
+ },
+ "gross_spread_bps": {
+ "title": "Gross Spread Bps",
+ "type": "number"
+ },
+ "net_spread_bps": {
+ "title": "Net Spread Bps",
+ "type": "number"
+ },
+ "quote": {
+ "title": "Quote",
+ "type": "string"
+ },
+ "routing": {
+ "description": "How the request was routed (provider, fallback, cache, latency).",
+ "properties": {
+ "cache_hit": {
+ "default": false,
+ "description": "True if the result was served from cache.",
+ "title": "Cache Hit",
+ "type": "boolean"
+ },
+ "fallback_used": {
+ "default": false,
+ "description": "True if the primary provider failed and a fallback served the result.",
+ "title": "Fallback Used",
+ "type": "boolean"
+ },
+ "latency_ms": {
+ "default": 0,
+ "description": "End-to-end routing latency in milliseconds.",
+ "title": "Latency Ms",
+ "type": "integer"
+ },
+ "provider": {
+ "description": "Name of the upstream provider that served the result.",
+ "title": "Provider",
+ "type": "string"
+ },
+ "providers_tried": {
+ "description": "Providers attempted, in order.",
+ "items": {
+ "type": "string"
+ },
+ "title": "Providers Tried",
+ "type": "array"
+ }
+ },
+ "required": [
+ "provider"
+ ],
+ "title": "RoutingMeta",
+ "type": "object"
+ },
+ "sell_price": {
+ "title": "Sell Price",
+ "type": "number"
+ },
+ "sell_venue": {
+ "title": "Sell Venue",
+ "type": "string"
+ },
+ "slippage_bps": {
+ "title": "Slippage Bps",
+ "type": "number"
+ },
+ "token": {
+ "default": "USDC",
+ "description": "Token actually used for payment (USDC, USDT or FREE).",
+ "title": "Token",
+ "type": "string"
+ },
+ "transfer_cost": {
+ "description": "Absolute transfer/gas cost in quote units.",
+ "title": "Transfer Cost",
+ "type": "number"
+ },
+ "transfer_cost_bps": {
+ "title": "Transfer Cost Bps",
+ "type": "number"
+ },
+ "x_payment_response": {
+ "description": "Base64-encoded x402 settlement receipt (mirrors the X-PAYMENT-RESPONSE header). Only present when the call was paid with `x_payment`.",
+ "type": "string"
+ }
+ },
+ "required": [
+ "asset",
+ "quote",
+ "buy_venue",
+ "sell_venue",
+ "buy_price",
+ "sell_price",
+ "gross_spread_bps",
+ "fees_bps",
+ "slippage_bps",
+ "transfer_cost",
+ "transfer_cost_bps",
+ "net_spread_bps",
+ "estimated_net_profit_usd",
+ "confidence",
+ "execution_risk",
+ "freshness_seconds",
+ "cost_usdc",
+ "routing"
+ ],
+ "type": "object"
+}