Trading
Trade USDC-collateralized perpetuals on Hyperliquid. Use HTTP or WebSocket for orders and private account updates.
Access the shared account's volume and staking tiers for lower trading fees.
| Task | Call |
|---|---|
| Place GTC or reduce-only orders; up to 32 per batch | order |
| Cancel by order ID or CLOID | cancel, cancelByCloid |
| Set cross-margin leverage | updateLeverage |
| Read positions, margin, orders and fills | /info |
| Stream account updates | /ws |
The SDK signs requests. Owners control access; trading agents can trade and read, while read-only agents can only read. Only owners authorize withdrawals.
Limits
Supported: default-DEX perpetuals, cross margin and GTC orders. Spot, customer subaccounts, IOC/ALO, triggers and builder codes are unsupported.
Orders require margin, trading capacity and fresh data. Market limits can be lower than Hyperliquid's. Fetch public market data from Hyperliquid or your provider.
Assign a CLOID before submitting. If an acknowledgement is lost, query orderStatus before replacing the order.
For background, see Hyperliquid's margining, funding and liquidations.