rustgecko-0.1.1-BETA has been yanked.
Important
This client is still in Beta, breaking changes might be introduced until the first stable release.
CoinGecko API Client for Rust
Simple API Client for CoinGecko written in Rust
Available endpoint
Refer to CoinGecko official API
| Endpoint | Status | Testing | Function |
|---|---|---|---|
| /ping | ✓ | ping | |
| /simple/price | ✓ | simple_price_short, simple_price | |
| /simple/supported_vs_currencies | ✓ | ✓ | SimpleSupportedVSCurrencies |
| /coins/list | ✓ | ✓ | CoinsList |
| /coins/market | ✓ | ✓ | CoinsMarket |
| /coins/{id} | ✓ | ✓ | CoinsID |
| /coins/{id}/history | ✓ | ✓ | CoinsIDHistory |
| /coins/{id}/market_chart | ✓ | ✓ | CoinsIDMarketChart |
| /events/countries | WIP | WIP | EventsCountries |
| /events/types | WIP | WIP | EventsType |
| /exchange_rates | ✓ | ✓ | ExchangeRate |
| /global | ✓ | ✓ | Global |
More api Endpoints than listed here will be supported in the Future. As soon as I start working on additional Endpoints the Table will be updated.
Shortcut Methods
Some Methods with a lot of boolean Flags have a shorter Version i.E "simple_price_short" for if you just want to retrieve Some Data and leave the Rest of the Params as their Default.
Usage
use GeckoClient;
In a Production Setting or when you have a Coingecko Subscription you might want to supply your own Client with Credentials or additional configuration like retries.
use GeckoClient;
License
MIT
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.