Agents can buy a floor too.
An agent can quote, open and close options with the same signed requests as the app. Reads are open. Every write carries the wallet’s EIP-712 signature, so an agent never holds the power to move funds: the agent key the engine uses can trade and cannot withdraw.
Connect
Streamable HTTP, stateless JSON-RPC. No key needed to read.
claude mcp add --transport http optiva https://optiva.cfd/mcp
Thirteen tools
The same thirteen over MCP and HTTP. open_option returns the typed data to sign when the signature is missing.
- list_marketsMarkets, marks, vols, sessions
- get_boardEvery market’s move to break even, side by side
- protect_positionAn address’s perps, each with the option that protects it
- replay_floorWhat a floor did over a past week, hour by hour
- get_surfaceThe smile per expiry and its source
- quote_optionAll-in price, size, payoff and risk figures
- share_quoteA link and a card image for any quote
- open_optionReturns the typed data to sign, then opens
- close_optionCloses on a signed request
- get_positionsYour positions, results in %
- get_bookThe demo book and live positions
- get_rulesEvery rule a position runs under, with its state now
- verify_leafThe proof for any decision, checked against Elysium
A live call
Made for this page load at 22:57:17 UTC, with the response the quote engine returned. Your agent gets the same.
{
"coin": "BTC",
"preset": "call",
"strikePct": 100,
"days": 7,
"budget": 50
}{
"coin": "BTC",
"mark": 59808,
"legs": [
{
"kind": "call",
"strike": 59750,
"qty": 1,
"iv": 0.494,
"price": 1660.5152,
"delta": 0.5193
}
],
"days": 7,
"expiry": 1796770637385,
"budget": 50,
"units": 0.0238,
"notional": 1421.4792,
"breakdown": {
"optionValue": 39.4661,
"expectedFunding": 1.1377,
"expectedFees": 1.6824,
"closeReserve": 7.7139,
"engineFee": 0,
"total": 50
},
"greeks": {
"delta": 738.1704,
"gamma": 82.7886,
"vega": 0.7844,
"theta": -2.7681
},
"breakevens": [
61853.7241
],
"floor": 50,
"payoff": [
{
"price": 41865.6,
"result": -100
},
{
"price": 42228.0727,
"result": -100
},
// 98 more points
],
"ivSource": "market",
"warnings": [],
"chanceOfProfit": 0.2955,
"chanceBasis": "implied by Derive's options market, not a forecast",
"maxProfit": {
"open": true,
"pct": null,
"at": null
},
"moveToBreakeven": [
3.4205
],
"exposure": 14.7634,
"marginNeeded": 91.1234,
"marginSetAside": 69.2271,
"sizeAtFull": {
"reserve": 0.2971,
"margin": 2.1361,
"setAside": 1.5554
},
"dex": "",
"openBlocked": null,
"refusal": null,
"fit": null
}Sign and open
Domain Optiva, version 1, chain 99901. Type Request(string action, address user, bytes32 payload, uint64 nonce, uint64 deadline), payload = keccak256 of the body’s canonical JSON. Nonces only go up; deadlines are at most five minutes out.
import { createWalletClient, custom } from 'viem'
import { Optiva } from './optiva' // https://optiva.cfd/sdk/optiva.ts
const optiva = new Optiva()
const wallet = createWalletClient({ account, transport: custom(window.ethereum) })
// 1. the request: what to open, with a nonce and a 4-minute deadline
const req = optiva.request('open', account, {
coin: 'BTC', preset: 'call', strikePct: 100, days: 7, budget: 50,
})
// 2. the wallet signs EIP-712 typed data (domain Optiva, chain 99901)
const signature = await wallet.signTypedData({ account, ...optiva.typedData(req) })
// 3. submit, then wait for the engine to open it
const { intent } = await optiva.open(req, signature)
const result = await optiva.waitIntent(intent)HTTP API
JSON in, { data } or { error } out. Public reads are cached for a few seconds.
| GET | /api/v1 | Every endpoint, with links to the MCP server, the SDK and llms.txt |
| GET | /api/v1/status | Network, pause switch, engine heartbeat, record contract, token address once set, limits with the holder floors (limits.holderTiers) |
| GET | /api/v1/markets | Every market: mark, 24 h change, hourly funding, 7-day ATM implied vol and its source, session |
| GET | /api/v1/board?sort=move&group=all | The Floor Board: every market’s move to break even up, down or either way, 7 days, strike at today’s price, $100 floor, with chance, vol and its source; highlights; listed, priced, refused, pending |
| GET | /api/v1/protect?user=0x…&days=7 | Protect my position: an address’s open perps, each with the option that protects it, coverage and the position at expiry in % |
| GET | /api/v1/replay?coin=BTC&preset=call&budget=100&start=YYYY-MM-DD&days=7 | What a floor would have done over a past week, hour by hour on Hyperliquid’s prices, beside a perp with a stop, in % of the floor |
| GET | /api/v1/surface/{coin} | The smile per expiry and its source (Derive or model) |
| POST | /api/v1/quote | All-in quote: units, breakdown, greeks, breakevens, payoff, chance of profit, max profit, move to breakeven, exposure, margin, and the size limit’s refusal with the nearest ticket that fits (GET with the same query parameters works too) |
| GET | /q?coin=&preset=&strike=&days=&budget= | A shareable quote: a page priced live with the ticket’s own params, its card image at /q/card, the ticket at /trade |
| GET | /api/v1/book | The demo book and live positions, results in % |
| GET | /api/v1/decisions?limit=20 | The engine’s latest decisions, newest first |
| GET | /api/v1/positions/{id} | A position with every leaf |
| GET | /api/v1/record?limit=30 | Latest minutes: root, leaf count, Elysium tx |
| GET | /api/v1/proof | The latest sealed minute: root, Elysium tx, contract, one sample leaf with its proof |
| GET | /api/v1/proof/live | The live engine checked now: heartbeat, the latest minute against Elysium, a fresh Hyperliquid read, the order it would place |
| GET | /api/v1/proof/{leaf} | The Merkle proof of a leaf and its minute |
| GET | /api/v1/rules | The rules every position runs under, with their state now, the owner’s powers and the last hour’s seals checked |
| POST | /api/v1/agent | Signed: create the wallet’s agent key, returns the address to approve on Hyperliquid |
| POST | /api/v1/positions | Signed: open a position (an intent the engine executes) |
| POST | /api/v1/positions/{id}/close | Signed: close a position |
| GET | /api/v1/intents/{id} | Status of a signed request: new, taken, done or failed |
| GET | /api/v1/me?user=0x… | A wallet’s own positions, agent status, last nonce and holder tier |