#talib #ta-lib #technical #analysis #fintech

bin+lib rust_ta-lib

TA-Lib - Technical Analysis Library

4 releases

0.6.0-rc.1.build.6 Dec 31, 2023
0.6.0-rc.1.build.5 Dec 14, 2023
0.6.0-rc.1.build.4 Nov 29, 2023
0.6.0-rc.1.build.3 Oct 19, 2023
0.6.0-rc.1.build.2 Oct 18, 2023

#64 in Finance

Download history 5/week @ 2023-11-05 2/week @ 2023-11-12 6/week @ 2023-11-19 52/week @ 2023-11-26 12/week @ 2023-12-03 32/week @ 2023-12-10 7/week @ 2023-12-17 13/week @ 2023-12-24 33/week @ 2023-12-31 6/week @ 2024-01-07 1/week @ 2024-01-14 2/week @ 2024-01-21 15/week @ 2024-01-28 1/week @ 2024-02-04 38/week @ 2024-02-11 152/week @ 2024-02-18

206 downloads per month

Apache-2.0

6MB
83K SLoC

C 79K SLoC // 0.3% comments Rust 1.5K SLoC // 0.1% comments Prolog 739 SLoC // 0.2% comments Perl 570 SLoC // 0.1% comments Bitbake 334 SLoC // 0.1% comments Automake 283 SLoC // 0.0% comments Java 189 SLoC // 0.4% comments Shell 10 SLoC

Contains (DOS exe, 135KB) mcpp.exe

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);
}

No runtime deps