xtb_api

Crates.ioxtb_api
lib.rsxtb_api
version0.0.5
sourcesrc
created_at2022-05-29 20:03:37.505159
updated_at2022-06-03 14:30:10.90458
descriptionRust wrapper for the XTB API
homepage
repositoryhttps://github.com/Gruaba/rust_xtb_api
max_upload_size
id596638
size6,228
Lukas Gruber (Gruaba)

documentation

README

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();
}
Commit count: 11

cargo fmt