bitsors 1.1.16

A Rust wrapper for the Bitso API
Documentation
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);
}