| Crates.io | xtb_api |
| lib.rs | xtb_api |
| version | 0.0.5 |
| created_at | 2022-05-29 20:03:37.505159+00 |
| updated_at | 2022-06-03 14:30:10.90458+00 |
| description | Rust wrapper for the XTB API |
| homepage | |
| repository | https://github.com/Gruaba/rust_xtb_api |
| max_upload_size | |
| id | 596638 |
| size | 6,228 |
This crate serves as a wrapper for the XTB API http://developers.xstore.pro/documentation/
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();
}