cmc
Unofficial Rust Library for the CoinMarketCap API
Usage
Get your API key here
Price cryptocurrency
use Cmc;
let cmc = new;
match cmc.price
Price with custom settings
use ;
let cmc = new
.pass
.convert
.build;
match cmc.price
CoinMarketCap ID Map
NOTE: CoinMarketCap recommend utilizing CMC ID instead of cryptocurrency symbols to securely identify cryptocurrencies with other endpoints and in your own application logic.
use ;
let cmc = new;
let map = cmc.id_map.unwrap;
for cc in map
License
Licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE or http://apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.