#api #api-access #api-client #api-bindings #market-data #coinpaprika

coinpaprika-api

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

1 unstable release

0.1.0 Oct 20, 2022

#21 in #market-data

MIT license

73KB
1.5K SLoC

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.

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.

Dependencies

~8–24MB
~310K SLoC