rust_ta-lib

Crates.iorust_ta-lib
lib.rsrust_ta-lib
version0.6.0-rc.1.build.6
sourcesrc
created_at2023-10-18 11:17:05.896058
updated_at2023-12-31 02:33:36.175867
descriptionTA-Lib - Technical Analysis Library
homepage
repositoryhttps://github.com/rust-iso/rust_ta-lib
max_upload_size
id1006640
size12,188,104
JZ (zhangjiayin)

documentation

https://docs.rs/rust_ta-lib/

README

TA-Lib - Technical Analysis Library

  • The official home for C/C++ TA-Lib is https://ta-lib.org.

  • it is a skelton to build ffi for rust

refs

!important

  • if you found some func that you want to use is not implement just submit an issue or implement it like src/wrapper.rs then submit a PR , just feed free for it

sample

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

cargo fmt