| Crates.io | rust_ta-lib |
| lib.rs | rust_ta-lib |
| version | 0.6.0-rc.1.build.6 |
| created_at | 2023-10-18 11:17:05.896058+00 |
| updated_at | 2023-12-31 02:33:36.175867+00 |
| description | TA-Lib - Technical Analysis Library |
| homepage | |
| repository | https://github.com/rust-iso/rust_ta-lib |
| max_upload_size | |
| id | 1006640 |
| size | 12,188,104 |
The official home for C/C++ TA-Lib is https://ta-lib.org.
it is a skelton to build ffi for rust
let close_prices: Vec<f64> = vec![
1.087010, 1.087120, 1.087080, 1.087170, 1.087110, 1.087010, 1.087100, 1.087120, 1.087110,
1.087080, 1.087000, 1.086630, 1.086630, 1.086610, 1.086630, 1.086640, 1.086650, 1.086650,
1.086670, 1.086630,
];
let (sma_values, begin) = rust_ta_lib::wrapper::sma(10, &close_prices);
// print values
for (index, value) in sma_values.iter().enumerate() {
println!("Close index {} = {}", begin + index as i32 + 1, value);
}