A fast and minimal CLI cryptocurrency information tool written in Zig, using the CoinGecko API v3.
- Fetch real-time cryptocurrency price data
- Display market information including:
- Current price
- Market cap
- 24h volume
- Price changes
- Supply information
- Clean and minimal CLI output
- Zero configuration needed
- Zig 0.11.0 or later
- libcurl development files
sudo apt-get install libcurl4-openssl-dev
brew install curl
zig build
./zig-out/bin/zigcoin <coin-id>
Examples:
./zig-out/bin/zigcoin bitcoin
./zig-out/bin/zigcoin ethereum
./zig-out/bin/zigcoin dogecoin
The tool provides clear error messages for common issues:
- Invalid coin ID
- Network request failures
- API rate limiting
- Missing data
src/
├── main.zig - Entry point and argument handling
├── api.zig - CoinGecko API client implementation
├── types.zig - Data structures and types
├── json.zig - JSON response parsing
└── display.zig - Output formatting and display
- Fork the repository
- Create your feature branch
- Commit your changes
- Push to the branch
- Create a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- CoinGecko API for providing the cryptocurrency data
- Zig community
- libcurl for HTTP requests
- Currently only supports single coin queries
- Requires internet connection
- Subject to CoinGecko API rate limits