Advanced Orders
Automate your trading with Take Profit, Stop Loss, TWAP orders, and more. All order types work exactly like on Hyperliquid.
Take Profit (TP)
Automatically close your position when price reaches your profit target. Executes as a limit order at the trigger price.
Stop Loss (SL)
Protect your position by automatically closing when price moves against you. Executes as a market order when triggered.
TWAP Orders
Time-Weighted Average Price execution. Splits your order into smaller chunks executed over a time period to minimize market impact.
Trigger Orders
Place orders that only activate when a price condition is met. Useful for breakout strategies and conditional entries.
Take Profit / Stop Loss Example
Place a long position with automatic TP at +5% and SL at -2%:
POST /v1/exchanges/hyperliquid/exchange
{
"action": {
"type": "order",
"orders": [{
"a": 0,
"b": true,
"p": "98000",
"s": "0.1",
"r": false,
"t": {
"limit": {
"tif": "Gtc"
}
}
}],
"grouping": "normalTpsl",
"tpsl": {
"tp": {
"triggerPx": "102900",
"tpsl": "tp",
"isMarket": false
},
"sl": {
"triggerPx": "96040",
"tpsl": "sl",
"isMarket": true
}
}
}
}TWAP Order Example
Execute a 1 BTC buy order over 60 minutes in equal slices:
POST /v1/exchanges/hyperliquid/exchange
{
"action": {
"type": "twapOrder",
"twap": {
"a": 0,
"b": true,
"s": "1.0",
"m": 60,
"r": false,
"t": false
}
}
}
// Response
{
"status": "ok",
"response": {
"type": "twapOrder",
"data": {
"twapId": "twap_abc123",
"status": "running"
}
}
}a- Asset index (0 = BTC)b- Is buy (true/false)s- Total sizem- Duration in minutesr- Reduce onlyt- Randomize timing
Trigger Order Example
Place a buy order that triggers when BTC breaks above $100,000:
POST /v1/exchanges/hyperliquid/exchange
{
"action": {
"type": "order",
"orders": [{
"a": 0,
"b": true,
"p": "100000",
"s": "0.5",
"r": false,
"t": {
"trigger": {
"triggerPx": "100000",
"isMarket": true,
"tpsl": "tp"
}
}
}]
}
}Automatic Execution
All trigger orders (TP/SL, TWAP, conditional) are monitored by our background workers and execute automatically when conditions are met. You don't need to keep a connection open. Orders are checked every 500ms for trigger conditions.
Funding Payments
Just like on Hyperliquid, funding payments are applied every 8 hours (00:00, 08:00, 16:00 UTC). We use real Hyperliquid funding rates for accurate simulation.