Skip to main content

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.

Agent market-data workflows need a smaller, stricter context pack than human browsing: OpenAPI for route map, Markdown for decision context, and data-quality checks before durable output. Agent workflows fail when the agent guesses a route from prose. Give it the smallest reference source that can answer the current job.

Workflow

1

State the market-data job

Name venue family, symbol, data family, time window, and whether the job needs REST, WebSocket, replay, export, or a generated client.
2

Give OpenAPI for route map

Use OpenAPI and generated reference pages for routes, parameters, auth, and response schemas.
3

Give Markdown for context

4

Choose the execution surface

Use REST or SDKs for application code, CLI for terminal jobs, MCP Server for MCP-capable hosts, and Skill for skill-capable hosts.
5

Require source metadata

Ask the agent to preserve route, parameters, request ID, response envelope, cursor chain, and data-quality result.

Surface Selection

EnvironmentBest starting surface
Web LLMMarkdown docs, llms.txt, OpenAPI excerpts
Coding agent editing codeOpenAPI, docs, SDKs, examples
Coding agent with terminalCLI, REST, or SDK plus OpenAPI
MCP-capable clientMCP Server
Skill-capable hostSkill / SKILL.md
OpenClaw harnessSkill first; ACP or MCP only when configured

Agent Failure Modes

Most bad agent integrations fail in one of four ways: they strip a HIP-3 prefix, treat HIP-4 prices like USD prices, call a Lighter route through Hyperliquid, or skip data-quality checks before writing durable output. Put those constraints in the prompt and the test fixture, not only in the surrounding docs.

Agent Workflow Packet

Give the agent this packet before it writes code or runs tools.
FieldRequired value
Venue familyHyperliquid core, Hyperliquid Spot, HIP-3, HIP-4, or Lighter.
Data familyOrder book, L3, L4, trades, candles, funding, OI, liquidations, orders, replay, or export.
Route sourceOpenAPI plus the generated REST or WebSocket page for the chosen family.
Context sourceVenue Taxonomy, Responses, Examples, and Data Quality.
Execution surfaceREST, SDK, CLI, MCP Server, Skill, WebSocket, or OpenAPI codegen.
Response contractEndpoint-specific schema, WebSocket message shape, export schema, or resource-specific data-quality body.
Safety stopDo not widen loops, write training data, produce dashboards, or save warehouse rows until request IDs and data-quality state are attached.

Acceptance Criteria

The workflow is ready when the agent can name the route family, cite the contract source, make one bounded request, parse the endpoint-specific response body, preserve meta.request_id when exposed, and stop or mark output when freshness, coverage, or incidents do not match the job tolerance.

Prompt Template

Use Interface Surface Map for the surface map, Agent Market Data API for route-safe agent patterns, and Market Data API For Coding Agents for recommendation language.
Last modified on May 18, 2026