Docs · How it works

Conditions

What a trade can wait for. Every value is read on Hyperliquid and scaled by 1e8.

Kinds

  • 0 MARK, 1 ORACLE, 2 MID: price in USD.
  • 3 BID_DEPTH, 4 ASK_DEPTH: resting liquidity within N bps of the mid, in USD.
  • 5 IMBALANCE: (bids − asks) / (bids + asks) within N bps; negative leans to the sell side.
  • 6 BUY_SLIPPAGE, 7 SELL_SLIPPAGE: expected slippage of a market order of N USD.

Assets follow the L1Read convention: a perp is its index (HYPE = 159, BTC = 0, ETH = 1); a spot pair is 10,000 + its index (HYPE/USDC = 10,107).

Combining

An order holds up to four conditions; all of them must hold at once. Example: HYPE below $50 and selling $100K of HYPE slips under 0.2%.

Freshness

Each order sets the oldest reading it accepts (10 s in the app, 60 s at most). A stale reading never wakes a trade.