# Deepstate Markets List

> Deepstate Markets List is a paid API for AI agents from api.onesource.io, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-14).

Returns all Deepstate markets with their token layout, contract addresses, pool IDs, and deployment metadata

## Facts

- Endpoint: GET https://api.onesource.io/deepstate/v1/markets
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/deepstate-markets-list-4a323719
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_2jHC8jpBjQQzuOzILGhAz

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 deepstate-markets-list-4a323719
```

Example prompt: Show me all the available Deepstate markets and their token layouts, including the base and quote token addresses and pool IDs.

## When to prefer this

Use this endpoint when you need a canonical list of all active Deepstate order-book markets and their on-chain metadata — contract addresses, token layouts, pool IDs, and reward configuration. It is the starting point for any workflow that needs to interact with Deepstate markets programmatically, such as placing orders, reading depth, or querying trade history.

## Known failure modes

- HTTP 402 if x402 payment is not provided or insufficient
- Empty markets array if no markets are deployed
- Network timeout if EVM RPC is slow
- HTTP 500 if upstream on-chain data is unavailable

## How this service works

Deepstate, the on-chain order-book exchange on Robinhood Chain. Lists the markets this service serves with their token layout (base, quote, token0/token1, decimals).

## Output

An array of market objects, each containing: book_id, book_slug, book_label, pool_id, router address, rewarder address, epoch, status, deployment block and timestamp, has_rewarder flag, base_is_token0 flag, and full token details (symbol, address, decimals) for token0, token1, base_token, quote_token, and size_token.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "properties": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "markets": [
   {
    "epoch": 0,
    "router": "0x6cf19308C22FC82ea620Fa0B3E94948d20f27B96",
    "status": "live",
    "token0": {
     "symbol": "USDG",
     "address": "0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168",
     "decimals": 6
    },
    "token1": {
     "symbol": "NVDA",
     "address": "0xd0601CE157Db5bdC3162BbaC2a2C8aF5320D9EEC",
     "decimals": 18
    },
    "book_id": "0xdf941c235503a5d2e67aee5dea00f2965f99421c0d034bd77f924c05c66bf399",
    "pool_id": "0x42819cadfbb25aab80543236e280fba4e61aa61e0b5b777541de54ae69da35e4",
    "rewarder": "0xE85ADBC03a6b52a2c9894c1BB525eC883ea156D7",
    "book_slug": "NVDA-USDG",
    "base_token": {
     "symbol": "NVDA",
     "address": "0xd0601CE157Db5bdC3162BbaC2a2C8aF5320D9EEC",
     "decimals": 18
    },
    "book_label": "NVDA/USDG",
    "size_token": {
     "symbol": "USDG",
     "address": "0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168",
     "decimals": 6
    },
    "deployed_at": "2026-08-15T07:23:57Z",
    "quote_token": {
     "symbol": "USDG",
     "address": "0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168",
     "decimals": 6
    },
    "has_rewarder": true,
    "base_is_token0": false,
    "deployed_block": 36932573
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/deepstate-markets-list-4a323719/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.onesource.io](https://www.zero.xyz/host/api.onesource.io/llms.txt)
