Skip to content

Ganthology/hyperliquid-openapi-schema

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hyperliquid-openapi-schema

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.

Quickstart (macOS)

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, open http://localhost:8080/):
    make serve-docs

Notes:

  • make lint will install and run @redocly/cli transiently via npx; no global install required.
  • Swagger UI page at docs/index.html loads openapi.yaml from the repository root.

Roadmap

  • Cleanup to be valid OpenAPI schema
  • Create a Swagger UI
  • Update missing schemas

Releases

No releases published

Packages

No packages published