Token导航 LogoToken导航TokenDH.com
效率敏感数据clawhub未标认证来源可访问clear审计提醒

option-calculator期权计算器

Agent Skill

option-calculator 用于补充效率相关能力,适合在 OpenClaw 中需要让 Agent 承接效率相关任务时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

18,577

周安装

798

GitHub Stars

1

下载量

6,512
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:option-calculator(期权计算器)
来源仓库:https://github.com/xueyetianya/option-calculator
安装命令:
openclaw skills install option-calculator
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install option-calculator

简介

为期权定价,计算希腊字母,并通过运动分析绘制损益图。在定价期权、计算希腊值、可视化损益曲线时使用。

SKILL.md

version
2.4.0
name
Option Calculator
description
Price options, compute Greeks, and plot P&L diagrams with exercise analysis. Use when pricing options, calculating Greeks, visualizing profit-loss curves.
author
BytesAgain
homepage
https://bytesagain.com
source
https://github.com/bytesagain/ai-skills

Option Calculator

A Black-Scholes option pricing toolkit that runs entirely in your terminal. Feed it a spot price, strike, volatility, and time to expiration — it returns theoretical prices, Greeks, implied volatility, payoff tables, and more.

All math is computed inline via Python 3 using the Abramowitz & Stegun approximation for the normal CDF (no scipy dependency).

Commands

price

option-calculator price <type> <spot> <strike> <rate> <vol> <days>

Compute the Black-Scholes theoretical price for a European call or put.

ArgumentDescription
typecall or put
spotCurrent underlying price
strikeStrike price
rateRisk-free rate (annualized, e.g. 0.05)
volImplied volatility (annualized, e.g. 0.20)
daysDays to expiration

greeks

option-calculator greeks <type> <spot> <strike> <rate> <vol> <days>

Compute the five standard Greeks: Delta, Gamma, Theta (per day), Vega (per 1% vol move), and Rho (per 1% rate move). Same arguments as price.

iv

option-calculator iv <type> <spot> <strike> <rate> <days> <market_price>

Back out the implied volatility from a known market price using Newton-Raphson iteration. Converges to 1e-8 precision within 200 iterations.

ArgumentDescription
market_priceThe observed option premium

payoff

option-calculator payoff <type> <strike> <premium> [range]

Print a table showing intrinsic value and net P/L at expiration across a range of underlying prices. Default range is ±20 around the strike.

compare

option-calculator compare <spot> <strike1> <strike2> <vol> <days>

Side-by-side comparison of two strikes — call price, put price, deltas, and gamma. Uses a fixed risk-free rate of 5%.

chain

option-calculator chain <spot> <vol> <days>

Generate a full option chain with calls, puts, deltas, and gamma across strikes from ~80% to ~120% of spot. Each row is flagged as ITM, ATM, or OTM relative to the call side.

pnl

option-calculator pnl <type> <entry> <current> <qty>

Calculate profit or loss on an existing position. Assumes standard 100 shares per contract. Use negative qty for short positions.

breakeven

option-calculator breakeven <type> <strike> <premium>

Compute the breakeven underlying price at expiration and show max loss for the buyer.

help

option-calculator help

Print the built-in usage guide.

version

option-calculator version

Print the current version string.

Examples

# Price a 30-day call: spot=100, strike=105, rate=5%, vol=20%
$ option-calculator price call 100 105 0.05 0.20 30
Black-Scholes Price (call):
  0.7677

# Greeks for a 60-day put: spot=50, strike=48, rate=3%, vol=35%
$ option-calculator greeks put 50 48 0.03 0.35 60
Greeks (put)  S=50 K=48 r=0.03 σ=0.35 T=60d
──────────────────────────────────
Delta:  -0.312245
Gamma:  0.052040
Theta:  -0.020369  (per day)
Vega:   0.074853  (per 1% vol)
Rho:    -0.029259  (per 1% rate)

