The coincap module integrates the CoinCap API into the terminal, providing real-time data for over 1,000 cryptocurrencies. It supports interactive browsing and data export in JSON or CSV formats.
When to Activate
- When the user wants to check current cryptocurrency prices and market stats.
- When performing automated financial analysis using structured crypto data.
- When an interactive overview of the crypto market is required in the terminal.
Core Principles & Rules
- API Key Required: Remind users to obtain an API key for high-rate usage.
- Data Portability: Prioritize
--jsonand--csvfor script-based market analysis. - Interactive TUI: Use
--appfor a visual, table-based browsing experience.
Patterns & Examples
View Market (Interactive)
# Open interactive TUI for real-time crypto prices
x coincap --app
Export Market Data
# Get all market data as a JSON object
x coincap --json
Initialize Config
# Set up API keys and session defaults
x coincap init
Checklist
- Confirm if the user has an API key for prolonged use.
- Verify the desired output format (TUI, JSON, CSV).
- Ensure the user is aware the data is provided by CoinCap.io.