Exchange Methods
Reference for HyperLink's unified POST /exchange endpoint: request format, action families, and Hyperliquid-compatible order and query examples used.
Request format
Example: place a limit order
curl -X POST https://api.hyperlink.xyz/exchange \
-H "Content-Type: application/json" \
-d '{
"action": {
"type": "order",
"orders": [
{ "a": 0, "b": true, "p": "50000", "s": "0.1", "r": false, "t": { "limit": { "tif": "Gtc" } }, "c": "0x1234567890abcdef1234567890abcdef" }
],
"grouping": "na"
},
"nonce": 1712140800000,
"signature": { "r": "0x...", "s": "0x...", "v": 27 }
}'Action families
Trading
Action
Purpose
Margin
Action
Purpose
Transfers & withdrawals
Action
Signing
Purpose
Builder codes
Action
Signing
Purpose
Queries (raw JSON, agent-signed)
Query
Returns
Streaming
Last updated