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 ed25519 signature, so an agent never holds the power to move funds: the trading key the engine uses on Pacifica can trade and cannot withdraw.
Connect
Streamable HTTP, stateless JSON-RPC. No key needed to read.
claude mcp add --transport http optisol https://optisol.cfd/mcp
Thirteen tools
The same thirteen over MCP and HTTP. open_option returns the message 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 message 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 Solana
A live call
Made for this page load at 21:33:51 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": 59271.0129,
"legs": [
{
"kind": "call",
"strike": 59250,
"qty": 1,
"iv": 0.4819,
"price": 1587.8278,
"delta": 0.5154
}
],
"days": 7,
"expiry": 1796852032889,
"budget": 50,
"units": 0.0246,
"notional": 1458.4935,
"breakdown": {
"optionValue": 39.072,
"expectedFunding": 1.5787,
"expectedFees": 1.5312,
"closeReserve": 7.8182,
"engineFee": 0,
"total": 50
},
"greeks": {
"delta": 751.7465,
"gamma": 87.1309,
"vega": 0.8052,
"theta": -2.7713
},
"breakevens": [
61281.9259
],
"floor": 50,
"payoff": [
{
"price": 41489.709,
"result": -100
},
{
"price": 41848.9273,
"result": -100
},
// 98 more points
],
"ivSource": "market",
"warnings": [],
"chanceOfProfit": 0.2925,
"chanceBasis": "implied by Derive's options market, not a forecast",
"maxProfit": {
"open": true,
"pct": null,
"at": null
},
"moveToBreakeven": [
3.3927
],
"exposure": 15.0349,
"marginNeeded": 89.3668,
"marginSetAside": 67.5175,
"sizeAtFull": {
"reserve": 0.3034,
"margin": 2.0757,
"setAside": 1.4917
},
"venue": "pacifica",
"openBlocked": null,
"refusal": null,
"fit": null
}Sign and open
A plain-text message signed with the wallet’s signMessage: “Optisol request v1”, then chain solana:mainnet, action, user, payload, nonce and deadline, one per line; payload = keccak256 of the body’s canonical JSON. The signature is base58. Nonces only go up; deadlines are at most five minutes out.
import { Keypair } from '@solana/web3.js'
import { Optisol } from './optisol' // https://optisol.cfd/sdk/optisol.ts
const optisol = new Optisol()
const kp = Keypair.fromSecretKey(secretKey) // the wallet that owns the Pacifica account
const user = kp.publicKey.toBase58()
// 1. the request: what to open, with a nonce and a 4-minute deadline
const req = optisol.request('open', user, {
coin: 'BTC', preset: 'call', strikePct: 100, days: 7, budget: 50,
})
// 2. the wallet signs the request's text (ed25519, base58; no transaction, no SOL)
const signature = optisol.sign(req, kp.secretKey)
// 3. submit, then wait for the engine to open it
const { intent } = await optisol.open(req, signature)
const result = await optisol.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, sealer address, 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=<Solana address>&days=7 | Protect my position: an address’s open perps on Pacifica, 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 Pacifica’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, Solana seal transaction |
| GET | /api/v1/proof | The latest sealed minute: root, Solana seal transaction, sealer, one sample leaf with its proof |
| GET | /api/v1/proof/live | The live engine checked now: heartbeat, the latest minute against Solana, a fresh Pacifica read, the order it would place |
| GET | /api/v1/proof/{leaf} | The Merkle proof of a leaf and its minute, with the memo check on Solana once sealed |
| GET | /api/v1/rules | The rules every position runs under, with their state now, the sealer’s powers and the last hour’s seals checked |
| POST | /api/v1/agent | Signed: create the wallet’s agent key, returns the address to bind on Pacifica (bind_agent_wallet) |
| POST | /api/v1/agent/bind | Relays the wallet-signed Pacifica bind_agent_wallet request for that agent key: { account, agent_wallet, signature, timestamp, expiry_window } |
| 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=<Solana address> | A wallet’s own positions, agent status, last nonce and holder tier |