https://github.com/gregyjames/zenithta
A high performance python technical analysis library written in Rust and the Numpy C API.
https://github.com/gregyjames/zenithta
finance financial-analysis fintech indicator indicators performance python rust stock-market stocks wrapper
Last synced: 5 months ago
JSON representation
A high performance python technical analysis library written in Rust and the Numpy C API.
- Host: GitHub
- URL: https://github.com/gregyjames/zenithta
- Owner: gregyjames
- License: mit
- Created: 2022-02-17T23:02:53.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-01-22T01:13:12.000Z (over 2 years ago)
- Last Synced: 2025-04-28T22:25:25.052Z (6 months ago)
- Topics: finance, financial-analysis, fintech, indicator, indicators, performance, python, rust, stock-market, stocks, wrapper
- Language: Rust
- Homepage:
- Size: 38.1 KB
- Stars: 216
- Watchers: 4
- Forks: 8
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://github.com/gregyjames/ZenithTA/actions/workflows/rust.yml)
[](https://pypi.org/project/zenithta/)
[](https://github.com/gregyjames/ZenithTA/blob/main/LICENSE)
[](https://github.com/gregyjames/ZenithTA/)# ZenithTA
#### Formerly Panther
A efficient, high-performance python technical analysis library written in Rust using PyO3 and rust-numpy.## Indicators
- ATR
- CMF
- SMA
- EMA
- RSI
- MACD
- ROC## How to install
`pip3 install zenithta`## How to build (Windows)
- Run `cargo build --release` from the main directory.
- Get the generated dll from the target/release directory.
- Rename extension from .dll to .pyd.
- Place .pyd file in the same folder as script.
- Put `from panther import *` in python script.
## Speed
On average, I found the Panther calculations of these indicators to be about 9x or 900% faster than the industry standard way of calculating these indicators using Pandas. Don't believe me? Install the library and run the tests in the speed_tests directory to see it for yourself :)## License
MIT LicenseCopyright (c) 2022 Greg James
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.