#price #another #getting #lib #crypto #coin-gecko

crypto-prices-lib

A SDK for getting prices of cryptocurrencies against another

6 releases (3 breaking)

0.4.2 Aug 9, 2022
0.4.1 Aug 9, 2022
0.3.0 Aug 1, 2022
0.2.0 Aug 1, 2022
0.1.0 Jun 25, 2022

#7 in #coin-gecko

MIT license

9KB
58 lines

Crypto Prices Lib

Docs

Crate pubshlied here Docs are available here

Example

A example for getting the price of Ergo against Bitcoin

let price: Option<f64> = get_price("ergo", "bitcoin");
println!("{:?}", price);

The result

Some(0.00009592777203047117)

Dependencies

~4–17MB
~240K SLoC