CoinPaprika Rust SDK
The official Rust client library for the CoinPaprika API provides convenient access to cryptocurrency market data.This SDK was built by the courtesy of Tokenomia Pro.
Installation
Add the CoinPaprika Rust SDK to yourCargo.toml:
Quick Start
Free Plan
For basic usage with the free API plan:Pro Plan
To access Pro features and higher rate limits, initialize the client with your API key.Get your API key at coinpaprika.com/api
Common Use Cases
Getting Market Data
Coin Information
Available Methods
Key
Global
Coins
- List coins
- Get coin by ID
- Get Twitter timeline tweets for a coin
- Get coin events by coin ID
- Get exchanges by coin ID
- Get markets by coin ID
- Get OHLC for the last full day
- Get historical OHLC
- Get today OHLC
People
Tags
Tickers
- Get tickers for all active coins
- Get ticker for a specific coin
- Get historical ticks for a specific coin
Exchanges
Tools
Contracts
Changelog
- Get id changelog for all coins
FAQs
How do I authenticate with the Rust SDK?
How do I authenticate with the Rust SDK?
Construct the client with your API key using
Client::with_key(“YOUR_API_KEY”) when calling Pro endpoints.How do I find the correct coin_id?
How do I find the correct coin_id?
Use the Coverage Checker to resolve canonical IDs such as
btc-bitcoin.Can I get historical data in Rust?
Can I get historical data in Rust?
Yes—use the REST historical endpoints via the client methods that accept
start/end parameters; an API key is required.What’s the error handling approach?
What’s the error handling approach?
Propagate
Result and map HTTP errors (e.g., 429) to retry/backoff logic in your async runtime.