BITSORS RELEASE

I’m very happy to announce the release of bitsors 1.0.0!

You can find more information about this release here.

bitsors is a wrapper of Bitso’s API written in Rust. It now has full support for the public and private API endpoints, plus the WebSocket API.

Here’s an example of how one would use it:

extern crate bitsors;

use bitsors::auth::BitsoCredentials;
use bitsors::client::Bitso;

#[tokio::main]
async fn main() {
    // Set API_KEY and API_SECRET in .env file or
    // export API_KEY="your api_key"
    // export API_SECRET="your_api_secret"
    let client_credential = BitsoCredentials::default().build();
    // Or set API_KEY and API_SECRET explictly
    // let client_credential = BitsoCredentials::default()
    //     .api_key("this-is-my-client-id")
    //     .api_secret("this-is-my-client-secret")
    //     .build();
    let bitso = Bitso::default()
        .client_credentials_manager(client_credential)
        .build();
    let result = bitso.get_account_balance().await;
    println!("{:?}", result);
}

You can find the repository here, the crate here and the docs here.

🍀

Written on April 3, 2021
Tags:
Filed under