Xpersona
S

Stock Monitor - 股票监控

CLAWHUB · Unverified

对持仓做一次性检查:盈亏、涨跌、缺口、均线与 RSI 等(无常驻进程,可配阈值与状态文件)。当用户说:帮我检查一下持仓要不要告警?我的 ETF 今天触发止损了吗?或类似持仓体检问题时,使用本技能。 Skill: Stock Monitor - 股票监控 Owner: jisuapi Summary: 对持仓做一次性检查:盈亏、涨跌、缺口、均线与 RSI 等(无常驻进程,可配阈值与状态文件)。当用户说:帮我检查一下持仓要不要告警?我的 ETF 今天触发止损了吗?或类似持仓体检问题时,使用本技能。 Tags: latest:1.0.4 Version history: v1.0.4 | 2026-04-03T09:05:39.045Z | user - 精简并优化了描述和使用场景,突出一次性检查、主要监控指标,以及用户可以直接用于持仓体检、止盈止损类场景。 - 标题 name/description 更加突出技能核心功能,便于用户检索和理解。 - 移除过多背景介绍,将说明聚焦于参数、使用方法及常见用法,便于快速上手。 - 保留主要监控维度、字段和参数表,保证兼容原有功能,说明方式更简练。 - 推荐用法与提示词等部分做了摘要和归

62
Rank
84
Safety
1.2k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.2K downloads reported by the source. Last updated 10/11/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s174fh1b14sn7vkvbqwsdn0xtd83gz5h:jisu-stock-monitor
  1. Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-jisuapi-jisu-stock-monitor/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

44,543 characters of source documentation, loaded on request.

Extracted files

4 files captured from the source.

SKILL.md

---
name: "Stock Monitor - 股票监控"
description: 对持仓做一次性检查:盈亏、涨跌、缺口、均线与 RSI 等(无常驻进程,可配阈值与状态文件)。当用户说:帮我检查一下持仓要不要告警?我的 ETF 今天触发止损了吗?或类似持仓体检问题时,使用本技能。
metadata: { "openclaw": { "emoji": "🛎️", "requires": { "bins": ["python3"], "env": ["JISU_API_KEY", "JISU_STOCK_MONITOR_STATE"] }, "primaryEnv": "JISU_API_KEY" } }
---

# 极速数据持仓监控(jisu-stock-monitor)

