The Hyperliquid API is the public programmatic interface to the Hyperliquid DEX: an Info endpoint for reading data, an Exchange endpoint for placing orders, and a WebSocket for real-time streaming, all authenticated with agent wallets that can trade but never withdraw. Here is how each surface works, the official Python SDK, the rate limits, and how to start building a bot or strategy.

The Hyperliquid API is the public, programmatic interface to the Hyperliquid perpetuals exchange. Because Hyperliquid is a fully on-chain DEX, everything you can do through the trading screen — read prices, place orders, manage positions — you can also do from code by signing and sending requests. That makes bots, quant strategies and custom dashboards a first-class use case rather than a workaround (Hyperliquid Docs — API (Info, Exchange & WebSocket)).
The API is plain JSON over HTTP for requests, with a separate WebSocket for streaming, so it is reachable from any language. For Python developers there is an official SDK that wraps the whole thing. This guide walks through the three surfaces, how authentication works through agent wallets, the SDK and rate limits, and how to get started.
The API is organised into three surfaces, each with a clear job (Hyperliquid Docs — API (Info, Exchange & WebSocket)):
A typical loop looks like: read state from Info (or a WebSocket subscription), apply your strategy logic, then act through the Exchange endpoint. This Info-decide-Exchange cycle is the backbone of nearly every Hyperliquid trading bot.
The piece that makes API trading on Hyperliquid genuinely safe is the agent wallet (also called an API wallet). Rather than handing your bot your main private key, you authorise a separate key that can place and cancel orders but cannot withdraw or transfer your funds (Hyperliquid Docs — API (Info, Exchange & WebSocket)).
Agent wallets are not just for bots — they are exactly how Dexly authorises trading and how Dexly copy trading mirrors a leader’s trades into your wallet. For a non-developer walkthrough of connecting and approving one, see Wallets, Agents & Connection.
Trade Hyperliquid on Dexly
The fastest way to start is Hyperliquid’s official open-source Python SDK, which wraps the Info, Exchange and WebSocket surfaces, handles request signing, and ships example scripts for common tasks like placing an order or subscribing to a feed (Hyperliquid — official Python SDK (GitHub)). It is a convenience layer — under the hood it is the same JSON/HTTP API you could call from JavaScript, Rust or Go.
Production bots have to respect rate limits. Hyperliquid documents both per-IP request limits and address-based limits that scale with your trading activity, plus weight-based costs that make heavier requests “cost” more (Hyperliquid Docs — Rate limits and user limits). The practical implications:
A realistic first path from zero to a live, self-custodial bot:
From there, the strategy is the hard part — not the plumbing. See algorithmic trading in crypto for the strategy families (market making, arbitrage, grid, trend, mean reversion) and quant trading in crypto for the research-to-live workflow that turns an idea into something worth running. For the bot landscape end-to-end, see crypto trading bots.
The Hyperliquid API gives builders a complete, non-custodial trading surface: an Info endpoint to read, an Exchange endpoint to trade, a WebSocket for real-time data, agent wallets that trade but never withdraw, an official Python SDK, and documented rate limits. That combination is what makes self-custodial bots and quant strategies practical on Hyperliquid.
To be clear about what it is not: Dexly is not the API and not a trading bot. It is a non-custodial front-end built on the same Hyperliquid exchange. If you write code, build directly on the API with the Python SDK and agent wallets. If you do not, Dexly is the no-code counterpart — trade manually from your own wallet, or use copy trading to mirror a human leader through the same agent-wallet mechanism, with per-follow risk caps and drawdown protection. Either way your funds stay self-custodial, on web or the mobile app.
Educational content only — not investment advice. Automated trading carries risk and bots can lose money; past or backtested performance does not predict future results. API endpoints, rate limits, agent-wallet limits and SDK requirements change — verify everything against the official Hyperliquid documentation before building or trading. Facts verified 2026-06-30.
Perps, spot, copy & prediction markets in one fast, non-custodial app. Get Dexly on iOS & Android and start in seconds.
Risk Warning: Trading perpetual futures involves significant risk of loss. Only trade with capital you can afford to lose. Dexly is a non-custodial interface; you are responsible for your own funds and trading decisions.
Trade Hyperliquid on Dexly