API v0.1 · pre-release
Integration by venue type
Guard publishes recommendations. Your platform decides how much weight each signal carries and remains responsible for its own risk rules. These are the patterns we recommend.
During a pilot, run Guard alongside your current price and log what each rule would have done. Switch a rule on only once you are satisfied with the weekly reports.
Venues with their own matching engine
- Reopening: when
statechanges toREOPENING, open with a call auction: collect orders for a short period and fill them together at one price, rather than continuous trading against a stale book. - Pause: when
guard.pauseistrue, stop continuous trading and run a call auction. - Liquidations: liquidate on your mark price limited to the band (
lotohi). - Orders: reject orders priced well outside the band.
Perpetual venues, including HIP-3
For a HIP-3 market on Hyperliquid, pass price as one of your markPxs candidates and as externalPerpPxs in setOracle. You keep your deployer key; Guard never holds it.
For other perpetual venues:
- use
priceas one input to your mark price, or as an external reference; - while
stateisCLOSED, limit liquidation prices to the band; - use
guard.band_breachas an independent alert alongside your current oracle; - before a weekend, use the band to decide how much of the closing gap to carry.
Lending protocols
- Value collateral at
price. - Before liquidating, require the position to be unsafe even at the favourable edge of the band (
hifor collateral), not only atprice. - While
stateisDEGRADED, pause new borrowing against the asset rather than liquidating.
Any platform
- Treat
DEGRADED, or no valid message within your staleness limit, as “do not liquidate on this price alone”. - Use
guard.band_breachas an independent alert alongside your current oracle. - Log the messages you act on. They are signed, so any decision can be checked afterwards.
What Guard does not do
- It does not predict the future. At weekends no price built from other markets can contain information that only arrives when the underlying market reopens. The band states how uncertain the price is.
- It never uses your own venue’s order book as an input to the price it gives you.
- It holds no keys and no funds, and it cannot place or cancel orders.