Environments
Examples use mainnet unless stated otherwise. HTTP requests and responses use JSON.
Sidebar badges identify venue coverage: HL means Hyperliquid and PM means Polymarket.
Pages covering both venues show two separate badges. Check the endpoint’s admission rules and current deployment
availability before submitting requests; a badge does not mean every operation is enabled.
HTTP Endpoints
Most
/info requests are unsigned. Isolated Operation Status
requires a signed read. Portfolio and leaderboard requests use their dedicated paths without a
type field and depend on the deployment’s read replica being available.
Amounts are decimal strings unless the endpoint explicitly requires integer base units. Example
addresses, IDs, timestamps, and signatures illustrate the format; replace them with current values
and real signatures when submitting an action. Required table fields are marked with *.
Make Your First Request
Fetch market metadata to discover supported perpetuals, spot pairs, collateral assets, and their Notional AssetIds. This read does not require a signature.Submit an Action
MostPOST /exchange actions require an EIP-712 signature and a nonce. A typical integration:
- Read the current market and account state.
- Build the action exactly as its endpoint page defines it.
- Sign the action without changing any field afterward.
- Submit it to
POST /exchangeand inspect every returned result. - Confirm the final state through
POST /infoor a WebSocket subscription.
Stream Updates
The WebSocket API is for subscriptions. Send reads through HTTP and signed actions throughPOST /exchange.
Subscribe before submitting an action when you need its live updates. After a disconnect,
resubscribe and read the current state over HTTP before retrying. See the
WebSocket API.