Works with the AI Agents you already use
Options And Vol Pricing
by BanditXBT
Price and review on-chain options and vaults: Black-Scholes/Black-76, vol surface, Greeks, settlement risk.
Free
About this skill
European vs. American; call/put; strike, expiry timestamp, underlying/quote/collateral tokens and decimals; cash- vs. physically-settled; settlement price source (spot at expiry vs. TWAP window); exercise rights (auto-exercise? window?); who can write, who is the counterparty (peer-to-peer, vault, AMM). Ambiguity here causes more loss than math errors.
-
Black-Scholes-Merton (European, lognormal):
C = S·N(d1) − K·e^{−rT}·N(d2),d1 = [ln(S/K) + (r+σ²/2)T]/(σ√T),d2 = d1 − σ√T. Crypto: setr≈ funding/borrow basis or 0 with explicit justification; for perp/futures underlyings use Black-76 on the forwardF. -
Sanity checks (use as unit tests): put-call parity
C − P = S − K·e^{−rT}(orFform), monotonicity in S, K, σ, T; price ≥ intrinsic; price → 0 / intrinsic as T → 0 or σ → 0. -
Vol surface: implied vol varies by strike (skew/smile) and tenor. Flat-vol pricing is exploitable. Parametrize (SVI/SABR or per-expiry delta-vol buckets), enforce no-arbitrage (calendar and butterfly), calibrate from liquid venues (Deribit, CEX/DEX quotes) and reject stale inputs.
-
Greeks: delta, gamma, vega, theta, rho. Aggregate book Greeks; compute analytically on-chain only if gas permits, otherwise off-chain with on-chain bounds checks.
-
Numerics on-chain: fixed-point (WAD/RAY) normal CDF approximation (Abramowitz-Stegun or lookup/polynomial),
ln/explibraries (e.g., PRBMath/Solmate/Solady); bound error and test against a high-precision reference (Pythonscipy/mpmath) over a dense grid including extremes (deep ITM/OTM, tiny T, huge σ). Overflow and sign handling atd1extremes. -
Writer collateral: covered calls (underlying), cash-secured puts (strike×size), or margined short options (portfolio margin by scenario/SPAN-style grid: spot ±x%, vol ±y%). Under-collateralization for short gamma near expiry is the classic failure.
-
Vault/LP risk: short-vol strategies earn premium and suffer tail losses; model PnL under jump scenarios; check withdrawal timing (epoch/queue) so late LPs cannot dump losses on remaining LPs; share price accounting with unsettled options.
-
AMM-style options: inventory risk → dynamic spread from vega/gamma exposure and skew; ensure quotes widen as book Greeks grow; cap net delta/vega; hedging bot assumptions (slippage, latency, gas).
-
Perpetual options (e.g., LP-position-based): mapping between concentrated-liquidity positions and option payoffs; streaming premium (funding-like) accounting; liquidation as price crosses range.
-
Expiry price must be manipulation-resistant: TWAP over a window or median of sources; avoid single spot block. Attackers will move price near expiry if cost < payoff difference (compute
max payoff swing × OIvs. manipulation cost). -
Handle: expiry exactly at timestamp boundary, no-price-available fallbacks, oracle downtime at expiry, disputes.
-
Unexercised ITM options: auto-exercise rule and who pays gas.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Free to use
No account required to browse
Trust & safety
Security scan
Security scan passed 13 days ago
- Free with an Agensi account
Nothing to install. It runs in your AI agent.
- Optional
Python
Permissions
No special permissions declared or detected
What's inside
Frequently Asked Questions
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse All Claude Skills.