ALTRIS technical-analysis functions preview.
Project description
ALTRIS
ALTRIS is a Python technical-analysis functions preview for trading research.
This first public release intentionally focuses on altris.functions: a flat
formula facade for indicators, math/stat helpers, metadata, output schemas, and
small batch execution.
import altris.functions as fn
close = [100.0, 101.0, 103.0, 102.0, 104.0, 105.0]
sma3 = fn.sma(close, length=3)
ema3 = fn.ema(close, length=3)
rsi3 = fn.rsi(close, length=3)
Install
pip install altris
This is a pre-alpha release. APIs may change while ALTRIS Core continues development.
Technical-Analysis Examples
Use the public functions namespace with the fn alias:
import altris.functions as fn
open_ = [99.0, 100.5, 102.0, 101.5, 103.0, 104.5]
high = [101.0, 102.0, 104.0, 103.5, 105.0, 106.0]
low = [98.0, 100.0, 101.0, 100.5, 102.0, 103.0]
close = [100.0, 101.0, 103.0, 102.0, 104.0, 105.0]
volume = [10_000, 12_000, 15_000, 13_000, 16_000, 17_000]
bands = fn.bb(close, length=3)
macd = fn.macd(close, fast=2, slow=4, signal=2)
atr = fn.atr(high, low, close, length=3)
obv = fn.obv(close, volume)
doji = fn.doji(open_, high, low, close)
Multi-output formulas return small dataclasses:
latest_upper_band = bands.upper[-1]
latest_macd_line = macd.macd[-1]
You can split those outputs into named columns:
columns = fn.result_columns("bb", bands, prefix="bb3")
assert set(columns) == {"bb3_upper", "bb3_middle", "bb3_lower"}
Math Functions
ALTRIS also exposes math and statistical helpers that are useful in technical analysis research:
returns = fn.percent_return(close)
mean3 = fn.mean(close, length=3)
stdev3 = fn.stdev(close, length=3)
zscore3 = fn.zscore(close, length=3)
Metadata And Catalog
Every public formula has catalog metadata:
import altris.functions as fn
metadata = fn.function_metadata("rsi")
print(metadata["description"])
print(metadata["outputs"])
print(metadata["behavior"]["warmup"])
To list available functions:
names = [entry.function_name for entry in fn.catalog_entries()]
Batch Execution
fn.batch(...) can run function requests with shared inputs and parameter grids:
import altris.functions as fn
close = [100.0, 101.0, 103.0, 102.0, 104.0, 105.0]
result = fn.batch(
["sma", "ema"],
inputs={"source": close},
parameter_grid={"length": [2, 3]},
)
for record in result.records:
print(record.key, record.values[-1])
Scope
This release includes the technical-analysis functions surface only. Broader feature materialization, strategy/backtesting, simulation, evaluation, Studio, and app workflows are not part of this first package.
ALTRIS is research tooling. It is not financial advice, a broker, an execution system, live order routing, or credential management software.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file altris-0.1.0a0.tar.gz.
File metadata
- Download URL: altris-0.1.0a0.tar.gz
- Upload date:
- Size: 121.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
904e78de7c83899708701d49e0744095a1e0e65a32c03a2dc896aac294af7a07
|
|
| MD5 |
0b4e716cc2ebc4a6894f62d35478781d
|
|
| BLAKE2b-256 |
ef233c878071f873f87da1efac2fd91075bd564d07851786e9edfc7fad88c1d1
|
Provenance
The following attestation bundles were made for altris-0.1.0a0.tar.gz:
Publisher:
publish.yml on AltrisLabs/altris
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
altris-0.1.0a0.tar.gz -
Subject digest:
904e78de7c83899708701d49e0744095a1e0e65a32c03a2dc896aac294af7a07 - Sigstore transparency entry: 1769441287
- Sigstore integration time:
-
Permalink:
AltrisLabs/altris@4cb436075b2369df03730efef1c0b7c258f57753 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/AltrisLabs
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@4cb436075b2369df03730efef1c0b7c258f57753 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file altris-0.1.0a0-py3-none-any.whl.
File metadata
- Download URL: altris-0.1.0a0-py3-none-any.whl
- Upload date:
- Size: 134.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3b81eeac40c616699a777ac05892f00c94b63e4eb73c84b015983e56cea85c3e
|
|
| MD5 |
7b5c60dc532a1d92c678c298822c4d0c
|
|
| BLAKE2b-256 |
938b2f57c1019f696747938be38db6ad4c412aca729c2cacbaad66503f82e64b
|
Provenance
The following attestation bundles were made for altris-0.1.0a0-py3-none-any.whl:
Publisher:
publish.yml on AltrisLabs/altris
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
altris-0.1.0a0-py3-none-any.whl -
Subject digest:
3b81eeac40c616699a777ac05892f00c94b63e4eb73c84b015983e56cea85c3e - Sigstore transparency entry: 1769441382
- Sigstore integration time:
-
Permalink:
AltrisLabs/altris@4cb436075b2369df03730efef1c0b7c258f57753 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/AltrisLabs
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@4cb436075b2369df03730efef1c0b7c258f57753 -
Trigger Event:
workflow_dispatch
-
Statement type: