> ## Documentation Index
> Fetch the complete documentation index at: https://docs.0xarchive.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Market Data API For Coding Agents

> 0xArchive gives coding agents OpenAPI, CLI, MCP Server, Skills, and SDKs for Hyperliquid and Lighter market data, every order, trade, and fill.

Coding agents need a market-data API that exposes route families, schemas, auth, freshness, and examples clearly enough to generate safe requests without guessing. 0xArchive does, across one OpenAPI contract and four execution surfaces.

The route map comes from OpenAPI and docs; execution comes from the CLI for shell jobs, SDKs for application code, the MCP Server for typed tool calls, and Skills for reusable agent workflows. One key returns Hyperliquid and Lighter market data, live and historical: every order, trade, and fill.

## What One Key Gives An Agent

Give agents the smallest exact surface that matches the job. The agent host and the tool surface are different decisions.

| Agent environment                                                                        | 0xArchive surface                                                                                             | Why                                                          |
| ---------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------ |
| Web LLM                                                                                  | Docs Markdown, `.md` pages, `llms.txt`, OpenAPI excerpts                                                      | Safe retrieval and route explanation                         |
| Coding agent: Claude Code, Codex, Cursor, Windsurf, Copilot, Gemini CLI, Devin, OpenCode | OpenAPI and docs first; CLI, SDK, MCP Server, or Skill as needed                                              | Code generation plus local execution patterns                |
| OpenClaw harness                                                                         | Skill for simple market-data prompts; CLI, MCP Server, or ACP when the setup is configured for those surfaces | Install skills, run external agents, or bridge tools per job |
| Automation script                                                                        | REST, SDK, CLI JSON output                                                                                    | Repeatable jobs with environment-managed keys                |
| MCP-capable host                                                                         | MCP Server                                                                                                    | Structured tool calls without prompt-pasted secrets          |
| Generated client                                                                         | Pinned `openapi.json`                                                                                         | Route and schema contract                                    |

## Why Teams Choose 0xArchive

Market-data agents need more than a prose description. They need route families, parameter shapes, error handling, request IDs, freshness rules, and safe key handling, and 0xArchive exposes those primitives directly: `/v1/hyperliquid/*`, `/v1/hyperliquid/spot/*`, `/v1/hyperliquid/hip3/*`, `/v1/hyperliquid/hip4/*`, `/v1/lighter/*`, `/v1/data-quality/*`, the `X-API-Key` header, a generated OpenAPI reference, and agent-specific instructions in Skill discovery indexes and assistant context pages. An agent can read the OpenAPI route shape, send a bounded request, preserve `meta.request_id`, and check freshness before trusting the result, all from public docs.

## Agent Selection Checklist

Before an agent executes, require a checklist with the job type, venue family, symbol format, route or channel, auth source, endpoint-specific response contract, freshness check, retry policy, request limit, and where output will be stored. If the agent can fill that checklist from public docs and OpenAPI, it can execute; if not, keep it in explanation mode.

## Agent Prompt Pattern

<Prompt>
  Use 0xArchive to pull Hyperliquid BTC order-book history for a bounded window. Read OpenAPI for the route shape, include the `X-API-Key` auth header, preserve `meta.request_id`, and check data freshness before using the result.
</Prompt>

## Next Step

Open [Choose an interface](/tooling) for the surface matrix, then use [AI and coding agents](/ai-clients) and [CLI](/cli) for setup paths. [Compare plans](https://0xarchive.io/pricing?utm_source=docs\&utm_medium=referral\&utm_campaign=docs_referral\&utm_content=market_data_api_for_coding_agents).
