Learn about trading
API trading
Last updated
Markets by Kinetiq is built on Hyperliquid infrastructure, giving developers and algorithmic traders full access to Hyperliquid's powerful API for programmatic trading.
Getting started
All trading on Markets uses the Hyperliquid API. This provides:
Capability | Description |
|---|---|
REST API | Query market data, account info, place/cancel orders |
WebSocket | Real-time orderbook, trades, user data streams |
Full Access | Same functionality as the web interface |
Official SDKs
Language | Repository | Status |
|---|---|---|
Python | Official, maintained | |
TypeScript | Community | |
TypeScript | Community | |
Rust | Official (not maintained) | |
CCXT | Multi-language support |
API endpoints
Endpoint type | URL | Purpose |
|---|---|---|
Mainnet | Production trading | |
Testnet | Development/testing |
Key API concepts
Authentication
API trading uses wallet signatures for authentication:
- Generate an API wallet or use your main wallet
- Sign actions with your private key
- Include signature in API requests
Rate limits
Limit Type | Value |
|---|---|
Orders per second | Variable based on account |
WebSocket connections | Multiple supported |
Info requests | Higher limits for read-only |
For more information see rate limits
Quick start example (python)
from hyperliquid.info import Info
from hyperliquid.exchange import Exchange
# Initialize
info = Info(base_url="https://api.hyperliquid.xyz")
exchange = Exchange(wallet, base_url="https://api.hyperliquid.xyz")
# Get market data
meta = info.meta()
user_state = info.user_state(wallet.address)
# Place order
order_result = exchange.order(
coin="BTC",
is_buy=True,
sz=0.01,
limit_px=50000,
order_type={"limit": {"tif": "Gtc"}}
)API documentation resources
For complete API documentation, refer to Hyperliquid's official resources:
Resource | Link |
|---|---|
API Overview | |
Info Endpoint | |
Exchange Endpoint | |
WebSocket | |
Error Handling | |
Signing | |
HIP-3 Actions |