← 返回
数据分析 Key 中文

Crypto Alert Agent

A proactive agent that monitors cryptocurrency prices, tracks your portfolio, and sends alerts via Telegram.
一个主动监控加密货币价格、追踪投资组合并通过Telegram发送提醒的代理。
vitja1988
数据分析 clawhub v1.0.0 1 版本 100000 Key: 需要
★ 0
Stars
📥 594
下载
💾 16
安装
1
版本
#bitcoin#crypto#ethereum#latest#price-alerts#telegram#tracking

概述

📈 Crypto Alert Agent

Stay ahead of the market with the Crypto Alert Agent. This skill provides real-time price alerts, portfolio tracking, and instant notifications through Telegram, ensuring you never miss a critical market movement.

Supported cryptocurrencies include BTC, ETH, SOL, and many more via the CoinGecko API.


1. Features

  • Price Alerts: Set custom price thresholds for any supported cryptocurrency. Get notified when the price goes above or below your target.
  • Portfolio Tracking: Add your crypto holdings to track their total value in real-time.
  • Telegram Notifications: Receive all alerts and updates directly in your Telegram chat for immediate action.
  • On-Demand Price Checks: Instantly fetch the current price of any cryptocurrency.

2. Setup

Before using the agent, you need to configure your Telegram notifications.

  1. Get your Telegram Chat ID:
    • Talk to the @userinfobot on Telegram.
    • It will give you your unique Chat ID.
  1. Set up Credentials:
    • Create a file named telegram_chat_id inside the {baseDir}/credentials/ directory.
    • Paste your Chat ID into this file.
    • Ensure your OpenClaw instance is configured with a Telegram bot token that has permission to send you messages.

3. Usage

The agent can be managed through a simple command-line interface. All commands are executed via the run.sh script.

3.1 Price Alerts

Add a Price Alert

Set an alert for a specific coin when it crosses a target price.

Command:

bash {baseDir}/run.sh alert add --coin <id> --condition <above|below> --price <usd_price>
  • --coin : The CoinGecko API ID for the cryptocurrency (e.g., bitcoin, ethereum, solana).
  • --condition : Notify when the price is above or below the target.
  • --price : The target price in USD.

Example:

# Alert me when Bitcoin goes above $75,000
bash {baseDir}/run.sh alert add --coin bitcoin --condition above --price 75000

# Alert me when Solana drops below $150
bash {baseDir}/run.sh alert add --coin solana --condition below --price 150

List Active Alerts

View all the price alerts you have currently set.

bash {baseDir}/run.sh alert list

Remove a Price Alert

Delete an active alert using its ID (you can get the ID from the list command).

bash {baseDir}/run.sh alert remove --id <alert_id>

3.2 Portfolio Tracking

Add a Holding to Your Portfolio

Add a coin and the amount you hold to your portfolio.

Command:

bash {baseDir}/run.sh portfolio add --coin <id> --amount <quantity>
  • --coin : The CoinGecko API ID of the coin.
  • --amount : The number of coins you hold.

Example:

bash {baseDir}/run.sh portfolio add --coin ethereum --amount 2.5

View Your Portfolio

Get a summary of your current holdings and their total value in USD.

bash {baseDir}/run.sh portfolio view

Remove a Holding from Your Portfolio

Remove a coin from your portfolio using its ID.

bash {baseDir}/run.sh portfolio remove --id <holding_id>

3.3 Check Price

Get the current price of one or more cryptocurrencies instantly.

Command:

bash {baseDir}/run.sh price --coins <id1,id2,...>
  • --coins : A comma-separated list of CoinGecko API IDs.

Example:

bash {baseDir}/run.sh price --coins bitcoin,ethereum,solana

4. Automation (Agent Logic)

This skill is designed to be run on a schedule (e.g., via a cron job or a persistent agent loop) to check for alert conditions.

Recommended Automation Schedule: Every 5 minutes.

Example Cron Job:

*/5 * * * * /path/to/your/workspace/skills/crypto-alert-agent/run.sh agent run

The agent run command will:

  1. Fetch the latest prices for all coins in active alerts and the portfolio.
  2. Check if any price alert conditions have been met.
  3. If an alert is triggered, send a notification to the configured Telegram chat ID and remove the alert to avoid spam.
  4. (Optional) Send a periodic portfolio value update.

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-30 01:28 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

data-analysis

A股量化 AkShare

mbpz
A股量化数据分析工具,基于AkShare库获取A股行情、财务数据、板块信息等。用于回答关于A股股票查询、行情数据、财务分析、选股等问题。
★ 165 📥 60,022
data-analysis

Excel / XLSX

ivangdavila
创建、检查和编辑 Microsoft Excel 工作簿及 XLSX 文件,支持可靠的公式、日期、类型、格式、重算及模板保留功能。
★ 368 📥 140,470
content-creation

Social Media Suite

vitja1988
{"answer":"自动化发布Instagram和YouTube社交媒体内容。定时自动发布图片、视频。社交媒体自动化工具。"}
★ 0 📥 945