Skip to main content

Crate bitculator

Crate bitculator 

Source
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 string

Structs§

Alarms
Price alarms owned by the API key.
ApiError
A non-2xx response, carrying the API’s { error: { code, message, details } } envelope.
AutoPager
Iterator returned by Page::auto_paging.
Calculators
Financial calculators.
Client
The Bitculator Data API client. Cheap to clone (shares one HTTP client).
ClientBuilder
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.
GlobalMarket
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. data is the current page’s rows; auto_paging() walks every following page.
PageLinks
Navigation links on every paginated list response.
PageMeta
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§

QueryValue
Conversion into a query-string value. Returning None omits the parameter.