Current section
Files
Jump to
Current section
Files
src/coinglecko.gleam
//// # coinglecko
////
//// A type-safe CoinGecko API client for Gleam (Erlang + JavaScript targets).
////
//// ## Quick Start (Erlang)
////
//// ```gleam
//// import coinglecko/client
//// import coinglecko/ping
//// import gleam/httpc
//// import gleam/result
//// import gleam/string
////
//// pub fn main() {
//// let send = fn(req) { httpc.send(req) |> result.map_error(string.inspect) }
//// let client = client.new_demo(api_key: "CG-your-key-here")
//// let assert Ok(pong) = ping.check(client, send:)
//// }
//// ```
////
//// ## Quick Start (JavaScript)
////
//// ```gleam
//// import coinglecko/client
//// import coinglecko/ping
////
//// let client = client.new_demo(api_key: "CG-your-key-here")
//// let assert Ok(req) = ping.check_request(client)
//// // Send with gleam_fetch, then call ping.decode_response(body)
//// ```
////
//// ## Modules
////
//// - `coinglecko/client` — Client construction and configuration
//// - `coinglecko/error` — Error types
//// - `coinglecko/ping` — Server status check
//// - `coinglecko/simple` — Simple price data
//// - `coinglecko/coins` — Coin data (list, markets, details, charts, OHLC)
//// - `coinglecko/search` — Search and trending
//// - `coinglecko/global` — Global market data and DeFi
//// - `coinglecko/exchanges` — Exchange data and tickers
//// - `coinglecko/categories` — Coin categories
//// - `coinglecko/asset_platforms` — Blockchain platforms
//// - `coinglecko/nfts` — NFT collections and market data
//// - `coinglecko/derivatives` — Derivatives tickers and exchanges
//// - `coinglecko/exchange_rates` — BTC exchange rates
//// - `coinglecko/companies` — Public company treasury holdings
//// - `coinglecko/pagination` — Pagination helpers
//// - `coinglecko/rate_limit` — Rate limit header parsing
//// - `coinglecko/retry` — Configurable retry utility
/// The current version of the coinglecko library.
pub const version = "0.1.0"