xtb_api 0.0.5

Rust wrapper for the XTB API
Documentation

XTB API

This crate serves as a wrapper for the XTB API http://developers.xstore.pro/documentation/

Usage

pub fn main() {
    // New instance of Client with specified ConnectionType
    let mut client = Client::new(xtb_api::models::ConnectionType::Demo);

    // Login in with userId and password
    client.login(12345, String::from("password")).unwrap();
    
    // Get Balance
    let balance = client.balance().unwrap();
}