Skip to content

API reference ​

Client methods, parameters and response types exported by @siebly/hyperliquid-api. The same API works in JavaScript and TypeScript.

Clients ​

ClientUse it for
RestClientHTTP requests for market data, account state and Exchange actions
WebsocketClientStreaming subscriptions, lifecycle events and raw WebSocket requests
WebsocketAPIClientAwaitable SDK methods over WebSocket

Common methods ​

TaskMethod
Get mid pricesgetAllMids()
Get an order bookgetOrderBook()
Get candlesgetCandles()
Read positions and margingetPerpAccountSummary()
Place orderssubmitOrder()
Check an order by IDgetOrderStatus()
Subscribe to updatessubscribe()

Signed actions require authentication. See Error handling for rejected requests and per-order results.

For retries, recovery and shutdown, see Production usage.

Types ​

Find a method or type ​

Search guides, methods and types with ⌘K / Ctrl+K.

All exports

Hyperliquid tutorial · Upstream API documentation

Built by Siebly. Open source SDKs for exchange APIs.