RTTA
Purpose
The purpose of this package is to implement a very low latency incremental technical analysis toolkit. Most technical analysis tool-kits work in a "batch mode" where you hand them a blob of data and in a pandas series and they return a series with the computed data. Incremental updates for these require O(n) work. There is one tool, talipp that is designed to support incremental updates, but it is implemented in pure python and is a little more than an order of magnitude slower than rtta. On a 5995WX talipp's exponential moving average requires 465ns; rtta's requires 36ns. A bare python function call requires 35ns, so we're about as fast as fast can be.
Installation
pip install rtta
Usage
Each operator has a paramater fillna. If set to false, nan values will be returned until the operation is "populated". If set to true, best guesses will be returned until the operation is populated.
So for example, our simple moving average SMAIndicator works sort of like this:
>>> import rtta.trend as trend
>>> sma = trend.SMAIndicator(window=4, fillna=True)
>>> sma.update(1)
1
>>> sma.update(2)
1.5
>>> sma.update(3)
2
>>> sma.update(2)
2
>>> sma.update(2)
2.25 <- The 1 fell off the end of the sliding window
Performance
| Indicator | Latency |
|---|---|
| SMA | 36ns |
| EMA | 36ns |
| MACD | 55ns |
Metadata
Release files for rtta 0.1.10
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| rtta-0.1.10.tar.gz | 33.1 kB | Without provenance | Details for rtta-0.1.10.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| rtta-0.1.10-cp313-cp313-macosx_15_0_arm64.whl | CPython 3.13 | CPython 3.13 | macOS 15.0+ ARM64 | Details for rtta-0.1.10-cp313-cp313-macosx_15_0_arm64.whl |
Total release size: 238.1 kB
Release files / rtta-0.1.10.tar.gz
| Download URL | rtta-0.1.10.tar.gz |
|---|---|
| Size | 33.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c4878942be620d882a2193b9aabbaab4d59928244c00110f4140a4561f875cdf
|
|
BLAKE2b-256 checksum How to use checksums |
a063a284d3b47d88ff5575bae2732c17bba6ca099cf18affabfd16914012cc74
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.7.15
|
Release files / rtta-0.1.10-cp313-cp313-macosx_15_0_arm64.whl
| Download URL | rtta-0.1.10-cp313-cp313-macosx_15_0_arm64.whl |
|---|---|
| Size | 205.1 kB |
| Tags | CPython 3.13 macOS 15.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
ce65992c1ab392147ac4350f84501ad18a98168c8d3d50c4b4d76160c98a9fce
|
|
BLAKE2b-256 checksum How to use checksums |
f14486d76d2274fd5c5198dc1fa15a86812353b3804585f04d850e505c09b8dd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.7.15
|
Security for rtta 0.1.10
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.