Trading
Order lifecycle
Every open and close is a two-step request and fill. The fill must use a HyperCore price stamped inside a window that starts after your request landed.
300 msFill delay D (3 blocks)
700 msFill window W
0.6–1.0 sTypical click → filled
0Cancels inside the window
Why fills use a future price
Elysium sees HyperCore data about 150–350 ms late, while a fast trader sees CEX prices sooner. If fills used the price at the moment of the click, informed traders would trade on stale quotes and drain the vault. So Nine never fills at a price that existed when you clicked.
The fill rule
valid fill price: hcTs ∈ [ t + D , t + D + W ]
D = 300 ms W = 700 ms
- Click: request in block N, time t
- First eligible price
- No cancel inside the window
Step by step
- 01The trader sends
request(open | close). It is included in Elysium block N, at time t. - 02A fill is valid only with a price whose HyperCore timestamp falls in
[t + 300 ms, t + 1,000 ms]. - 03Anyone can call
fill(id). Keepers do it on the first eligible block. With first-come-first-served sequencing and 100 ms blocks, that is almost always the first price at or after t + D. - 04If no fill lands inside the window, the request expires: an open is refunded in full, and a close is retried at the next window.
- 05The trader cannot cancel a request while it is inside its window. This removes the free option to back out after seeing the price.
Timing budget
| Step | Budget |
|---|---|
| Click → request included | ~100–200 ms |
| Fill delay D | 300 ms |
| HyperCore data visible in the EVM | 150–350 ms |
| Keeper fill transaction included | 100 ms |
| Click → filled | ~0.6–1.0 s |
| Liquidation check | Every block |
Refunds and expiry
| Case | Outcome |
|---|---|
| Open, no valid price in the window | Expires. Margin refunded in full. |
| Close, no valid price in the window | Retried at the next window. |
| A price sanity check fails | The fill reverts; the request waits for a valid price or expires. |
| Market paused by a circuit breaker | New opens are rejected. Closes queue up and fill on the first fresh price. |