GET /v1/liquidity/{slug}

$0.03realtimetier: datacache 10sEngine A — Probability API

Execution-quality summary per venue: depth within 1c/5c of the touch, spread in cents, and an hourly 24h volume profile. Pass notional_usd for a slippage estimate. Derived analytics only — raw order books are never mirrored.

Parameters

NameInTypeRequiredNotes
slugpathstringyes
notional_usdquerynumberno

Example

curl "https://x402-factory.com/v1/liquidity/bitcoin-above-150k-2026-09?notional_usd=5000"

Example response

{
  "data": {
    "per_venue": [
      {
        "venue": "kalshi",
        "depth_within_1c_usd": 43511.16,
        "depth_within_5c_usd": 220022.94,
        "spread_c": 1,
        "est_slippage_c": 0.11
      },
      {
        "venue": "polymarket",
        "depth_within_1c_usd": 52295.06,
        "depth_within_5c_usd": 175633.51,
        "spread_c": 1,
        "est_slippage_c": 0.14
      }
    ],
    "volume_24h_usd": 591880.68,
    "volume_profile_24h": [
      {
        "hour": 13,
        "volume_usd": 22654.53
      },
      {
        "hour": 14,
        "volume_usd": 28433.7
      },
      {
        "hour": 15,
        "volume_usd": 23554.93
      },
      {
        "hour": 16,
        "volume_usd": 24849.59
      },
      {
        "hour": 17,
        "volume_usd": 27004.33
      },
      {
        "hour": 18,
        "volume_usd": 24873.7
      },
      {
        "hour": 19,
        "volume_usd": 20998.15
      },
      {
        "hour": 20,
        "volume_usd": 22003.64
      },
      {
        "hour": 21,
        "volume_usd": 31425.32
      },
      {
        "hour": 22,
        "volume_usd": 24433.02
      },
      {
        "hour": 23,
        "volume_usd": 28671.91
      },
      {
        "hour": 0,
        "volume_usd": 21033.08
      },
      {
        "hour": 1,
        "volume_usd": 19440.17
      },
      {
        "hour": 2,
        "volume_usd": 27355.65
      },
      {
        "hour": 3,
        "volume_usd": 33541.3
      },
      {
        "hour": 4,
        "volume_usd": 19872.25
      },
      {
        "hour": 5,
        "volume_usd": 20189.92
      },
      {
        "hour": 6,
        "volume_usd": 28022.61
      },
      {
        "hour": 7,
        "volume_usd": 25217.71
      },
      {
        "hour": 8,
        "volume_usd": 20702.89
      },
      {
        "hour": 9,
        "volume_usd": 26834.01
      },
      {
        "hour": 10,
        "volume_usd": 22330.71
      },
      {
        "hour": 11,
        "volume_usd": 22008.88
      },
      {
        "hour": 12,
        "volume_usd": 19213.25
      }
    ]
  },
  "meta": {
    "endpoint": "/v1/liquidity/{slug}",
    "version": "1.0.0",
    "generated_at": "2026-08-18T22:54:16.833Z",
    "freshness": "realtime",
    "sources": [
      "kalshi",
      "polymarket"
    ],
    "request_id": "req_00000000",
    "docs": "https://x402-factory.com/docs/probability.liquidity",
    "data_mode": "live"
  }
}

Response schema (data payload)

{
  "type": "object",
  "properties": {
    "per_venue": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "venue": {
            "type": "string",
            "enum": [
              "kalshi",
              "polymarket"
            ]
          },
          "depth_within_1c_usd": {
            "type": "number"
          },
          "depth_within_5c_usd": {
            "type": "number"
          },
          "spread_c": {
            "type": "number"
          },
          "est_slippage_c": {
            "type": "number"
          }
        },
        "required": [
          "venue",
          "depth_within_1c_usd",
          "depth_within_5c_usd",
          "spread_c"
        ],
        "additionalProperties": false
      }
    },
    "volume_24h_usd": {
      "type": "number"
    },
    "volume_profile_24h": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "hour": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "volume_usd": {
            "type": "number"
          }
        },
        "required": [
          "hour",
          "volume_usd"
        ],
        "additionalProperties": false
      }
    }
  },
  "required": [
    "per_venue",
    "volume_24h_usd",
    "volume_profile_24h"
  ],
  "additionalProperties": false
}

The platform wraps every payload in an envelope: { "data": …, "meta": { endpoint, version, generated_at, freshness, sources, request_id, docs, data_mode } }.

Payment (x402)

Unpaid requests receive 402 with payment requirements (accepts). Pay $0.03 in USDC on Base per call via an X-PAYMENT header — see docs.x402.org. With PAYMENT_MODE=disabled (local dev) the endpoint is open.

Errors

StatusCodeMeaning
400INVALID_PARAMSInput failed validation; message lists the offending fields.
404NOT_FOUNDNo matching resource; suggestion may point to a sibling endpoint.
410RESOLVEDMarket/event settled; body includes a resolution summary.
503STALE_DATAUpstream feed down; stale data is never silently served beyond 2× cache TTL.
500INTERNALOur bug. The request_id helps us find it.