A comprehensive web application that tracks Bitcoin and Ethereum holdings of public companies with real-time PnL analysis, built with Streamlit and powered by CoinGecko API.
- Real-time Data: Live treasury holdings data from CoinGecko API
- Dual Asset Support: Track both Bitcoin (BTC) and Ethereum (ETH) holdings
- PnL Analysis: Calculate profit/loss for each company's crypto investments
- Company Details: Company name, ticker, country, and holdings information
- Asset Selection: Switch between BTC, ETH, or view both simultaneously
- Currency Conversion: Support for multiple currencies (USD, EUR, GBP, JPY, CAD, AUD)
- What-If Analysis: Interactive scenario modeling with adjustable crypto prices
- Real-time Charts: Visual representation of holdings and PnL distribution
- Top Holders Ranking: Identify companies with largest crypto positions
- PnL Distribution: Histogram analysis of profit/loss across companies
- Combined View: Unified dashboard for companies holding both assets
- Supply Percentage: BTC holdings as percentage of total supply
- Frontend: Streamlit (Python web framework)
- Data Processing: Pandas for data manipulation
- Visualization: Plotly for interactive charts
- API Integration: CoinGecko Companies Treasury API
- Caching: Built-in caching for optimal performance
- Python 3.8 or higher
- Internet connection for real-time data
-
Clone the repository
git clone https://github.com/Dairus01/crypto-treasury-tracker cd crypto-treasury-tracker -
Install dependencies
pip install -r requirements.txt
-
Start the Streamlit app
streamlit run app.py
-
Open your browser
- Navigate to
http://localhost:8501 - The app will automatically load and fetch latest data
- Navigate to
- Asset Selection: Choose between Bitcoin, Ethereum, or both
- Currency: Select your preferred display currency
- What-If Analysis: Adjust crypto prices to see impact on holdings
- Data Refresh: Click refresh button to get latest data
- Interactive Charts: Hover over charts for detailed information
- CoinGecko Companies Treasury API: Primary data source for company holdings
- Real-time Pricing: Current market values and exchange rates
- Public Disclosures: Company-reported crypto treasury positions
- Company name and stock ticker
- Country of incorporation
- Crypto holdings (BTC/ETH amount)
- Entry value (acquisition cost)
- Current market value
- Unrealized PnL (profit/loss)
- PnL percentage
- Bar Charts: Top companies by holdings
- Histograms: PnL distribution analysis
- Pie Charts: Asset allocation breakdown
- Interactive Tables: Sortable company data
streamlit run app.py- Push code to GitHub
- Connect repository to Streamlit Cloud
- Deploy automatically
- Caching: 1-hour cache for API responses
- Lazy Loading: Data fetched only when needed
- Efficient Processing: Pandas for fast data manipulation
- Responsive UI: Streamlit's optimized rendering
- Track corporate crypto adoption
- Analyze company crypto strategies
- Monitor institutional crypto exposure
- Identify crypto-friendly companies
- Research crypto market trends
- Analyze corporate treasury strategies
- Monitor institutional adoption
- Generate investment insights
- Benchmark against competitors
- Track industry crypto adoption
- Analyze treasury diversification
- Monitor market positioning
- Additional Assets: Support for more cryptocurrencies
- Historical Data: Time-series analysis and trends
- Private Companies: Include non-public entities
- Portfolio Tracking: User-defined watchlists
- Alerts: Price and PnL notifications
- Export Features: CSV/Excel data export
- Mobile App: Native mobile application
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests if applicable
- Submit a pull request
This project is licensed under the MIT License
This application is for educational and informational purposes only. The data provided is sourced from public APIs and should not be considered as financial advice. Always conduct your own research before making investment decisions.
- Issues: Report bugs via GitHub Issues
- Documentation: Check this README first
- API Issues: Contact CoinGecko support
- Community: Join our discussions
- CoinGecko: For providing the treasury data API
- Streamlit: For the excellent web app framework
- Open Source Community: For the amazing tools and libraries
Built with ❤️ for the crypto community