Token导航 LogoToken导航TokenDH.com
开发敏感数据github未标认证来源可访问许可证需确认审计通过

options-analysis选项分析

Agent Skill

options-analysis 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

1

周安装

17

GitHub Stars

4

下载量

140
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

请帮我安装这个 Agent Skill:options-analysis(选项分析)
来源仓库:https://github.com/alphaonedev/openclaw-graph
仓库路径:skills/options-analysis
安装命令:
npx skills add https://github.com/alphaonedev/openclaw-graph --skill options-analysis
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/alphaonedev/openclaw-graph --skill options-analysis

简介

开发期权定价与希腊值计算引擎及相关可视化界面。

  • 支持 Black-Scholes、蒙特卡洛等多种模型快速切换验证。
  • 内置参数敏感性测试与压力情景模拟功能模块。
  • 部署前需隔离金融计算逻辑,避免在生产环境直接运行高风险运算。
  • options-analysis 属于开发类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

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)

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

34.5%
按下载量换算48

Claude

30.8%
按下载量换算43

Cursor

19.79%
按下载量换算28

Gemini CLI

9.94%
按下载量换算14

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

敏感数据

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

安装前确认

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

来源信息

继续浏览同类 Skills