gecko

Crates.iogecko
lib.rsgecko
version0.1.6
sourcesrc
created_at2021-06-01 23:10:11.519588
updated_at2021-06-10 01:29:05.452847
descriptioncoin gecko api impl
homepage
repositoryhttps://gitlab.com/fuzzylemma/gecko.git
max_upload_size
id404957
size63,879
alfred (fuzzylemma)

documentation

README

gecko

A simple library to access coingecko's api.

Dependecy

[dependecies]
tokio = { version = "1", features = ["full"] }
gecko = { version = "0.1.6" } 

Example

use gecko;

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
   let gecko_client = gecko::CoinGeckoAPI::default();
   let coins_list = gecko::coins::List::required();
   let response = gecko_client(&coins_list).await.unwrap();
   println!("{:?}", response):
}

Note

The testing only covers that the api endpoints are reachable (200 code). Responses are translated into a serde json values and the correctness of expected values are not tested.

ps

this is my first rust project so be nice :)

Commit count: 0

cargo fmt