jpskill.com
💼 ビジネス コミュニティ

options-analysis

Analyzes financial options using quantitative models like Black-Scholes for pricing and risk evaluation.

⚡ おすすめ: コマンド1行でインストール(60秒)

下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。

🍎 Mac / 🐧 Linux
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o options-analysis.zip https://jpskill.com/download/22214.zip && unzip -o options-analysis.zip && rm options-analysis.zip
🪟 Windows (PowerShell)
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/22214.zip -OutFile "$d\options-analysis.zip"; Expand-Archive "$d\options-analysis.zip" -DestinationPath $d -Force; ri "$d\options-analysis.zip"

完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。

💾 手動でダウンロードしたい(コマンドが難しい人向け)
  1. 1. 下の青いボタンを押して options-analysis.zip をダウンロード
  2. 2. ZIPファイルをダブルクリックで解凍 → options-analysis フォルダができる
  3. 3. そのフォルダを C:\Users\あなたの名前\.claude\skills\(Win)または ~/.claude/skills/(Mac)へ移動
  4. 4. Claude Code を再起動

⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。

🎯 このSkillでできること

下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。

📦 インストール方法 (3ステップ)

  1. 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
  2. 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
  3. 3. 展開してできたフォルダを、ホームフォルダの .claude/skills/ に置く
    • · macOS / Linux: ~/.claude/skills/
    • · Windows: %USERPROFILE%\.claude\skills\

Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。

詳しい使い方ガイドを見る →
最終更新
2026-05-18
取得日時
2026-05-18
同梱ファイル
1

📖 Skill本文(日本語訳)

※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。

options-analysis

目的

このスキルは、Black-Scholesのような定量的モデルを使用して、金融オプションの価格設定とリスク評価を行います。株価、行使価格、満期までの期間、ボラティリティ、リスクフリーレートなどの入力を処理し、オプション価格とグリークス(例:デルタ、ガンマ)を出力します。

使用場面

このスキルは、ヨーロピアンコール/プットオプションの価格設定、ポートフォリオリスクの評価、戦略のバックテストなど、取引シナリオにおけるリアルタイムの金融分析に活用できます。市場データにアクセスでき、アルゴリズム取引やリスク管理ダッシュボードのように定量的な洞察が必要な場合にご利用ください。

主要な機能

  • Black-Scholesまたは二項モデルを使用してオプションの価格を算出します。
  • 感度分析のためにグリークス(例:デルタ、ガンマ、シータ、ベガ)を計算します。
  • インプライド・ボラティリティや行使確率などのリスク指標を評価します。
  • 1回の呼び出しで複数のオプションに対するバッチ処理をサポートします。
  • 株式や指数を含む様々な資産タイプを処理し、無効な入力に対してはエラー範囲を設けます。

使用パターン

このスキルは、CLIを介して迅速なテストのために呼び出すか、自動化されたワークフローのためにPythonコードに統合できます。常に株価やボラティリティなどの必須パラメーターを提供してください。CLIの長さ制限を避けるために、複雑な入力にはJSON設定ファイルを使用してください。API呼び出しの場合、最初に$OPTIONS_API_KEYを使用して認証ヘッダーを設定してください。使用パターンの例:ファイルからデータをロードし、分析を実行し、結果をデータフレームにパースしてさらに処理します。

一般的なコマンド/API

