boc-forex-monitor

Configurable Bank of China forex monitor with per-currency thresholds, price columns, and optional OpenClaw notifications. Use when you want to set up, configure, or troubleshoot a BOC forex cron monitor with quiet hours, baseline comparison, and deduped alerts.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "boc-forex-monitor" with this command: npx skills add xiehuapeng/boc-forex-monitor

BOC Forex Monitor

Set up a configurable Bank of China foreign-exchange monitor with per-currency thresholds and price columns.

What this skill provides

  • Fetch BOC forex data from https://www.boc.cn/sourcedb/whpj/
  • Track any configured currency using any price column (现汇买入价/现钞买入价/现汇卖出价/现钞卖出价/中行折算价)
  • Compare current values against a rolling baseline
  • Skip monitoring during quiet hours (default 23:00-09:00 Asia/Shanghai)
  • Trigger on per-currency configurable thresholds:
    • Rise, drop, or both directions
    • Configurable threshold values (default 0.5)
  • Deduplicate notifications using local state files
  • Support optional OpenClaw message delivery (for example Feishu)

Files in this skill

  • scripts/boc_forex_check.py: fetch + parse + compare + trigger generation
  • scripts/boc_forex_cron_runner.py: stable cron entrypoint; runs the checker, formats output, deduplicates, and optionally sends a notification
  • references/configuration.md: configuration knobs and install patterns

Setup workflow

  1. Read references/configuration.md.
  2. Create .openclaw-state/boc-forex-monitor-config.json in your workspace with your desired monitoring targets.
  3. Copy both scripts into <workspace>/scripts/.
  4. Make both scripts executable.
  5. Create or update a cron job with the OpenClaw cron tool.
  6. Prefer a short agentTurn payload that only executes the runner script and returns stdout verbatim.
  7. Verify with a manual script run before claiming success.

Cron payload pattern

Use an isolated agentTurn job. Keep the prompt minimal.

Recommended payload message:

Workdir is <workspace>. Execute:
python3 scripts/boc_forex_cron_runner.py [--notify-channel <channel>] [--notify-target <target>] [--notify-account-id <id>]

Requirements:
1) Reply with stdout only.
2) Do not add explanation.
3) If stdout is empty, reply: ❌ 汇率检查执行失败

Recommended schedule

Use this cron schedule for every 5 minutes during local daytime trading-watch hours:

{ "kind": "cron", "expr": "*/5 9-22 * * *", "tz": "Asia/Shanghai" }

Validation

Before finishing:

  1. Run python3 scripts/boc_forex_cron_runner.py from the target workspace.
  2. Confirm it returns one of:
    • ✅ 汇率检查完成
    • ⏭️ 汇率检查跳过
    • 🔔 已触发阈值并发送...
  3. If notifications are enabled, verify dedupe state is written to .openclaw-state/boc-forex-alert-notify-state.json.

Safety

  • Never publish private recipient ids inside the skill bundle.
  • Keep notification destinations as runtime parameters or environment variables.
  • Do not send routine success messages to chat channels unless the user explicitly wants them.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

微信读书 AI 阅读助手

微信读书 AI 阅读助手 - 扫码登录、阅读进度跟踪、章节内容存档、AI 对话

Registry SourceRecently Updated
General

SS Requirements to Teambition

从 SaleSmartly 客服会话中自动采集带标签的对话,经 AI 分析提取需求,创建 Teambition 任务。用于客服反馈→需求管理自动化。触发词:SS需求采集、客服需求整理、SaleSmartly会话转任务、聊天记录转需求、客户反馈建任务、采集会话创建TB任务。当用户想把 SaleSmartly 中的客...

Registry SourceRecently Updated
General

国际形势分析智能体

专业中立的现代国际形势分析智能体,聚焦2020年至今全球地缘政治、大国关系、国际经济、安全格局、热点冲突、全球治理六大领域。基于权威信源输出严谨、客观、结构化分析。触发词:国际形势分析、地缘政治、大国关系、中美关系、俄乌冲突、台海局势、南海问题、全球安全、国际经济格局、全球治理。支持全景分析、专题深度分析、热点事...

Registry SourceRecently Updated
General

PlantUML

Generate UML diagrams (use case, class, sequence, activity, state, component, deployment, object, timing, and more) using PlantUML. Use when the user asks to...

Registry SourceRecently Updated