Compare market caps of stocks, cryptocurrencies and gold.
Small project to learn Rust, inspired by ratiogang.com.
Requires coingecko.com and polygon.io API keys:
export POLYGON_KEY=YOURKEY COINGECKO_KEY=YOURKEY
git clone https://github.com/laibe/ratio-gang-cli.git && cd ratio-gang-cli
cargo build --release
# display help for usage information
./target/release/ratio-gang-cli -h
- Commodities: gold
- Stock symbols: https://polygon.io/docs/stocks/get_v3_reference_tickers
- Cryptocurrencies via coingecko-ids: https://docs.coingecko.com/reference/coins-list
- Coingecko-ids are also displayed on coingecko.com when selecting a cryptocurrency (
API ID
)
- Coingecko-ids are also displayed on coingecko.com when selecting a cryptocurrency (
- Market cap is reported in USD
Latest estimates can be retrieved from the World Gold Council (212585 tonnes as of 2024-02-01).
Overwrite via the --above-ground
argument.