CLIコマンドclaw options-analysis [subcommand] [flags]を使用してください。APIの場合、https://api.openclaw.ai/financial/options/priceにPOSTリクエストを送信してください。

  • 価格設定コマンド: claw options-analysis price --model black-scholes --stock-price 100 --strike 105 --time 0.5 --volatility 0.2 --rate 0.05

    • 出力例:価格とグリークスを含むJSON、例:{"price": 5.23, "delta": 0.52}
  • リスク評価コマンド: claw options-analysis risk --model black-scholes --stock-price 100 --strike 105 --time 1 --volatility 0.3 --iterations 1000

    • フラグ:モンテカルロシミュレーション用の--iterations。省略された場合、デフォルトは100です。
  • 価格設定用APIエンドポイント: /api/options/priceにPOSTリクエストを送信(ボディに以下を含める):{"model": "black-scholes", "stock_price": 100, "strike": 105}

    • レスポンス例:JSONオブジェクト、例:{"call_price": 4.82, "put_price": 3.45}
  • コードスニペット (Python):

    import requests
    headers = {"Authorization": f"Bearer {os.environ['OPTIONS_API_KEY']}"}
    response = requests.post("https://api.openclaw.ai/financial/options/price", json={"model": "black-scholes", "stock_price": 100}, headers=headers)
    print(response.json()['price'])
  • 設定形式: 入力にはJSONファイルを使用します。例:

    {
      "model": "black-scholes",
      "params": {"stock_price": 100, "strike": 105, "time": 1}
    }

    CLI経由で渡す場合:claw options-analysis price --config path/to/config.json

統合に関する注意点

OpenClawワークフローでスキルをインポートするか、API経由で呼び出すことで統合します。認証には、実行前に$OPTIONS_API_KEYを環境変数として設定する必要があります。例えば、スクリプトではexport OPTIONS_API_KEY=your_api_key_hereとします。結果の後処理にはNumPyのような依存関係を処理してください。より大規模なアプリケーションで使用する場合は、呼び出しをtry-exceptブロックでラップし、APIレイテンシを減らすために繰り返しのクエリに対して結果をキャッシュしてください。

エラー処理

無効な入力(例:負のボラティリティ)などのエラーは、呼び出し前にパラメーターを検証することで確認してください。一般的なエラーには、フィールドの欠落によるHTTP 400や認証失敗による401があります。CLIでは、エラーはstderrメッセージとして返されます。例:「Error: Volatility must be positive.」コードでは、requests.exceptions.HTTPErrorのような例外をキャッチし、指数バックオフで再試行してください。常に「Invalid model: Use 'black-scholes' or 'binomial'.」のようなエラー詳細をログに記録してください。サンプルデータでテストして、正常な処理を保証してください。

具体的な使用例

  1. 例1:コールオプションの価格設定
    株のコールオプションの価格を計算するためにこれを使用します。
    claw options-analysis price --model black-scholes --stock-price 150 --strike 155 --time 0.25 --volatility 0.15 --rate 0.02
    これは価格(例:5.10)を出力し、取引決定のためのスクリプトにパイプできます。

  2. 例2:ポートフォリオのリスク評価
    複数のオプションのリスク評価には:
    portfolio.jsonという設定ファイルを以下のように作成します。

    {"options": [{"stock_price": 200, "strike": 205, "time": 0.5}, {"stock_price": 50, "strike": 55, "time": 1}]}

    実行:claw options-analysis risk --config portfolio.json --model black-scholes
    これは各オプションのグリークスを計算し、高リスクなポジションを特定するのに役立ちます。

グラフの関係

  • 関連:financial-cluster (親)、options-trading-skill (兄弟)、risk-assessment-skill (依存)
  • 接続:data-fetching-skill (市場データ入力用)、visualization-skill (出力グラフ化用)
📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開

options-analysis

Purpose

This skill analyzes financial options using quantitative models like Black-Scholes for pricing and risk evaluation. It processes inputs such as stock price, strike price, time to expiration, volatility, and risk-free rate to output option prices and Greeks (e.g., delta, gamma).

When to Use

Use this skill for real-time financial analysis in trading scenarios, such as pricing European call/put options, evaluating portfolio risks, or backtesting strategies. Apply it when you have access to market data and need quantitative insights, like in algorithmic trading or risk management dashboards.

