Chapter II
Built for desks that reconcile from the chain
- I
Request a price
Post a real bid at your price; writers answer with offers on chain. Live on the testnet.
- II
SDK and API
A typed SDK that simulates every order before you sign it with your own wallet; the MCP server returns unsigned transactions for your own signer.
- III
Agents trading options within limits
Grant software a budget. Actions, budgets and expiry limits are enforced by the contract, and funds never move to the agent.
- IV
Auditable option positions
Every escrow and settlement is a public record. Reconcile from the chain, not from a statement.
import { Kind, marketCalls, previewCreateOffer, simulateMarketCall, sendSimulated } from "@coverline-fi/sdk";
// Write a covered call: the preview first (what you lock, receive, the worst case), then sign
const p = { underlying: TSLA, kind: Kind.CALL, lotSize, lots: 1, strike, premiumPerLot, expiry };
const preview = await previewCreateOffer(ctx, account, p);
const sim = await simulateMarketCall(ctx, account, marketCalls.createOffer(p));
await sendSimulated(wallet, sim);