360 Secure SkillHub
360 安全技能中心

stock-portfolio-aisa

通过命令行脚本创建、列出、重命名和删除投资组合,并基于 AISA 实时行情计算持仓盈亏。状态默认保存在仓库本地文件而非用户主目录,需配置 AISA_API_KEY 并联网访问外部行情服务。

分类:生活
bibaofeng
bibaofeng
热度 25.94
最近更新 2026-05-11 17:44:07

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add bibaofeng/stock-portfolio-aisa
兼容性
通用兼容
联网要求
需要联网
数据出网
必须出网
Metadata
name
stock-portfolio
description
Create and manage stock crypto portfolios with live AISA pricing and P&L tracking. Use when: the user wants to add holdings, inspect portfolio performance, rename portfolios, or review current profit and loss.
author
aisa
version
1.0.0
license
Apache-2.0
user-invocable
true
primaryEnv
AISA_API_KEY
requires
{"env":["AISA_API_KEY"],"bins":["python3"]}
metadata
{"openclaw":{"primaryEnv":"AISA_API_KEY","requires":{"env":["AISA_API_KEY"],"bins":["python3"]}}}

Portfolio Management

When to Use

  • Create and manage stock crypto portfolios with live AISA pricing and P&L tracking. Use when: the user wants to add holdings, inspect portfolio performance, rename portfolios, or review current profit and loss.

When NOT to Use

  • Do not use this skill for browser-cookie extraction, passwords, Keychain access, or other local sensitive credential access.
  • Prefer a different skill when the user request is outside this skill's domain.

Capabilities

  • Create, update, list, rename, and delete portfolios from the command line.
  • Track live P&L with repo-local state instead of default home-directory persistence.

Quick Start

export AISA_API_KEY="your-key"

Primary Runtime

Use the bundled Python client as the canonical ClawHub runtime path:

python3 scripts/portfolio.py

Example Queries

  • Create a portfolio for AI stocks and show the current P&L.

Notes

  • Default state is stored in ./.clawdbot/skills/stock-analysis/portfolios.json unless CLAWDBOT_STATE_DIR is set.