Key Capabilities

  • Price options using Black-Scholes or binomial models.
  • Compute Greeks (e.g., delta, gamma, theta, vega) for sensitivity analysis.
  • Evaluate risk metrics like implied volatility and probability of exercise.
  • Support batch processing for multiple options in a single call.
  • Handle various asset types, including stocks and indices, with error bounds for invalid inputs.

Usage Patterns

Invoke this skill via CLI for quick tests or integrate it into Python code for automated workflows. Always provide required parameters like stock price and volatility. Use JSON config files for complex inputs to avoid CLI length limits. For API calls, set the authentication header first using $OPTIONS_API_KEY. Example pattern: Load data from a file, run analysis, and parse results into a dataframe for further processing.

Common Commands/API

Use the CLI command claw options-analysis [subcommand] [flags]. For API, send POST requests to https://api.openclaw.ai/financial/options/price.

  • Pricing Command: claw options-analysis price --model black-scholes --stock-price 100 --strike 105 --time 0.5 --volatility 0.2 --rate 0.05

    • Outputs: JSON with price and Greeks, e.g., {"price": 5.23, "delta": 0.52}
  • Risk Evaluation Command: claw options-analysis risk --model black-scholes --stock-price 100 --strike 105 --time 1 --volatility 0.3 --iterations 1000

    • Flags: --iterations for Monte Carlo simulations; defaults to 100 if omitted.
  • API Endpoint for Pricing: POST to /api/options/price with body: {"model": "black-scholes", "stock_price": 100, "strike": 105}

    • Response: JSON object, e.g., {"call_price": 4.82, "put_price": 3.45}
  • Code Snippet (Python):

    import requests
    headers = {"Authorization": f"Bearer {os.environ['OPTIONS_API_KEY']}"}
    response = requests.post("https://api.openclaw.ai/financial/options/price", json={"model": "black-scholes", "stock_price": 100}, headers=headers)
    print(response.json()['price'])
  • Config Format: Use JSON files for inputs, e.g.,

    {
      "model": "black-scholes",
      "params": {"stock_price": 100, "strike": 105, "time": 1}
    }

    Pass via CLI: claw options-analysis price --config path/to/config.json

Integration Notes

Integrate by importing the skill in OpenClaw workflows or calling via API. Authentication requires setting $OPTIONS_API_KEY as an environment variable before execution. For example, in a script: export OPTIONS_API_KEY=your_api_key_here. Handle dependencies like NumPy for post-processing results. If using in a larger application, wrap calls in try-except blocks and cache results for repeated queries to reduce API latency.

Error Handling

Check for errors like invalid inputs (e.g., negative volatility) by validating parameters before calling. Common errors include HTTP 400 for missing fields or 401 for auth failures. In CLI, errors return as stderr messages, e.g., "Error: Volatility must be positive." In code, catch exceptions like requests.exceptions.HTTPError and retry with exponential backoff. Always log error details, such as "Invalid model: Use 'black-scholes' or 'binomial'." Test with sample data to ensure graceful handling.

Concrete Usage Examples

  1. Example 1: Price a Call Option
    Use this to calculate the price of a call option on a stock:
    claw options-analysis price --model black-scholes --stock-price 150 --strike 155 --time 0.25 --volatility 0.15 --rate 0.02
    This outputs the price (e.g., 5.10) and can be piped to a script for trading decisions.

  2. Example 2: Evaluate Risk for a Portfolio
    For risk assessment on multiple options:
    Create a config file portfolio.json with:

    {"options": [{"stock_price": 200, "strike": 205, "time": 0.5}, {"stock_price": 50, "strike": 55, "time": 1}]}

    Run: claw options-analysis risk --config portfolio.json --model black-scholes
    This computes Greeks for each, helping identify high-risk positions.

Graph Relationships

  • Related to: financial-cluster (parent), options-trading-skill (sibling), risk-assessment-skill (dependent)
  • Connects to: data-fetching-skill (for market data input), visualization-skill (for output graphing)