The live engine, checked now
Everything below was read or computed on the server while this page loaded, and sits in its HTML: the engine’s own heartbeat, the latest minute of the record with the chain’s copy of its root, a Hyperliquid price read for this request, and the order the engine’s code builds now for the trade ticket’s default position (built on this server, never signed or sent).
No real position has opened yet. Every decision shown on the site so far is the demo book’s: paper fills at live Hyperliquid prices, labelled Demo or Paper fill.
Reload the page for a new check.
Engine state
From the heartbeat the engine writes while it runs, read for this request. Its mode, dry run and sealing are what the engine reports about itself; the heartbeat’s age and whether new positions are accepted are checked here.
- Reported by the engine: Paper-only mode: the engine runs the demo book; real opens wait until live trading is switched on
- Reported by the engine: Dry run off: a real position’s orders are signed and sent to Hyperliquid
- Reported by the engine: Sealing on: each minute with a decision is sealed on Elysium
- Pass: Heartbeat 8 s ago; the engine writes one about every 10 s while it runs
- Not checked: New positions are not accepted right now: Live trading is not switched on yet: quotes and the demo book run, real opens wait.
The latest sealed minute
Read from the record, then from OptivaRecord on Elysium for this request. Every decision is a leaf; each minute’s leaves form a Merkle tree whose root is sealed on chain.
- Pass: The sample leaf’s JSON hashes to its id
- Pass: Its Merkle proof folds to the minute’s root
- Pass: The minute’s 2 leaves rebuild the same root
- Not checked: OptivaRecord is not deployed yet: roots are built every minute and sealing starts once the contract is live
Hyperliquid, read just now
The mid the engine decides on, read from Hyperliquid’s info API for this request, and the top of the order book its maker orders post to.
The order the engine would place now
Built on this site’s server at this load: priced by the quote code, sized and rounded by the same library the engine imports, and written as the Hyperliquid order objects the engine signs. The engine itself sends orders only for real positions.
BTC call, 7 days, strike at today’s price, $50 floor
The defaults of the trade ticket. Strike 59,750, priced on BTC at 59,810.
- Pass: Size 0.01235 BTC: rounded to 5 decimals, Hyperliquid’s lot size for BTC, as the engine rounds it
- Pass: Notional $738.65 clears Hyperliquid’s $10 minimum order
- Pass: Maker price 59806: at most 5 significant figures, Hyperliquid’s tick rule
- Pass: Taker limit 60408: the same tick rule
- Pass: Backstop trigger 55385 and limit 49847: the same tick rule
- Pass: In the direction of a loss, the floor comes first (56,415), the backstop next (55,385), Hyperliquid’s liquidation estimate last (54,890)
- Pass: BTC is open for new positions
In order
- Isolated margin at 24x on BTC (updateLeverage), before the open.
- Post-only maker order (ALO) to buy 0.01235 BTC at the best bid, 59806. It rests on the book and is cancelled after 3 s if it has not filled.
- Immediate-or-cancel taker order (IOC) for whatever is left, limit 60408: the mid plus 1%.
- Margin of $69.23 (updateIsolatedMargin): 1.2 × the $50 budget plus $9.23 of maintenance, from the account’s free USDC. The ticket asks for about $91.13 of free USDC before it opens.
- Reduce-only stop-market backstop on Hyperliquid for the size held: trigger 55385 (−7.4%), where the loss would reach 110% of the budget, worst fill 49847. It closes the position if the engine is down, and is replaced after each resize.
The engine closes the hedge as soon as its loss (cash from fills net of real fees, plus the perp at the Hyperliquid mid, minus real funding) reaches 84.6% of the $50 budget: the floor, less the reserve it keeps to pay for the close itself.
For the size held at open, that is BTC at 56,415 (−5.7%); the price moves as the hedge resizes. Hyperliquid’s own liquidation price for this margin would sit near 54,890 (−8.2%), an estimate from its published formula. A fast gap can land the close slightly past the floor.
{
"type": "order",
"orders": [
{
"a": 0,
"b": true,
"p": "59806",
"s": "0.01235",
"r": false,
"t": {
"limit": {
"tif": "Alo"
}
},
"c": "0xf051746f5f05a91f5d079cfe8108bb73"
}
],
"grouping": "na"
}For a real position, the engine signs an object like this one with the user’s agent key and posts it to Hyperliquid’s exchange endpoint. c is the client order id, a fresh 16-byte id for each order; this one is built for the placeholder p-preview. a is the asset id (BTC is 0), b the side, p the price, s the size, r reduce-only.
The taker order, if the maker order does not fill
{
"type": "order",
"orders": [
{
"a": 0,
"b": true,
"p": "60408",
"s": "0.01235",
"r": false,
"t": {
"limit": {
"tif": "Ioc"
}
},
"c": "0xf051746f5f05a91f5d079cfe8108bb73"
}
],
"grouping": "na"
}The margin actions
[
{
"type": "updateLeverage",
"asset": 0,
"isCross": false,
"leverage": 24
},
{
"type": "updateIsolatedMargin",
"asset": 0,
"isBuy": true,
"ntli": 69233092
}
]The backstop order
{
"type": "order",
"orders": [
{
"a": 0,
"b": false,
"p": "49847",
"s": "0.01235",
"r": true,
"t": {
"trigger": {
"isMarket": true,
"triggerPx": "55385",
"tpsl": "sl"
}
}
}
],
"grouping": "na"
}Real positions
Positions opened from users’ own wallets, newest first, with the Hyperliquid order id of every fill.
No real position has opened yet, so the engine has sent no live order so far. The first one appears here with the Hyperliquid order id of every fill and the client order id the engine sent.
The demo book
The demo book runs the same engine code on paper fills at live Hyperliquid prices. Its positions and decisions carry a demo label everywhere they appear, so anyone can watch the engine decide before trading.
