# Crypto Prices Lib ### Docs Crate pubshlied [here](https://crates.io/crates/crypto-prices-lib) Docs are available [here](https://docs.rs/crypto-prices-lib) ### Example A example for getting the price of Ergo against Bitcoin ```rust use anyhow::Result; use crypto_prices_lib::{get_marketcap, get_price}; #[tokio::main] async fn main() -> Result<()> { let price = get_price("ergo", "usd").await.unwrap(); println!("{:?}", price); let marketcap = get_marketcap("ergo", "usd").await.unwrap(); println!("{:?}", marketcap); Ok(()) } ``` The result ``` 1.29 96616969.50238612 ```