# Solve implied volatility from a market price of 3.50
$ option-calculator iv call 100 105 0.05 30 3.50
Implied Volatility Solver (call)  S=100 K=105 r=0.05 T=30d  Market=3.50
──────────────────────────────────
Implied Volatility: 0.416566  (41.66%)

# Payoff table for a call, strike=100, premium=5.50
$ option-calculator payoff call 100 5.50
Payoff Table (call)  K=100  Premium=5.50
──────────────────────────────────
  Underlying    Intrinsic       Net P/L
------------------------------------
       80.00        0.00       -5.50
       85.00        0.00       -5.50
       ...
      100.00        0.00       -5.50 <-- strike
      105.00        5.00       -0.50
      106.00        6.00       +0.50
      110.00       10.00       +4.50
      120.00       20.00      +14.50

# Compare two strikes
$ option-calculator compare 100 95 110 0.25 45
Strike Comparison  S=100  K1=95 vs K2=110  σ=0.25 T=45d
──────────────────────────────────
                      Strike 95.0   Strike 110.0
------------------------------------------------
        Call Price         7.0150         0.7353
         Put Price         1.4312        10.0593
        Call Delta      +0.793714      +0.135799
         Put Delta      -0.206286      -0.864201
             Gamma       0.035611       0.028346

Spot: 100.0  |  Rate: 0.05  |  Vol: 0.25  |  Days: 45.0

# Generate an option chain
$ option-calculator chain 100 0.25 45
Option Chain  |  Spot: 100.0  |  Vol: 25%  |  Days: 45  |  Rate: 0.05
  Strike      Call   C.Delta       Put   P.Delta     Gamma  IV flag
--------------------------------------------------------------
     90.00   10.7823  +0.9268    0.2279  -0.0732  0.012463  ITM
     93.00    8.1952  +0.8639    0.6229  -0.1361  0.019087  ITM
    100.00    3.6738  +0.5580    3.0651  -0.4420  0.032208  ATM
     ...
    110.00    0.8916  +0.1623   10.2497  -0.8377  0.019938  OTM
     ...
    110.00    0.8916  +0.1623   10.2497  -0.8377  0.019938  OTM

# P/L on a long position: bought 5 call contracts at 3.20, now worth 4.80
$ option-calculator pnl call 3.20 4.80 5
Position P/L
──────────────────────────────────
Position:    Long 5x call
Entry:       3.2000
Current:     4.8000
P/L per contract: +1.6000
Total P/L:   +800.00  (+50.00%)

# Breakeven for a put
$ option-calculator breakeven put 100 4.50
Breakeven Analysis
──────────────────────────────────
Put Breakeven: 95.5000
  Strike (100.00) - Premium (4.5000)
  Underlying must fall below 95.5000 to profit at expiration.
  Max loss (buyer): 4.5000 per share

Configuration

The data directory defaults to $HOME/.option-calculator/. It stores a history.log file that records each price command you run for later reference.

Override the directory by setting the OPTION_CALCULATOR_DIR environment variable before invoking the tool:

export OPTION_CALCULATOR_DIR="/tmp/my-options"

Data Storage

FilePurpose
$HOME/.option-calculator/history.logAppend-only log of pricing commands and results

The directory is created automatically on first run.

Requirements

  • bash 4.0+
  • python3 (standard library only — math module)
  • No third-party Python packages needed

When to Use

  • Pricing a European option before placing a trade
  • Checking how Greeks shift across different strikes or expirations
  • Backing out implied volatility from a quoted premium
  • Comparing strikes to decide which contract to buy/sell
  • Generating a quick option chain for scenario analysis
  • Calculating breakeven and P/L on existing positions

*Powered by BytesAgain | bytesagain.com | hello@bytesagain.com*

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

87.36%
按下载量换算5,689

安全审计

VirusTotal

可疑

ClawScan

通过

Static analysis

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills