cg-coin-0.2.1 is not a library.
cg-coin
CLI tool to fetch comprehensive cryptocurrency data from CoinGecko API.
Features
- Market data (price, market cap, volume, ATH/ATL)
- Developer metrics (GitHub commits, stars, forks)
- Social sentiment (Twitter followers, Reddit subscribers)
- Exchange tickers (optional)
- 50+ pre-mapped symbols with auto-resolution
Installation
Or build from source:
Usage
# Basic usage - fetch Bitcoin data
# Save to file
# Compact JSON output
# Skip developer/social data (faster)
# Include exchange tickers
# List all supported symbols
# Verbose logging
Output
Returns comprehensive JSON including:
Options
| Option | Description |
|---|---|
-O, --output-file |
Save output to file |
-f, --format |
Output format: json (pretty) or compact |
--tickers |
Include exchange ticker data |
--developer |
Include GitHub metrics (default: true) |
--community |
Include social data (default: true) |
--list |
List all supported symbols |
-v, --verbose |
Enable debug logging |
Rate Limiting
Uses CoinGecko free tier (10 req/min). The client automatically:
- Throttles requests to stay under limit
- Retries on 429 with exponential backoff
License
MIT