Fetch live cryptocurrency prices and technical indicators via CoinGecko free API.
uv run python scripts/price_check.py --symbol BTC --currency USD
uv run python scripts/price_check.py --symbol ETH --currency USD --upper 4000 --lower 2000
uv run python scripts/price_check.py --symbol SOL --currency USD --output json
--output jsonscripts/price_check.py — Main script. Run standalone with uv run python scripts/price_check.py [args]| Arg | Description |
|---|---|
| ----- | ------------- |
--symbol | Crypto symbol (e.g. BTC, ETH, SOL) — required |
--currency | Fiat currency (default: USD) |
--upper | Upper price threshold for alert |
--lower | Lower price threshold for alert |
--days | Historical days for SMA (default: 30) |
--output | text (default) or json |
See references/signals.md for explanation of SMA, RSI, support/resistance, and trading signal interpretation.
--upper threshold → Price ceiling alert--lower threshold → Price floor alert共 1 个版本