> ## Documentation Index
> Fetch the complete documentation index at: https://aisa.one/docs/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> - Base URLs: models `https://api.aisa.one/v1` (Gemini GenerateContent: `https://api.aisa.one/v1beta`); data APIs `https://api.aisa.one/apis/v1`. The `servers` of each operation in https://aisa.one/openapi.yaml is authoritative.
> - Auth: `Authorization: Bearer $AISA_API_KEY`. Never print, log, or commit the key.
> - MCP (preferred for agents): `https://mcp.aisa.one/mcp`, signed in with OAuth, so there is no key to paste.
> - Agent Skill: `npx skills add AIsa-team/agent-skills --skill aisa`. Fallback with the AIsa CLI: `aisa skills install aisa`.
> - Spending: docs, https://aisa.one/models, https://aisa.one/api, `/v1/models`, and MCP `search`, `list_categories`, `get_details`, `batch_quote`, and the `account` operation are free. Quote the exact calls before running them (MCP `batch_quote`, CLI `aisa quote --json`). If the quote reports `auto_execute_eligible: true`, run it unless the user set a tighter limit or asked only for a quote. Otherwise, tell the user in one message the planned calls, the quoted price, and a total USD budget for the task, then wait for approval. Direct HTTP calls follow the stricter rule at https://aisa.one/docs/get-started/cli.md#direct-http-fallback. Do not make paid calls to test availability. Full rule: https://aisa.one/llms.txt

# 自选列表管理

> 用目标位、止损位和提醒检查管理 ticker 自选列表。

[在 GitHub 上查看 ->](https://github.com/AIsa-team/agent-skills/tree/main/financial/stock-watchlist)

**带实时提醒检查的自选列表。** 使用 AIsa 市场数据，按目标位、止损位和信号变化跟踪 ticker。

## 安装

如果还没有安装 AIsa CLI，请先安装：

```bash theme={null}
npm install -g @aisa-one/cli
```

然后安装该技能：

```bash theme={null}
aisa skills install stock-watchlist
```

## 智能体可以用它做什么？

> [card] 自选列表跟踪
>
> 维护 symbol、投资逻辑备注和后续操作。

> [card] 目标位检查
>
> 检查价格是否到达目标水平。

> [card] 止损监控
>
> 标记需要关注的下行价位。

> [card] 提醒摘要
>
> 总结自选列表变化，便于复核。

## 用法

```bash theme={null}
# 添加带目标价和止损价的 ticker
python3 "${CLAUDE_PLUGIN_ROOT}/skills/stock-watchlist/scripts/watchlist.py" add AAPL --target 220 --stop 160

# 添加信号变化提醒
python3 "${CLAUDE_PLUGIN_ROOT}/skills/stock-watchlist/scripts/watchlist.py" add AAPL --alert-on signal

# 列出所有自选项
python3 "${CLAUDE_PLUGIN_ROOT}/skills/stock-watchlist/scripts/watchlist.py" list

# 检查实时价格并触发提醒
python3 "${CLAUDE_PLUGIN_ROOT}/skills/stock-watchlist/scripts/watchlist.py" check

# 检查并发送通知
python3 "${CLAUDE_PLUGIN_ROOT}/skills/stock-watchlist/scripts/watchlist.py" check --notify

# 删除 ticker
python3 "${CLAUDE_PLUGIN_ROOT}/skills/stock-watchlist/scripts/watchlist.py" remove AAPL
```

### 操作

| 操作 | 说明 |
| - | - |
| `add TICKER` | 添加 ticker，可选 `--target`、`--stop`、`--alert-on signal` |
| `remove TICKER` | 从自选列表删除 ticker |
| `list` | 显示所有自选项 |
| `check` | 获取实时价格并检查提醒 |

## 数据存储

自选列表数据存储在 `${CLAUDE_PLUGIN_DATA}/watchlist.json`，可跨会话持久化。

**非投资建议。** 仅供参考。

## 开始使用

1. 在 [aisa.one](https://aisa.one) 注册（新账户有 \$1 免费额度）。
2. 从控制台生成 API key。
3. 设置 key 并安装技能：
   ```bash theme={null}
   export AISA_API_KEY="your-key"
   npm install -g @aisa-one/cli
   aisa skills install stock-watchlist
   ```
4. 启动新的智能体会话，让运行时加载更新后的技能说明。

## 相关

> [card] [股票与加密资产分析](https://aisa.one/docs/zh/agent-skills/stock-analysis.md)
>
> 添加前先分析资产。

> [card] [投资组合管理](https://aisa.one/docs/zh/agent-skills/stock-portfolio.md)
>
> 复核持仓和配置。

> [card] [热点扫描器](https://aisa.one/docs/zh/agent-skills/stock-hot.md)
>
> 发现新的自选候选。


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.