@adekoreday/crypto-dip-alert 中文文档教程
NodeJS Crypto Dip Alert
一个 CLI 工具,用于监控加密货币的价格,并在价格下跌超过您指定的阈值时通知您。
Installation and Usage
- Make sure you have NodeJS installed.
- Run
npm i -g crypto-dip-alert
oryarn global add crypto-dip-alert
to install to your computer. - Run
crypto-dip-alert -e
orcrypto-dip-alert --env
to view and edit the.env
file according to the instructions given here. - Run
crypto-dip-alert
with the right options.
CLI Options
此 CLI 工具具有以下概要:
Usage: crypto-dip-alert [options]
Options:
-c, --coins <coins> A comma-separated list of coins to track (default: ["BTC","ETH"])
-p, --price <price> A price value to monitor (default: "0.01")
-t, --type <type> "percent" or "cents" (default: "percent")
-l, --list List available Cryptos
-e, --env View and Edit the .env file
-h, --help display help for command
示例 1.
crypto-dip-alert -c ETH,BTC,USDC,EOS
跟踪 ETH
、BTC
、USDC
和 EOS
币。
示例 2.
crypto-dip-alert -c ETH -p 10 -t percent
跟踪 ETH
价格下跌 10%。
示例 3.
crypto-dip-alert -l
列出您可以跟踪的可用加密货币的所有符号。
示例 4.
crypto-dip-alert -e
打开/编辑 .env
文件。
Notifications
编写此脚本是为了使通知系统可配置。
默认情况下,它带有以下通知:
- Console (Terminal Output)
- Mailgun (Uses the Mailgun service to send emails)
- SMTP (Uses SMTP to send emails)
- Telegram (Uses Telegram chat)
有关更多信息,请参见Env Setup。
NodeJS Crypto Dip Alert
A CLI tool to monitor the prices of crypto, and notify you when it drops past a threshold you specify.
Installation and Usage
- Make sure you have NodeJS installed.
- Run
npm i -g crypto-dip-alert
oryarn global add crypto-dip-alert
to install to your computer. - Run
crypto-dip-alert -e
orcrypto-dip-alert --env
to view and edit the.env
file according to the instructions given here. - Run
crypto-dip-alert
with the right options.
CLI Options
This CLI tool has the following synopsis:
Usage: crypto-dip-alert [options]
Options:
-c, --coins <coins> A comma-separated list of coins to track (default: ["BTC","ETH"])
-p, --price <price> A price value to monitor (default: "0.01")
-t, --type <type> "percent" or "cents" (default: "percent")
-l, --list List available Cryptos
-e, --env View and Edit the .env file
-h, --help display help for command
Example 1.
crypto-dip-alert -c ETH,BTC,USDC,EOS
to track ETH
, BTC
, USDC
and EOS
coins.
Example 2.
crypto-dip-alert -c ETH -p 10 -t percent
to track a 10% dip in the price of ETH
.
Example 3.
crypto-dip-alert -l
to list all symbols for available cryptos you can track.
Example 4.
crypto-dip-alert -e
to open/edit the .env
file.
Notifications
This script is written to make the notification system configurable.
By default, it comes with the following notifications:
- Console (Terminal Output)
- Mailgun (Uses the Mailgun service to send emails)
- SMTP (Uses SMTP to send emails)
- Telegram (Uses Telegram chat)
See Env Setup for more.