Interactive testing tool for Hyperliquid DEX API endpoints. Test public endpoints instantly or learn how to use trading endpoints with proper authentication.
Test public API endpoints that don't require authentication. Results appear instantly!
{"type": "allMids"}
{
"type": "l2Book",
"coin": "BTC",
"nSigFigs": 5
}
{
"type": "candleSnapshot",
"req": {
"coin": "BTC",
"interval": "15m",
"startTime": ${Date.now() - 86400000},
"endTime": ${Date.now()}
}
}
{"type": "meta"}
{"type": "spotMeta"}
{
"type": "openOrders",
"user": "0x0000000000000000000000000000000000000000"
}
from hyperliquid.exchange import Exchange
# Initialize with your private key
exchange = Exchange(private_key="YOUR_PRIVATE_KEY")
# Place a limit order
result = exchange.order(
coin="BTC",
is_buy=True,
sz=0.01,
limit_px=50000.0,
order_type={"limit": {"tif": "Gtc"}}
)
print(result)
import { Hyperliquid } from 'hyperliquid';
// Initialize with your private key
const sdk = new Hyperliquid('YOUR_PRIVATE_KEY');
// Place a limit order
const result = await sdk.exchange.placeOrder({
coin: 'BTC',
is_buy: true,
sz: 0.01,
limit_px: 50000.0,
order_type: { limit: { tif: 'Gtc' } }
});
console.log(result);