360 Secure SkillHub
360 安全技能中心

stock-portfolio-aisa-api

核心功能:支持创建、更新、列表、重命名及删除股票加密货币组合,结合AISA实时定价追踪盈亏,状态存储路径可配置。典型场景:用户需添加持仓、查看组合业绩、重命名组合或查看当前盈亏时使用。需配置AISA_API_KEY,通过Python脚本在命令行操作,默认状态存于指定本地文件,不适用于敏感凭证提取等非组合管理需求。

aisadocs
aisadocs
热度 37.15
最近更新 2026-05-11 17:44:14
分类:数据依赖:代码执行 / 第三方 API / 读写文件应用场景:财务 / 数据处理 / 报告撰写

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add stock-portfolio-aisa-api
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.