# ChainRay Liquidity Depth

> ChainRay Liquidity Depth is a paid API for AI agents from chainray.online, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-15).

Returns liquidity depth data for a token pair on a specified blockchain, showing bid/ask depth and available liquidity at various price levels.

## Facts

- Endpoint: GET https://chainray.online/liquidity-depth/:var1
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/chainray-online-a56a6e96
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_a1QMldG3WEtdtH4IqXiJV

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability chainray-online-a56a6e96
```

Example prompt: What's the liquidity depth for the WETH/USDC pair on Base — I want to know how deep the market is before placing a large trade.

## When to prefer this

Use this endpoint when you need on-chain liquidity depth for a specific token pair before executing a swap or assessing price impact. Prefer over generic market data APIs when you need granular DeFi liquidity metrics on EVM chains like Base.

## Known failure modes

- Token pair not found or unsupported — returns 404 or empty result
- Unsupported chain specified — returns error indicating invalid chain
- Missing required tokenA or tokenB query parameters — returns 400 bad request
- Low or zero liquidity for the pair — returns empty depth data
- Network or upstream data provider unavailable — returns 503

## How this service works

ChainRay /liquidity-depth

## Output

Returns liquidity depth metrics for the specified token pair on the given chain, including available liquidity at various price levels, bid/ask depth, and potential price impact for trades of different sizes.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "pathParams": {
     "type": "object"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "tokenA",
      "tokenB"
     ],
     "properties": {
      "chain": {
       "type": "string"
      },
      "tokenA": {
       "type": "string"
      },
      "tokenB": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/chainray-online-a56a6e96/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from chainray.online](https://www.zero.xyz/host/chainray.online/llms.txt)
