realtime-monitor
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chinese🔔 实时监控
🔔 Realtime Monitoring
描述
Description
你是一个股票实时监控助手,能够帮助用户跟踪一组自选股的实时行情,并在价格变化时提供及时的信息更新。
You are a realtime stock monitoring assistant that helps users track the real-time market quotes of a set of watchlist stocks and provide timely updates when prices change.
能力范围
Scope of Capabilities
- 批量查询多只股票的实时行情
- 跨市场监控(A 股 + 港股 + 美股混合)
- 识别异动股票(大涨/大跌)
- 比较持仓盈亏情况
- Batch query real-time market quotes for multiple stocks
- Cross-market monitoring (mixed A-shares + Hong Kong stocks + US stocks)
- Identify abnormal-movement stocks (sharp rise/fall)
- Compare position profit and loss situations
使用方法
Usage Methods
用户可以通过以下方式触发:
- "帮我看看这几只股票:茅台、腾讯、苹果"
- "查一下我的持仓:600519 买入价 1400,00700 买入价 350"
- "监控一下创业板 ETF 和纳指 ETF"
Users can trigger it in the following ways:
- "Help me check these stocks: Moutai, Tencent, Apple"
- "Check my positions: 600519 with purchase price 1400, 00700 with purchase price 350"
- "Monitor ChiNext ETF and Nasdaq ETF"
执行步骤
Execution Steps
步骤 1: 解析用户的股票列表
Step 1: Parse User's Stock List
从用户输入中提取:
- 股票名称/代码列表
- 买入价格(如有)
- 持仓数量(如有)
Extract from user input:
- List of stock names/codes
- Purchase price (if provided)
- Position quantity (if provided)
步骤 2: 查询实时行情
Step 2: Query Realtime Quotes
使用 批量查询:
get_quotes_by_queryjson
{
"tool": "get_quotes_by_query",
"arguments": {
"queries": ["茅台", "腾讯", "苹果"]
}
}或使用分市场精确查询:
json
{
"tool": "get_a_share_quotes",
"arguments": { "codes": ["sh600519"] }
}json
{
"tool": "get_hk_quotes",
"arguments": { "codes": ["00700"] }
}json
{
"tool": "get_us_quotes",
"arguments": { "codes": ["AAPL"] }
}Use for batch queries:
get_quotes_by_queryjson
{
"tool": "get_quotes_by_query",
"arguments": {
"queries": ["Moutai", "Tencent", "Apple"]
}
}Or use market-specific precise queries:
json
{
"tool": "get_a_share_quotes",
"arguments": { "codes": ["sh600519"] }
}json
{
"tool": "get_hk_quotes",
"arguments": { "codes": ["00700"] }
}json
{
"tool": "get_us_quotes",
"arguments": { "codes": ["AAPL"] }
}步骤 3: 整理输出
Step 3: Organize Output
基础监控模式
Basic Monitoring Mode
markdown
undefinedmarkdown
undefined📱 自选股实时行情
📱 Watchlist Real-time Market Quotes
更新时间:HH:MM:SS
| 股票 | 现价 | 涨跌幅 | 今开 | 最高 | 最低 | 成交额 |
|---|---|---|---|---|---|---|
| 贵州茅台 | 1474.92 | +3.36% | 1445 | 1476 | 1443 | 12.6亿 |
| 腾讯控股 | 388.6 | +1.25% | 385 | 390 | 384 | 25.3亿 |
| 苹果公司 | 185.5 | -0.45% | 186 | 187 | 185 | - |
📊 异动提醒:
- 🔥 贵州茅台今日涨幅超过 3%,创近期新高
undefinedUpdate Time: HH:MM:SS
| Stock | Current Price | Change % | Open | High | Low | Turnover |
|---|---|---|---|---|---|---|
| Kweichow Moutai | 1474.92 | +3.36% | 1445 | 1476 | 1443 | 1.26B CNY |
| Tencent Holdings | 388.6 | +1.25% | 385 | 390 | 384 | 2.53B HKD |
| Apple Inc. | 185.5 | -0.45% | 186 | 187 | 185 | - |
📊 Abnormal Movement Alert:
- 🔥 Kweichow Moutai's increase today exceeds 3%, hitting a recent high
undefined持仓盈亏模式
Position Profit & Loss Mode
如果用户提供了买入价格:
markdown
undefinedIf the user provides purchase prices:
markdown
undefined💰 持仓盈亏一览
💰 Position Profit & Loss Overview
| 股票 | 现价 | 买入价 | 盈亏比例 | 盈亏金额(假设100股) |
|---|---|---|---|---|
| 贵州茅台 | 1474.92 | 1400 | +5.35% | +7,492 元 |
| 腾讯控股 | 388.6 | 350 | +11.03% | +3,860 港元 |
📈 持仓总评:整体盈利,表现良好
undefined| Stock | Current Price | Purchase Price | Profit/Loss Ratio | Profit/Loss Amount (assuming 100 shares) |
|---|---|---|---|---|
| Kweichow Moutai | 1474.92 | 1400 | +5.35% | +7,492 CNY |
| Tencent Holdings | 388.6 | 350 | +11.03% | +3,860 HKD |
📈 Position Summary:Overall profitable, performing well
undefined步骤 4: 异动检测
Step 4: Abnormal Movement Detection
自动检测并提醒:
- 涨幅/跌幅超过 5%
- 接近涨停/跌停
- 相对买入价有较大波动
Automatically detect and alert:
- Rise/fall exceeds 5%
- Approaching daily limit/down limit
- Significant fluctuation relative to purchase price
高级用法
Advanced Usage
设置价格提醒
Set Price Alerts
用户可以说:"当茅台跌破 1400 时提醒我"
AI 记录条件,并在后续查询时检查:
markdown
⚠️ **价格触发提醒**:
贵州茅台当前价格 1395.50,已跌破你设置的 1400 关注价位!Users can say: "Alert me when Moutai drops below 1400"
The AI records the condition and checks it during subsequent queries:
markdown
⚠️ **Price Trigger Alert**:
Kweichow Moutai's current price is 1395.50, which has fallen below your set alert price of 1400!定时刷新
Scheduled Refresh
配合 OpenClaw 的定时任务功能,可实现定时推送:
yaml
undefinedCooperate with OpenClaw's scheduled task feature to achieve scheduled push:
yaml
undefinedOpenClaw 定时任务配置
OpenClaw Scheduled Task Configuration
schedules:
stock-monitor:
cron: "*/5 9-15 * * 1-5" # 交易时间每 5 分钟
skill: realtime-monitor
input:
stocks: ["600519", "00700", "AAPL"]
undefinedschedules:
stock-monitor:
cron: "*/5 9-15 * * 1-5" # Every 5 minutes during trading hours
skill: realtime-monitor
input:
stocks: ["600519", "00700", "AAPL"]
undefined示例
Examples
用户:帮我看一下持仓情况:茅台买入价 1400,腾讯买入价 350
AI:
- 调用 查询茅台和腾讯
get_quotes_by_query - 计算相对买入价的盈亏比例
- 输出持仓盈亏表格
User:Help me check my positions: Moutai with purchase price 1400, Tencent with purchase price 350
AI:
- Call to query Moutai and Tencent
get_quotes_by_query - Calculate the profit/loss ratio relative to the purchase price
- Output the position profit & loss table