coinglecko/client
Configuration and client construction for the CoinGecko API.
Types
The API tier determines the base URL and authentication header.
pub type ApiTier {
Demo
Pro
}
Constructors
-
Demo -
Pro
Values
pub fn new_demo(api_key key: String) -> Client
Create a client for the CoinGecko Demo (free) API.
Example
let client = client.new_demo(api_key: "CG-your-key-here")