Skip to content

tokenomia-pro/coinpaprika-api-rust-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Coinpaprika API

Logo

Coinpaprika API Rust library provides access to Coinpaprika API for applications written in Rust programming language.

Coinpaprika API delivers precise & frequently updated market data from the world of crypto: coin prices, volumes, market caps, ATHs, return rates and more.

Usage

Put this in your Cargo.toml:

[dependencies]
coinpaprika_api = "0.1"

Then you can use it like this:

use coinpaprika_api::client::Client;
use coinpaprika_api::global::Global;
use std::error::Error;

#[tokio::main]
async fn main() -> Result<(), Box<dyn Error>> {
    let client = Client::new();

    let global: Global = client.global().send().await?;
    println!("global: {:#?}", global);

    Ok(())
}

We include examples for each section of the API, located in /examples folder.

If you have an API key, Client struct has an additional constructor with_key, that takes API key as an argument:

use coinpaprika_api::client::Client;
use coinpaprika_api::global::Global;
use std::error::Error;

#[tokio::main]
async fn main() -> Result<(), Box<dyn Error>> {
    let client = Client::with_key("<your-api-key-here>");

    let global: Global = client.global().send().await?;
    println!("global: {:#?}", global);

    Ok(())
}

Supported Endpoints

  • Key

    • Get API key info
  • Global

    • Get market overview data
  • 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

    • Get person by ID
  • Tags

    • List tags
    • Get tag by ID
  • Tickers

    • Get tickers for all active coins
    • Get ticker for a specific coin
    • Get historical ticks for a specific coin
  • Exchanges

    • List exchanges
    • Get exchange by ID
    • List an exchange markets
  • Tools

    • Search
    • Price converter
  • Contracts

    • List contracts platforms
    • Get all contract addressess for a given platform
    • Redirect to Ticker by contract address
    • Redirect to historical ticks by contract address
  • Changelog

    • Get id changelog for all coins
  • Beta

    • List sentiment coins
    • Get sentiment data for a specific coin
    • Get historical sentiment data for a specific coin

License

CoinpaprikaAPI Rust client is available under the MIT license. See the LICENSE file for more info.

About

Coinpaprika API Rust Client

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages