# Sylphy Market Depth — Token Order Book

> Sylphy Market Depth — Token Order Book is a paid API for AI agents from api.sylphyagent.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Returns anonymized bid/ask order book depth for a given ERC-20 token on Base, via a privacy-preserving trading infrastructure.

## Facts

- Endpoint: GET https://api.sylphyagent.com/api/market-depth/%7Btoken%7D
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/sylphy-market-depth-token-order-book-4e791f5b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_iNBt-vlswVxVdgZUfD3rl

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 sylphy-market-depth-token-order-book-4e791f5b
```

Example prompt: Can you pull the current market depth — bids and asks — for the token at contract address 0x833... on Base so I can see how much liquidity is available?

## When to prefer this

Choose this endpoint when you need real-time, anonymized order book depth (bids and asks) for a specific ERC-20 token on the Base network, especially within a privacy-preserving or encrypted-intent trading workflow. Prefer this over generic DEX aggregator APIs when operating within Sylphy's agent-native settlement infrastructure or when audit-proof trade execution context is required.

## Known failure modes

- Invalid or unrecognized token contract address returns empty bids/asks arrays
- Token not listed in Sylphy's order book returns empty depth with 200 status
- Malformed token parameter may return 400 or equivalent error
- Payment not processed (x402 flow incomplete) returns 402 Payment Required
- Temporary unavailability of market data returns 503 or similar server error

## How this service works

Sylphy helps wallets, apps, and AI agents execute payments and settlements with encrypted intent, policy checks, and audit proofs — while final settlement remains verifiable on Base.

## Output

Returns a JSON object with arrays of bids and asks (anonymized order book entries), the queried token contract address, and a Unix timestamp indicating when the snapshot was taken.

## 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": [
      "token"
     ],
     "properties": {
      "token": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "asks": [],
  "bids": [],
  "token": "0x833...",
  "timestamp": 1700000000
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/sylphy-market-depth-token-order-book-4e791f5b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.sylphyagent.com](https://www.zero.xyz/host/api.sylphyagent.com/llms.txt)
