OpenAPI Schema for Hyperliquid API
The goal/purpose of this schema is to act as a reference for Hyperliquid developers
To be use to validate against their sdk implementations
This repository contains a consolidated, valid OpenAPI 3.1 specification for Hyperliquid. It passes Redocly's recommended lint and is suitable for code generation.
Primary spec: openapi.yaml
Preview UI: docs/index.html (Swagger UI)
Interactive API (Scalar): https://registry.scalar.com/@default-team-7ogjj/apis/hyperliquid-unified-api/latest?format=preview
Hosted docs: hyperliquid-openapi-schema.pages.dev
Lint/Preview commands are provided via Makefile.
Prerequisites:
- Node.js and npm (recommended via Homebrew):
brew install node
- Python 3 (for serving the Swagger UI page):
python3 --version(installed on most macOS). If missing:brew install python
Commands:
- Lint the spec (uses Redocly via npx):
make lint
- Build a Redoc HTML at repo root (
index.html):make preview open index.html # macOS convenience to open in browser - Serve Swagger UI (serves
docs/as root, openhttp://localhost:8080/):make serve-docs
Notes:
make lintwill install and run@redocly/clitransiently vianpx; no global install required.- Swagger UI page at
docs/index.htmlloadsopenapi.yamlfrom the repository root.
- Cleanup to be valid OpenAPI schema
- Create a Swagger UI
- Update missing schemas