crypto
Cryptocurrency Price Checker
Instructions
-
Identify the cryptocurrency the user is asking about (Bitcoin, Ethereum, Solana, etc.)
-
Execute the appropriate script
python3 scripts/crypto.py btc- Get Bitcoin pricepython3 scripts/crypto.py eth- Get Ethereum pricepython3 scripts/crypto.py sol- Get Solana pricepython3 scripts/crypto.py doge- Get Dogecoin pricepython3 scripts/crypto.py <symbol>- Get any crypto price by symbol
-
Format the response with:
- USD price (and local currency if applicable)
- 24-hour price change percentage
- Source attribution to CoinGecko
- Note that crypto prices are volatile and change rapidly
Examples
User: "What's the current Bitcoin price?"
Action: Execute python3 scripts/crypto.py btc
Response: "Bitcoin is currently trading at $67,234. It has changed +2.3% in the last 24 hours. (Source: CoinGecko)"
User: "How much is Ethereum worth?"
Action: Execute python3 scripts/crypto.py eth
Response: "Ethereum is currently priced at $3,456, down -1.2% over the past 24 hours. (Source: CoinGecko)"
User: "Check Solana and Dogecoin prices"
Action: Execute python3 scripts/crypto.py sol and python scripts/crypto.py doge
Response: "Current prices - Solana: $145 (+5.7% 24h), Dogecoin: $0.12 (+0.8% 24h). (Source: CoinGecko)"