Index of every page on this site: llms.txt
All skills
yonesuke avatar

/optionpricing

@1e23d34
Run it yourself

Option pricing tools including Black-Scholes model, Greeks Calculation using Auto-Differentiation, and Exotic Options.

  • 4 files
  • 5.4 KB
  • Updated 10 months ago
  • GitHub
Use this Skill: https://skilld.dev/gh/yonesuke/skills/optionpricing

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

reference.md

≈440 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Option Pricing Reference

1. Fundamentals

GBM & Ito's Lemma

  • SDE: $dS_t = \mu S_t dt + \sigma S_t dW_t$
  • Ito: $df = (\frac{\partial f}{\partial t} + \dots) dt + \sigma \dots dW_t$

2. Pricing Framework

  • Risk-Neutral Measure ($\mathbb{Q}$): Discounted price is a martingale.
  • Feynman-Kac: Link between PDE and Expectation.

3. Black-Scholes Model

PDE: $$ \frac{\partial V}{\partial t} + \frac{1}{2}\sigma^2 S^2 \frac{\partial^2 V}{\partial S^2} + (r-q) S \frac{\partial V}{\partial S} - rV = 0 $$

4. Analytical Solutions & Greeks

Vanilla European

  • Call: $S e^{-q\tau} N(d_1) - K e^{-r\tau} N(d_2)$
  • Put: $K e^{-r\tau} N(-d_2) - S e^{-q\tau} N(-d_1)$

Greeks

  • Delta: Sensitivity to Price.
  • Gamma: Sensitivity to Delta.
  • Vega: Sensitivity to Volatility.
  • Theta: Time decay.
  • Rho: Sensitivity to rates.

Digital Options (Binary)

  • Cash-or-nothing, Asset-or-nothing solutions provided in [original cheatsheet content - preserved in Sections 4 & 5 of full text].

5. Exotic Options (Path Dependent)

Barrier Options

Single Barrier (Up/Down + In/Out).

  • Formulas involve reflection principle terms ($ (H/S)^{2\lambda} $).

Lookback Options

Floating vs Fixed strike. Depend on Max/Min over period.

Asian Options

  • Geometric: Closed form exists (volatility adjustment).
  • Arithmetic: No closed form (approx needed).

6. American Options

  • Finite: No closed form (Trees, PDE, BBAW).
  • Perpetual: ODE solution ($S^\gamma$).

7. Delta Hedging & PnL

  • Market Completeness: Risk elimination via replication.
  • PnL: $\approx \frac{1}{2} S^2 \Gamma (\sigma_{imp}^2 - \sigma_{real}^2) dt$. (Gamma trading).

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No third-party reports yet.

Signed by skilld at 1e23d34. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 months ago.

Dormantupdated 10 months ago

README badge

README badge for yonesuke/skills/optionpricing