Expand description
Official Rust SDK for the Bitculator Data API.
use bitculator::{Client, Params};
use serde_json::Value;
let client = Client::new("your-api-key");
let bitcoin: Value = client.coins().get("bitcoin", Params::new())?;
println!("{}", bitcoin["price"]); // "63520.780763913" — a decimal stringStructs§
- Alarms
- Price alarms owned by the API key.
- ApiError
- A non-2xx response, carrying the API’s
{ error: { code, message, details } }envelope. - Auto
Pager - Iterator returned by
Page::auto_paging. - Calculators
- Financial calculators.
- Client
- The Bitculator Data API client. Cheap to clone (shares one HTTP client).
- Client
Builder - Builder for
Client. - Coins
- Coins & tokens: listings, movers, detail, and history.
- Conversion
- Asset conversion and reference rates.
- Editorial
- Editorial content: articles, videos, and insights.
- Exchanges
- Exchanges: listings, trust score, history, markets, and listed assets.
- Global
Market - Global market aggregates.
- Indicators
- Technical indicators for a coin.
- Liquidations
- Liquidation feed and aggregates.
- Markets
- Markets, tickers, and trading pairs.
- Meta
- Service metadata: spec, health, and key usage.
- NewAlarm
- Body for creating an alarm.
- NewWebhook
- Body for registering a webhook endpoint.
- Page
- One page of a paginated list, plus lazy forward navigation.
datais the current page’s rows;auto_paging()walks every following page. - Page
Links - Navigation links on every paginated list response.
- Page
Meta - Laravel paginator metadata on every paginated list response.
- Params
- A bag of query parameters. Keys mirror the API’s names (snake_case); build it fluently:
- Prices
- Lightweight price lookups.
- Quota
- Quota headers (X-Quota-*) from the most recent response.
- Sentiment
- Community sentiment and market-wide sentiment indices.
- Wallets
- Wallets: listings, release timeline, comparison, and supported coins.
- Webhooks
- Webhook endpoints and their delivery log.
Enums§
- Error
- Any error the SDK can return.
Constants§
- VERSION
- SDK version, sent in the User-Agent header. Single-sourced from Cargo.toml.
Traits§
- Query
Value - Conversion into a query-string value. Returning
Noneomits the parameter.