rtpx 1.0.3

Safe Rust bindings for CTP (Comprehensive Transaction Platform) and its variations for Chinese financial markets
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#[cfg(test)]

// #[test]
// fn create_apt_instance() {
//     use crate::atp::trader::*;
//     let flow_path = ::std::ffi::CString::new("").unwrap();
//     let api = TraderApi::new(flow_path);
// }

#[test]
fn create_ctp_instance() {
    use super::trader::*;
    let flow_path = ::std::ffi::CString::new("").unwrap();
    let mut api = TraderApi::new(flow_path);
    println!("version={}", api.version());
    drop(api);
}