基于 [股票查询 API](https://www.jisuapi.com/api/stock/) 与 [股票历史行情 API](https://www.jisuapi.com/api/stockhistory/),对本地 JSON 配置的持仓列表执行 **`check`**,输出 JSON 结果与触发说明。

**免责声明:仅供技术学习与信息整理,不构成投资建议;行情与指标可能存在延迟或误差,请自行核实。**


```bash
# Linux / macOS
export JISU_API_KEY="your_appkey_here"
# 可选:默认状态文件路径(当请求体未写 state_file 时)
export JISU_STOCK_MONITOR_STATE="/path/to/jisu-stock-monitor.state.json"

# Windows PowerShell
$env:JISU_API_KEY="your_appkey_here"
# 可选:默认状态文件(当请求体未写 state_file 时)
$env:JISU_STOCK_MONITOR_STATE="C:\path\to\jisu-stock-monitor.state.json"
```

依赖:`pip install requests`。Windows 下若无 `python3` 命令,可改用 `py -3` 或 `python`。

## 脚本路径

文档与示例统一写作 **`skills/jisu-stock-monitor/monitor.py`**。若你克隆的仓库目录实际是 **`skill/`**,请把命令里的 `skills/` 换成 **`skill/`**。

## 使用方式

### check(持仓检查)

```bash
python3 skills/jisu-stock-monitor/monitor.py check @skills/jisu-stock-monitor/config.example.json
```

也可传入内联 JSON,或从标准输入:

```bash
python3 skills/jisu-stock-monitor/monitor.py check '{"holdings":[{"code":"300917","cost":10,"alerts":{}}]}'
echo '{"holdings":[...]}' | python3 skills/jisu-stock-monitor/monitor.py check -
```

### 请求体字段(根级)

| 字段 | 类型 | 说明 |
|------|------|------|
| holdings | array | **必填**,每项见下表 |
| history_days | int | 可选,拉取历史 K 线的日历跨度(30–365),默认 90 |
| state_file | string / null | 状态文件路径(跨日止盈峰值、告警冷却)。`null`/`false`/空字符串 表示禁用 |
| alert_cooldown_minutes | int | 可选,同一标的同一 `rule` 在多少分钟内只报一次(0 表示关闭)。>0 且未配置 `state_file` 且未设环境变量时,会默认使用当前目录下 `jisu-stock-monitor.state.json` |

单只持仓 `holdings[]`:

| 字段 | 类型 | 说明 |
|------|------|------|
| code | string | 股票代码,必填 |
| name | string | 可选,缺省用接口返回名称 |
| cost | number | 可选,成本价;用于成本盈亏% 与动态止盈 |
| type | string | 可选,影响**默认**日内涨跌幅阈值:`individual` 个股 ±4%(默认)、`etf` ±2%、`gold` / `au` / `commodity` ±2.5% |
| state_key | string | 可选,状态文件里跟踪峰值/冷却的主键,默认等于 `code`(同一账户多策略时可区分) |
| alerts | object | 可选,规则见下 |

`alerts` 中可选规则(未配置则跳过对应检查;**日内涨跌幅**在未显式关闭时使用上表 `type` 对应默认阈值):

| 键 | 说明 |
|----|------|
| cost_pct_above / cost_pct_below | 相对成本盈利/亏损达到阈值(%)时告警,如 +15 / -12 |
| change_pct_above / change_pct_below | 日内涨跌幅阈值(%);若设为 JSON `false` 可关闭该侧默认阈值 |
| ma_monitor | `true` 时根据日线收盘计算 MA5/MA10,检测上一交易日相对再前一日的金叉/死叉 |
| volume_surge | 放量:例如 `2` 表示最后一根日线成交量 ≥ 近 5 日均量 × 2 |
| volume_shrink | 缩量:例如 `0.5` 表示最后一根日线成交量 ≤ 近 5 日均量 × 0.5 |
| gap_monitor | `true` 时用 `stock/detail` 的今开、昨收计算**开盘跳空%** |
| gap_up_pct / gap_down_pct | 可选,向上/向下开盘跳空阈值(%),默认分别为 `1` 与 `-1` |
| gap_true_monitor | `true` 时用日线**昨日高/低**与**当日 detail 高/低**判断**真缺口**(今日低 > 昨日高 / 今日高 < 昨日低) |
| gap_true_min_pct | 可选,缺口体幅度(占昨高或昨低的%)下限,过滤微小缺口;不设则只要满足真缺口形态即告警 |
| dynamic_trailing 

_meta.json

{
  "ownerId": "kn7ex9mabfb47dvpgkmeypwqj9825yyz",
  "slug": "jisu-stock-monitor",
  "version": "1.0.4",
  "publishedAt": 1775207139045
}

skill-card.md

## Description:

Checks stock holdings once for profit and loss, intraday moves, gaps, moving averages, RSI, trailing take-profit signals, and alert cooldowns using JisuAPI market data.

This skill is ready for commercial/non-commercial use.

## Publisher:

[jisuapi](https://clawhub.ai/user/jisuapi)

### License/Terms of Use:

MIT-0

## Use Case:

External users and developers use this skill to run a one-time health check on configured stock holdings and summarize triggered alert rules. It helps report market-data indicators and configured threshold events without presenting the result as investment advice.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: The skill requires a JisuAPI key and sends stock codes to JisuAPI.

Mitigation: Use a dedicated API key and install the skill only when sharing those stock codes with JisuAPI is acceptable.

Risk: The optional state file can overwrite any writable path supplied in the config.

Mitigation: Use only trusted configs and set `state_file` to a dedicated state path.

Risk: Configs and state files may contain local holding and cost data.

Mitigation: Keep local config and state files out of public repositories and avoid running configs from others.

Risk: The skill depends on local Python package installation.

Mitigation: Install dependencies in a virtual environment with pinned versions.

## Reference(s):

- [ClawHub Skill Page](https://clawhub.ai/jisuapi/skills/jisu-stock-monitor)
- [JisuAPI Stock Query API](https://www.jisuapi.com/api/stock/)
- [JisuAPI Stock History API](https://www.jisuapi.com/api/stockhistory/)
- [JisuAPI Website](https://www.jisuapi.com/)

## Skill Output:

**Output Type(s):** [JSON, Text, Shell commands, Configuration, Guidance]

**Output Format:** [JSON results with optional Markdown summaries, shell commands, and configuration snippets]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [Requires a JISU_API_KEY environment variable and may read or write a configured local state file.]

## Skill Version(s):

1.0.4 (source: server release metadata)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

config.example.json

{
  "history_days": 90,
  "state_file": "jisu-stock-monitor.state.json",
  "alert_cooldown_minutes": 240,
  "holdings": [
    {
      "code": "300917",
      "name": "示例股",
      "cost": 47.6,
      "type": "individual",
      "alerts": {
        "cost_pct_above": 15,
        "cost_pct_below": -12,
        "change_pct_above": 4,
        "change_pct_below": -4,
        "gap_monitor": true,
        "gap_true_monitor": true,
        "gap_true_min_pct": 0.3,
        "dynamic_trailing": {
          "persist": true,
          "min_peak_profit_pct": 10,
          "drawdown_warn_pct": 5,
          "drawdown_urgent_pct": 10
        },
        "ma_monitor": true,
        "volume_surge": 2.0,
        "volume_shrink": 0.5,
        "rsi_monitor": true,
        "rsi_overbought": 70,
        "rsi_oversold": 30
      }
    },
    {
      "code": "510300",
      "cost": 4.2,
      "type": "etf",
      "alerts": {
        "change_pct_above": 2,
        "change_pct_below": -2
      }
    },
    {
      "code": "518880",
      "name": "黄金 ETF 示例",
      "type": "gold",
      "alerts": {
        "change_pct_above": 2.5,
        "change_pct_below": -2.5
      }
    }
  ]
}

Sponsored

Ads related to Stock Monitor - 股票监控 and adjacent AI workflows.