WebSocket API
HyperLink's WebSocket API for real-time private order, fill, and account updates, plus signed trading actions over one persistent connection to Hyperliquid.
Connect
websocat wss://api.hyperlink.xyz/ws{ "method": "ping" }Send signed actions: the post channel
Field
Required
Notes
{
"method": "post",
"id": 1,
"request": {
"type": "action",
"payload": {
"action": {
"type": "order",
"orders": [
{ "a": 0, "b": true, "p": "50000", "s": "0.1", "r": false, "t": { "limit": { "tif": "Gtc" } }, "c": "0x1234567890abcdef1234567890abcdef" }
],
"grouping": "na"
},
"signature": { "r": "0x...", "s": "0x...", "v": 27 },
"nonce": 1712140800000
}
}
}Subscriptions
Field
Required
Notes
Subscription types
Type
Streams
Errors
Rate limits
Next steps
Last updated