Markets

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

hyperliquid-python-sdk

Official, maintained

TypeScript

nktkas/hyperliquid

Community

TypeScript

nomeida/hyperliquid

Community

Rust

hyperliquid-rust-sdk

Official (not maintained)

CCXT

CCXT Hyperliquid

Multi-language support

API endpoints

Endpoint type

URL

Purpose

Mainnet

https://api.hyperliquid.xyz

Production trading

Testnet

https://api.hyperliquid-testnet.xyz

Development/testing

Key API concepts

Authentication

API trading uses wallet signatures for authentication:

  1. Generate an API wallet or use your main wallet
  2. Sign actions with your private key
  3. Include signature in API requests

See nonces and API wallets

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)

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

Hyperliquid API Docs

Info Endpoint

Info Endpoint Reference

Exchange Endpoint

Exchange Endpoint Reference

WebSocket

WebSocket Streams

Error Handling

Error Responses

Signing

Request Signing

HIP-3 Actions

HIP-3 Deployer Actions