Skip to content本文へ移動

Running a HIP-3 market · Lesson 3 of 5 · 4 min

Running the oracle

The price is the one thing only you can supply, and the one thing that can liquidate every trader on your dex in a minute. This lesson takes a real update that did exactly that, second by second, then lists the ways an oracle goes wrong and the guards against each.

What one update carries

Every few seconds your oracle key signs a setOracle action for the whole dex. For each market it carries:

Hyperliquid then lets the mark move at most 1% per update, one update every 2.5 seconds at most. That limit slows a bad price down. It does not stop it.

From the record: SK Hynix, 27 July 2026
UTCOracle sent by the operatorIn won
23:00:00.7$1,131.40₩1,657,614
23:00:03.9$954.99 (−15.6% in one update)₩1,399,156
to 23:00:39down 1% per update to about $870≈ ₩1,275,000
23:00:39–23:02:00held near $870–874, updating every 3 seconds
23:02:03$1,078.70 (+23.5%)₩1,580,511
to 23:04:03up 1% per update to $1,198.40₩1,756,016

23:00 UTC is 8:00 in Seoul, the first second of the Korean pre-market. SK Hynix's range in Seoul's regular session that day was ₩1,550,000–₩1,674,000: the oracle went 9.7% below the day's low, then 4.9% above its high. The mark walked down 1% every three seconds, 961 long accounts were liquidated, and on the way back up 38 short accounts were liquidated too. trade.xyz's documentation now lists the pre-market as removed from its price coverage.

Every update and every liquidation: SK Hynix liquidation replay.

How an oracle goes wrong

FailureExampleGuard
One bad input passes straight throughSK Hynix, aboveTake the median of several sources; hold the last price when they disagree
A session boundarythe first second of the Korean pre-marketKnow each market's trading hours and holidays; decide what the price does while the underlying is closed
A corporate action read wronglyVentuals' SPACEX market fell 45% when a data provider mishandled a stock split; 405 traders were liquidated (The Crypto Times)A calendar of splits and dividends; refuse moves no event explains
The feed goes quietany source, any night; past 10 seconds Hyperliquid falls back to its own markResend the last good price while sources are stale; after a set time, halt the market instead of guessing
The rebound overshoots$1,198, above the day's highApply the same checks on the way up as on the way down
Your updater diesany process, any nightA standby that takes over when the primary goes silent

Proving what went into the price

After an incident, traders and the validators who vote on slashing have only your account of what happened. A receipt for every update, listing the quotes it was built from and how it was computed, turns that account into evidence anyone can re-check. Try the receipts: honest ones pass, and a 0.05% cheat is caught in the browser.

How hip3-ops handles this
  • The oracle loop takes the median of fresh quotes, holds when sources disagree, and warns on any move over 1%.
  • It knows trading sessions (US and Korean equities, with holidays) and what to do while the underlying is closed.
  • When sources go stale it resends the last price, then requests haltTrading once, and never resumes on its own.
  • A standby takes over after 7 seconds of silence from the primary. Every update can carry a receipt.

Next: the limits around the price, and what Hyperliquid does to an account that crosses them.

HIP-3 市場の運営 · 第3回(全5回) · 4 分

オラクルの運用

価格は、運営者にしか用意できない唯一のものです。そして、dex の上のすべての人を1分で清算してしまえるものでもあります。この回では、実際にそれが起きた1回の更新を秒単位で追い、オラクルが狂う型と、それぞれへの備えを並べます。

1回の更新に入っているもの

オラクル用の鍵は、数秒ごとに dex 全体の setOracle に署名します。各市場について次のものが入ります。

Hyperliquid は mark の動きを1回1%まで、更新の間隔を2.5秒以上に制限します。この制限は悪い価格を遅くはしますが、止めはしません。

記録から: SK Hynix、2026年7月27日
UTC運営者が送ったオラクルウォン換算
23:00:00.7$1,131.40₩1,657,614
23:00:03.9$954.99(1回で −15.6%)₩1,399,156
〜23:00:391回1%ずつ下がって約 $870約 ₩1,275,000
23:00:39〜23:02:00$870〜874 付近に留まる(更新は3秒ごとに続く)
23:02:03$1,078.70(+23.5%)₩1,580,511
〜23:04:031回1%ずつ上がって $1,198.40₩1,756,016

23:00 UTC はソウルの朝8時、韓国のプレマーケットが始まった最初の1秒です。その日のソウルの通常取引での SK Hynix の値幅は ₩1,550,000〜₩1,674,000 でした。オラクルはその日の安値より9.7%低いところまで下がり、その後は高値より4.9%高いところまで上がりました。mark は3秒ごとに1%ずつ下がって、ロング961口座が清算され、戻りの上げではショート38口座も清算されました。trade.xyz の今の資料では、プレマーケットは価格に使う時間帯から外されています。

すべての更新と清算は、SK Hynix 清算の秒単位の記録で見られます。

オラクルが狂う型

型例備え
1つの悪い入力がそのまま通る上の SK Hynix複数の取得元の中央値を取り、食い違うときは直前の価格のまま止める
取引時間の境目韓国のプレマーケットの最初の1秒市場ごとの取引時間と休日を持ち、元の市場が閉まっている間に価格をどう扱うかを決めておく
株式分割などの読み違いVentuals の SPACEX は、データの提供元が株式分割を扱い損ねて45%下がり、405人が清算された(The Crypto Times)分割や配当の予定表を持ち、出来事で説明できない動きは受け付けない
取得元が黙るどの取得元でも、どの夜でも。10秒を過ぎると Hyperliquid は自分の mark に切り替える取得元が古い間は直前の正しい価格を送り直し、決めた時間を過ぎたら推測せずに市場を止める
戻りで行き過ぎるその日の高値を超えた $1,198下げのときと同じ確かめを、上げのときにもかける
価格を送る仕組みが止まるどの仕組みでも、どの夜でも主が黙ったら引き継ぐ予備を置く

価格に何が入ったかを示す

事故のあと、売買していた人や、没収を投票で決めるバリデーターの手元にあるのは、運営者の説明だけです。更新ごとにレシートを付けて、どの気配から、どう計算したかを残しておけば、その説明は誰でも確かめ直せる証拠になります。レシートを試すと、正直なレシートは通り、0.05% のごまかしはブラウザの中で見つかります。

hip3-ops での扱い
  • オラクルを送る仕組みは、新しい気配の中央値を取り、取得元が食い違うときは止め、1%を超える動きには警告を出します。
  • 取引時間(米国株と韓国株、休日つき)と、元の市場が閉まっている間の扱いを知っています。
  • 取得元が古くなると直前の価格を送り直し、そのあと haltTrading を1回だけ求めます。自分から再開はしません。
  • 主が7秒黙ると予備が引き継ぎます。すべての更新にレシートを付けられます。

次回: 価格のまわりの上限と、それを越えた口座に Hyperliquid が何をするか。