Coin Market is a simple library designed to make it easy get market information for cryptocurrencies from exchanges like Shapeshift.
```rust extern crate coinmarket; use coinmarket::exchange::CoinExchange;
pub fn main() { // Tell the exchange we want to pair against Bitcoin and Monero let exchange = CoinExchange::new("btc", "xmr"); // Get the market info of Bitcoin in Monero let marketinfo = exchange.getmarket_info().expect("parsing error");
// Print the market rate
println!("{}", market_info.rate);
} ```