Giter VIP home page Giter VIP logo

bitpanda-api-rs's Introduction

bitpanda-api

~ Rust client for Bitpanda API ~

Get started ยท Documentation

Developed by @veeso

Current version: 0.1.0 (18/05/2023)

License-MIT Repo stars Downloads counter Latest version Ko-fi

Build CI Coveralls Docs



About bitpanda-api ๐Ÿผ

bitpanda-api is a Rust client library for Bitpanda API. The library supports both the "private API" which requires the APIKEY and the public API. These data are exposed:

  • Public API
    • Get assets
    • Get OHLC for asset
  • Private API
    • Get transactions
    • Get trades
    • Get wallets

Get started ๐Ÿ

Add bitpanda-api to your Cargo.toml ๐Ÿฆ€

bitpanda-api = "^0.1.0"

Query Bitpanda

use bitpanda_api::Client;
use bitpanda_api::model::AssetClass;
use bitpanda_api::model::ohlc::Period;

#[tokio::main]
async fn main() {

    let client = Client::default().x_apikey(env!("X_API_KEY"));

    // collect my last 20 trades
    client.get_trades_ex(Some(20)).await.expect("failed to collect trades");

    // get OHLC for BTC of the last 5 years
    let btc = client
        .get_assets(AssetClass::Cryptocurrency)
        .await
        .unwrap()
        .into_iter()
        .find(|asset| asset.symbol == "BTC")
        .unwrap();

    let ohlc = client.get_ohlc(Period::FiveYears, &btc.pid, "EUR").await.unwrap();
}

Documentation ๐Ÿ“š

The developer documentation can be found on Rust Docs at https://docs.rs/bitpanda-api


Support the developer โ˜•

If you like bitpanda-api and you're grateful for the work I've done, please consider a little donation ๐Ÿฅณ

You can make a donation with one of these platforms:

ko-fi PayPal bitcoin


Contributing and issues ๐Ÿค๐Ÿป

Contributions, bug reports, new features and questions are welcome! ๐Ÿ˜‰ If you have any question or concern, or you want to suggest a new feature, or you want just want to improve bitpanda-api, feel free to open an issue or a PR.

Please follow our contributing guidelines


Changelog โณ

View bitpanda-api's changelog HERE


License ๐Ÿ“ƒ

bitpanda-api is licensed under the MIT license.

You can read the entire license HERE

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.