Submit Trade Intent
Submit a trade intent for processing and execution. The intent will be processed by the specified agent wallet. Pre-requisites: Users must approve our builder code and managed agent wallet using their main wallet.
Authorization
ApiKeyAuth API key for HyperETH authentication. Obtain via POST /v1/api_key/register endpoint.
In: header
Request Body
application/json
Order intent nonce, should be unique per agent wallet, timestamp in milliseconds
1758690167820Agent wallet address to process the intent
0x742d35Cc6634C0532925a3b8D489C8A4c40F8C7BHyperliquid action details
Action type
orderOrders to place
Asset index
0Buy (true) or sell (false)
Limit price
43250.0Order size
0.1Reduce-only flag
Order type specification
Time in force
AloIocGtcTrigger price
Execute as market order
Take profit or stop loss
tpslClient order ID (UUID format)
a3b5b1e0-3e7a-4b6c-9c35-cc8f7a0f7c01Response Body
application/json
application/json
application/json
application/json
curl -X POST "https://api.hypereth.io/v1/trade/intent" \ -H "Content-Type: application/json" \ -d '{ "nonce": 1734567890123, "hl_agent_wallet": "0x742d35Cc6634C0532925a3b8D489C8A4c40F8C7B", "hl_action": { "type": "order", "orders": [ { "a": 0, "b": true, "p": "43250.0", "s": "0.1", "r": false, "t": { "limit": { "tif": "Gtc" } }, "cloid": "a3b5b1e0-3e7a-4b6c-9c35-cc8f7a0f7c01" } ] } }'{
"agg_order_id": "a3b5b1e0-3e7a-4b6c-9c35-cc8f7a0f7c01",
"intent_hash": "0x7f0f2c1ad3e8b9a5c7d4e2f1b8c9d0e3a6b7c8d9e0f1a2b3c4d5e6f7a8b9c1ad",
"signer": "0x742d35Cc6634C0532925a3b8D489C8A4c40F8C7B",
"hl_response": {
"status": "ok",
"response": {
"type": "order",
"data": {
"statuses": [
{
"resting": {
"oid": 123456789
}
}
]
}
}
}
}{
"error": "Invalid API key",
"code": 1001,
"details": {}
}{
"error": "Invalid API key",
"code": 1001,
"details": {}
}{
"error": "Invalid API key",
"code": 1001,
"details": {}
}