Install
openclaw skills install crypto-alert-agentA proactive agent that monitors cryptocurrency prices, tracks your portfolio, and sends alerts via Telegram.
openclaw skills install crypto-alert-agentStay 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.
Before using the agent, you need to configure your Telegram notifications.
Get your Telegram Chat ID:
@userinfobot on Telegram.Set up Credentials:
telegram_chat_id inside the {baseDir}/credentials/ directory.The agent can be managed through a simple command-line interface. All commands are executed via the run.sh script.
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 <id>: The CoinGecko API ID for the cryptocurrency (e.g., bitcoin, ethereum, solana).--condition <above|below>: Notify when the price is above or below the target.--price <usd_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
View all the price alerts you have currently set.
bash {baseDir}/run.sh alert list
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>
Add a coin and the amount you hold to your portfolio.
Command:
bash {baseDir}/run.sh portfolio add --coin <id> --amount <quantity>
--coin <id>: The CoinGecko API ID of the coin.--amount <quantity>: The number of coins you hold.Example:
bash {baseDir}/run.sh portfolio add --coin ethereum --amount 2.5
Get a summary of your current holdings and their total value in USD.
bash {baseDir}/run.sh portfolio view
Remove a coin from your portfolio using its ID.
bash {baseDir}/run.sh portfolio remove --id <holding_id>
Get the current price of one or more cryptocurrencies instantly.
Command:
bash {baseDir}/run.sh price --coins <id1,id2,...>
--coins <id1,id2,...>: A comma-separated list of CoinGecko API IDs.Example:
bash {baseDir}/run.sh price --coins bitcoin,ethereum,solana
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: