Get started
- A browser wallet. Rabby or MetaMask, in the browser you trade from. Your funds never leave your Hyperliquid account.
- USDC on Hyperliquid, on the market’s dex. Crypto markets trade on Hyperliquid’s main perp dex; stocks, indices and commodities on its HIP-3 dex (xyz). With a unified account, your spot USDC counts for both. The ticket shows the amount needed for the position you pick: your budget plus its margin.
- Connect. Open Trade and connect the wallet that holds the USDC.
- Two signatures, once. The first, for Optiva on Elysium, creates your trading key; no gas is spent. The second, on Hyperliquid, approves that key. The key can place and cancel orders on your account; Hyperliquid does not let it withdraw or transfer.
- Pick a move and a floor. Choose the market, the move you expect (up, down, or a big move either way), the days and your budget. The budget is your floor: the engine closes the position when the loss reaches it. Sign once and the engine opens the hedge in your account.
- Close any time. From your positions on the trade page, one signature closes it at market. Left alone, it closes on its expiry date.
Method
An option’s value moves with the price by its delta. Hold a perp sized at that delta, resize it as the delta changes, and the perp’s profit and loss follows the option’s. Optiva does exactly this in your own Hyperliquid account: you pick a market, a structure, a strike, a number of days and a budget, which is your floor; the engine keeps one perp sized at the structure’s delta and resizes it for the life of the position.
All legs of a position are hedged as one net perp. One position per market per wallet, because two would net on Hyperliquid.
target = Σ qtyᵢ · q · Δᵢ(S, τ, σᵢ) q = units bought with your budget
Pricing
Implied vol comes from Derive’s options market where the asset is listed (BTC, ETH, HYPE, SOL, and NVDA, the S&P 500, XYZ100, gold and oil on the HIP-3 dex): Derive’s mark vol at each strike, read in log-moneyness and laid over Hyperliquid’s mark, linear between strikes and linear in total variance across expiries. Elsewhere the model uses realized vol, the larger of an EWMA on hourly returns (λ 0.94) and a Parkinson estimate from hourly ranges over 8 days, floored at 25% and multiplied by 1.25. While a stock or commodity’s cash market is closed, the model’s vol carries a further ×1.3.
Each leg is priced with Black–Scholes on the mark. Funding enters as the carry of the hedge at today’s hourly rate. Hedging costs follow Leland: the hedge’s expected turnover, scaled by the structure’s gamma, the vol and the square root of time, at Hyperliquid’s taker fee κ (0.045% on the main dex, about twice that on HIP-3), plus opening and closing the hedge. A close reserve R keeps room to close the hedge at the floor: the fee plus a gap allowance of 1% of the hedge’s notional for crypto and 2.5% for HIP-3 markets.
Π = Σ qtyᵢ · Cᵢ(S, K, τ, σᵢ) option value, per unit F = max(0, Δ · f) · S · hours expected funding H = κ · S · (2|Δ| + 4 · |Γ| · S · σ · √τ) hedging fees R = |Δ| · S · (gap + κ) close reserve q = B / (Π + F + H + R)
The ticket shows every line: option value, expected funding, hedging fees and the close reserve. They add up to your budget.
Every quote, on the ticket, the API and the MCP server, also carries four numbers to read before you sign. They come from the same legs, units and vols as the price, and every result is in % of your budget.
- Chance of profit. From 0 to 1 (chanceOfProfit): the probability, implied by the leg vols, that the price at expiry ends past the breakeven. It is the market’s pricing, not a forecast; chanceBasis says whether the vols come from Derive or the model.
- Max profit. Open when the gain has no cap. Otherwise the capped max result at expiry, in % of your budget (maxProfit.pct), and the price where it is first reached (maxProfit.at).
- Move to breakeven. The signed move from the mark to each breakeven, in % (moveToBreakeven: 4.2 means up 4.2%), in the order of the breakevens.
- Exposure. The perp notional held now divided by your budget, signed, long above zero (exposure: 14 means about 14 times your budget). It changes as the engine resizes the hedge.
Each quote also carries the size limit. sizeAtFull gives the reserve to close the hedge and the margin once the hedge holds its full delta, in multiples of your floor. When a ticket is too large for its floor, refusal is the engine’s sentence: the ticket shows no figure and cannot be opened, and fit is the nearest ticket that passes. The rules show the limits in force.
The floor
Equity is the cash from fills net of the real fees, plus the hedge at the mark, minus the funding actually paid. When the loss plus the cost to close what is held reaches the budget, the engine closes the hedge at once. The reserve is there so the close itself lands at about −B.
close when −equity + |held| · S · (gap + κ) ≥ B
The floor is enforced on the loss in dollars, checked on every price move the engine reads. A fast gap between two prices can land the close slightly past it.
The backstop
Every real position also has a reduce-only stop-market order on Hyperliquid for the held size, at the price where the loss would reach 110% of the budget. It is replaced after each resize. If the engine is down, Hyperliquid closes. Trigger orders are visible on your account’s open orders.
Where this rule and every other one stand right now: the rules, as they stand.
Hedging
The engine resizes when the hedge drifts from the target by more than a band scaled by the structure’s gamma, between 2% and 8% of the size, and only when the order is worth at least $10. It reads every market about every two seconds while it runs.
Orders go maker first, post-only at the touch, then immediate-or-cancel. Each carries a deterministic client id, so a retried order is never doubled. Closes are reduce-only and never skipped. Sizes are rounded to the market’s lot size (its szDecimals) and prices to Hyperliquid’s tick rule. The live engine page builds, at every load, the order the engine’s code writes for a new position on the ticket’s defaults, without signing or sending it.
Margin
Each position uses isolated margin on its market, 1.2 times the budget plus maintenance on the hedge, from your free USDC, so the floor, then the backstop at 110% of the budget, both come before a liquidation. If Hyperliquid liquidates anyway, the position closes as liquidated and is never reopened.
Custody
Your funds stay in your Hyperliquid account. When you approve trading, the engine creates an agent key for your wallet, sealed with AES-256-GCM; it never leaves the engine and is never logged. You approve it on Hyperliquid with your wallet. Hyperliquid lets agent keys place and cancel orders; it does not let them withdraw or transfer.
Every open, close and agent request is an EIP-712 signature from your wallet (domain Optiva, version 1, chain 99901), with a nonce that only goes up and a deadline at most five minutes out. To revoke the agent, remove it from the API page of your Hyperliquid account.
Fees
There is no engine fee. You pay Hyperliquid’s own trading fees and funding, already inside every quote. No token is needed to trade; holding OPTIVA raises the floor you can set and the positions you can run (holder floors).
The record
Every decision or event is a leaf: the canonical JSON of its inputs and action (position, sequence, time, mark, vol, target, held, band, equity, action, fill), hashed. Once a minute the engine also writes one check leaf: the positions it checked that needed no trade, the mark and vol on each market, and the largest drift against the band. So every UTC minute in which the engine checks a position has a decision: its leaves form a Merkle tree, and the root is sealed on Elysium with the number of leaves. Minutes recorded before sealing began keep their root in the record and in every proof, with no seal on Elysium.
leaf = keccak256("optiva.leaf.v1" ‖ canonical JSON)
node = keccak256(min(a, b) ‖ max(a, b)) an odd node is carried up
root = the top node of the minute's sorted leavesAnyone can verify a leaf against the contract in the browser on the proof page, and read each decision with its inputs on any position page. The demo book runs the same engine code on paper fills at live prices: every two hours it opens a standard set, a call and a put on BTC, ETH, HYPE, SOL, gold and NVDA, 7 days, strike at the price, a $100 floor. It is sealed the same way, with paper set to true, and every one of its decisions is labelled demo on the site. The live engine page shows, at every load and in plain HTML, the mode the engine reports, and checks its heartbeat and the latest sealed minute against the root Elysium returns for it.
Record contract: OptivaRecord, address published here once deployed.
Contracts
OptivaRecord on Elysium (chain 99901): not deployed yet; until it is, roots are built and kept every minute and sealing starts once it is live.
It keeps the record. Only the sealer, a key held by the engine, can call seal(minute, root, count), minutes only moving forward; a minute sealed can never change. Anyone can read roots(minute), head (the latest minute sealed) and sealedCount, and call verify(minute, leaf, proof) to check a decision on chain. The owner, a separate key, can replace the sealer only by proposing one and waiting two days before it takes over. The contract holds no funds.
Any other address using these names is not ours.
OptivaRecord’s owner, sealer and pending sealer, read from Elysium, with every owner function and its delay: the rules, as they stand.
Limits at launch
There is also a global cap on open notional ($250,000), and a pause switch for new positions. OPTIVA holders get larger floors and more open positions: see holder floors.
Holder floors
The more OPTIVA a wallet holds on Elysium, the larger the floor it can set and the more positions it can run at once. The minimum floor and the global cap on open notional stay the same for everyone.
The engine reads the wallet’s OPTIVA balance (balanceOf on the token contract) at every open that goes past what everyone gets, from a read at most 30 seconds old. The wallet that signs the open is the one whose balance counts. If the balance cannot be read, the open gets everyone’s limits and says why. Quotes price any floor up to $500; the open is what checks the tier. The tiers are in GET /api/v1/status (limits.holderTiers) and a wallet’s own in GET /api/v1/me (holder).
The token
OPTIVA launches on Montra, on Elysium (chain 99901). Its address will be published here, in the header and in GET /api/v1/status the moment it is live; until then, a token using the name is not ours.
Risks
- Gaps. A jump between two prices can close a position slightly past its floor.
- Model. The hedge follows the option only as well as the vol it uses; realized moves can differ from implied.
- Funding and costs. Funding and hedging costs are estimated in the quote; the real ones can be higher.
- Engine downtime. If the engine stops, the backstop on Hyperliquid closes at 110% of the budget.
- Liquidation. If Hyperliquid liquidates a position despite its isolated margin, it closes as liquidated.
- Platforms. Hyperliquid, Derive’s data and Elysium can fail or change. HIP-3 markets follow their cash market’s sessions.
- Agent key. It cannot withdraw, but it can trade your account. Revoke it if you stop using Optiva.
- Loss. You can lose your whole budget. Past results, including the demo book’s, do not predict future ones.
Optiva is software, not a broker or an adviser. Read the terms.