본문으로 건너뛰기
cccskills
무료GitHub에 공개

options-pricing

[STUB] Options pricing models including Black-Scholes, binomial trees, Monte Carlo, implied volatility surfaces, and Greeks for crypto options

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

실행 점수 미검증

설치 방법 보기

포함된 파일(3)

  • SKILL.md5.5 KB
  • references/planned_features.md4.7 KB
  • scripts/black_scholes.py13.8 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

Options Pricing

Status: STUB — This skill provides a basic Black-Scholes implementation and an overview of planned capabilities. Full implementation is awaiting community contribution.

Options pricing is the quantitative foundation of derivatives trading. For crypto markets, options on BTC and ETH trade actively on Deribit, Lyra, and Aevo, while Solana options are emerging on platforms like Zeta Markets and PsyOptions. Understanding pricing models, implied volatility surfaces, and Greeks is essential for hedging, volatility trading, and constructing structured products.

This skill is informational and analytical only. It does not provide financial advice or trading recommendations.


Current Capabilities

This stub includes a working Black-Scholes calculator with Greeks computation and a basic implied volatility solver. See scripts/black_scholes.py for the implementation.

import math
from scipy.stats import norm

def black_scholes_call(S: float, K: float, T: float, r: float, sigma: float) -> float:
    """Price a European call option using Black-Scholes.

    Args:
        S: Current underlying price.
        K: Strike price.
        T: Time to expiration in years.
        r: Risk-free rate (annualized).
        sigma: Volatility (annualized).

    Returns:
        Theoretical call option price.
    """
    d1 = (math.log(S / K) + (r + 0.5 * sigma**2) * T) / (sigma * math.sqrt(T))
    d2 = d1 - sigma * math.sqrt(T)
    return S * norm.cdf(d1) - K * math.exp(-r * T) * norm.cdf(d2)

Run the demo:

python scripts/black_scholes.py --demo

Planned Capabilities

When fully implemented, this skill will cover:

Pricing Models

ModelOption StyleUse Case
Black-ScholesEuropeanVanilla calls/puts, quick Greeks
Binomial TreeAmericanEarly exercise, dividend-paying assets
Monte CarloExoticPath-dependent, barrier, Asian options
Black-76FuturesFutures options on crypto perpetuals

Greeks

GreekMeasuresFormula Basis
DeltaPrice sensitivity to underlyingdC/dS
GammaDelta sensitivity to underlyingd²C/dS²
ThetaTime decay per daydC/dT
VegaSensitivity to volatilitydC/dσ
RhoSensitivity to interest ratesdC/dr

Implied Volatility

  • Newton-Raphson and bisection IV solvers
  • Volatility smile and skew analysis
  • IV surface construction (strike x expiry)
  • IV term structure analysis
  • Vol-of-vol estimation

Crypto Options Platforms

PlatformChainAssetsStyle
DeribitOff-chainBTC, ETHEuropean
LyraOptimism/ArbitrumETH, BTCEuropean
AevoEthereum L2BTC, ETH, altsEuropean
Zeta MarketsSolanaSOL, BTCEuropean
PsyOptionsSolanaSOL, variousAmerican

Structured Products

  • Covered calls and protective puts
  • Straddles and strangles for volatility trading
  • Vertical spreads for directional exposure
  • Iron condors for range-bound markets
  • Calendar spreads for term structure trades

Prerequisites

# Core (for full implementation)
uv pip install numpy scipy

# Optional (for visualization)
uv pip install matplotlib

The included scripts/black_scholes.py uses only the Python standard library (math module) and runs without any dependencies.


Use Cases

Hedging

Compute delta-neutral hedge ratios for crypto spot positions using options. Calculate the number of put contracts needed to protect a portfolio against downside moves.

Volatility Trading

Compare implied volatility to realized volatility to identify over/underpriced options. When IV significantly exceeds realized vol, selling premium may be favorable (and vice versa).

Structured Products

Price structured products that combine options at different strikes and expirations. Analyze payoff profiles and breakeven points before execution.

Risk Assessment

Use Greeks to understand portfolio-level exposure to price moves (delta), acceleration (gamma), time decay (theta), and volatility changes (vega).


Quick Reference: Black-Scholes Formulas

Call price:

C = S * N(d1) - K * e^(-rT) * N(d2)

Put price:

P = K * e^(-rT) * N(-d2) - S * N(-d1)

Where:

d1 = [ln(S/K) + (r + σ²/2) * T] / (σ * √T)
d2 = d1 - σ * √T

Put-call parity:

C - P = S - K * e^(-rT)

Files

FileDescription
references/planned_features.mdPlanned features, formulas, data sources, and implementation priorities
scripts/black_scholes.pyBlack-Scholes calculator with Greeks and implied vol solver

Contributing

This skill is a stub awaiting full implementation. To contribute:

  1. Implement binomial tree pricing for American-style options
  2. Add Monte Carlo simulation for exotic payoffs
  3. Build IV surface construction from market quotes
  4. Integrate Deribit API for live options chain data
  5. Add portfolio Greeks aggregation

See references/planned_features.md for the full feature list and implementation priorities.


This skill provides analytical tools and mathematical models for informational purposes only. It does not constitute financial advice. Options trading involves substantial risk of loss.

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Event-driven backtesting with bar-by-bar execution, complex order types, multiple analyzers, and custom indicators

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

agiprolabs/claude-trading-skills4362026년 9월 3일 업데이트

Solana token market data via Birdeye — prices, OHLCV, trades, token metadata, security checks, and trader activity

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

agiprolabs/claude-trading-skills4362026년 9월 3일 업데이트

Broad crypto market data from CoinGecko covering 13,000+ tokens. Global market stats, historical price data going back years, exchange volumes, trending tokens, and category filters. Best for macro analysis and long-term historical data.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

agiprolabs/claude-trading-skills4362026년 9월 3일 업데이트

Cointegration testing for pairs trading using Engle-Granger, Johansen, and rolling stability analysis

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

agiprolabs/claude-trading-skills4362026년 9월 3일 업데이트

Wallet evaluation, monitoring, and copy-trade strategy design for Solana DEX trading

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

agiprolabs/claude-trading-skills4362026년 9월 3일 업데이트

Cross-asset correlation analysis including rolling correlation, hierarchical clustering, tail dependence, and regime-dependent correlation

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

agiprolabs/claude-trading-skills4362026년 9월 3일 업데이트

agiprolabs의 스킬 모두 보기

이 스킬의 문제 신고