Skip to main content

order

Submit new limit or market orders on Hyperliquid. This is the most frequently occurring action type, representing the core trading functionality of the exchange.

Sample Data#

{
"signature": {
"r": "0x961237313a71a702d4ca5f870a32172f3929aa9328d80505cbc5b9b178d2e338",
"s": "0x8d0bc7bb0119bf5daac5e93a9552166e4a2f10bd711c26909e206aeb81eac89",
"v": 28
},
"action": {
"type": "order",
"orders": [
{
"a": 216,
"b": false,
"p": "0.26832",
"s": "2021",
"r": false,
"t": {
"limit": {
"tif": "Ioc"
}
},
"c": "0x00000000000000000b56a217a8ef1f3c"
}
],
"grouping": "na"
},
"nonce": 1768146912522,
"expiresAfter": 1768146932522
}

View this transaction on Hypurrscan →

Field Reference#

Action Fields#

FieldTypeDescription
typestringAlways "order"
ordersarrayArray of order objects to submit
groupingstringOrder grouping strategy: "na" (none), "normalTpsl", or "positionTpsl"

Order Object Fields#

FieldTypeDescription
anumberAsset index (e.g., 0=BTC, 1=ETH)
bbooleantrue for buy, false for sell
pstringLimit price
sstringSize in base currency
rbooleanReduce-only flag
tobjectOrder type configuration
cstringClient order ID (optional)

Order Type Configuration#

The t field specifies order execution behavior:

// Limit order with time-in-force
{ "limit": { "tif": "Gtc" } } // Good-til-canceled
{ "limit": { "tif": "Ioc" } } // Immediate-or-cancel
{ "limit": { "tif": "Alo" } } // Add-liquidity-only (post-only)

// Market order
{ "trigger": { "isMarket": true, "triggerPx": "0", "tpsl": "tp" } }

Optional Fields#

FieldTypeDescription
vaultAddressstringVault executing the order (if vault trading)
expiresAfternumberExpiration timestamp in milliseconds

Use Cases#

Order Flow Analysis#

Track all order submissions to understand market activity:

def process_order_action(action):
for order in action.get('orders', []):
asset = order['a']
side = 'BUY' if order['b'] else 'SELL'
price = order['p']
size = order['s']

print(f"New order: {side} {size} @ {price} (asset {asset})")

Trading Bot Monitoring#

Monitor competitor or whale trading activity by tracking order submissions from specific addresses.

Market Microstructure Research#

Analyze order placement patterns, timing, and pricing strategies across the Hyperliquid order book.