Stock Trek time-series analysis python bindings
Project description
stock-trek
A lightweight, composable time series and statistical toolkit designed for running crypto bots on stock-trek.com. Rust-native core with optional Python bindings
Overview
stock-trek provides core abstractions and utilities for working with market data, including:
- Order books
- Aligned/Rolling windows
- Ticks
- Statistical and analytical functions
Installation
Add to your Cargo.toml:
[dependencies]
stock-trek = "0.2.7"
Python Bindings
stock-trek also provides Python bindings which can be installed via
pip install stock-trek
Usage
Implement the StockTrekAlgorithm trait and register it with the annotation #[register_algorithm]:
use stock_trek::prelude::*;
use stock_trek::signal::*;
pub struct MyAlgo;
#[register_algorithm]
impl StockTrekAlgorithm for MyAlgo {
fn create_signal(&self, context: StockTrekContext) -> StockTrekSignal {
...
}
}
Stock-Trek verifies code before running it and disallows certain syntax elements. To verify code locally, install it with
cargo install stock-trek
then run the verify command with
stock-trek verify --file ./path/to/my/code/file.rs
Roadmap
Planned features include:
- Technical indicators (EMA, RSI, MACD, etc.)
- Backtesting and simulation utilities
Status
This project is in early development (0.x). APIs may change.
License
MIT
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 Distributions
Built Distributions
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 stock_trek-0.2.7-cp38-abi3-win_amd64.whl.
File metadata
- Download URL: stock_trek-0.2.7-cp38-abi3-win_amd64.whl
- Upload date:
- Size: 328.0 kB
- Tags: CPython 3.8+, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.12.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3f1ea430cf085cacaea9946229a30cb7ed9e467b9028c456520a760685888cb4
|
|
| MD5 |
a37abe21247639bda77c21434adb9c0a
|
|
| BLAKE2b-256 |
52ab1f634f14fe08f7743c26071b2f9c747689f7978f3cafe3fe08e68884b657
|
File details
Details for the file stock_trek-0.2.7-cp38-abi3-manylinux_2_28_x86_64.whl.
File metadata
- Download URL: stock_trek-0.2.7-cp38-abi3-manylinux_2_28_x86_64.whl
- Upload date:
- Size: 502.7 kB
- Tags: CPython 3.8+, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.12.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e571b0c799181b6b07ebd6e08c3db794e78594c4f1c40ad89d6610c2ea91227d
|
|
| MD5 |
cde21f719b65c2d071300e7d847e49fb
|
|
| BLAKE2b-256 |
f4620dd1b6c92f8e4ff3f57d627c3b73f8d68284b2a73426ce8fa2283f34ea37
|
File details
Details for the file stock_trek-0.2.7-cp38-abi3-manylinux_2_28_aarch64.whl.
File metadata
- Download URL: stock_trek-0.2.7-cp38-abi3-manylinux_2_28_aarch64.whl
- Upload date:
- Size: 506.6 kB
- Tags: CPython 3.8+, manylinux: glibc 2.28+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.12.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b25349db21acd0517130889341a093ec7626f9aa6f7fef1be862ff2292efa9dd
|
|
| MD5 |
b37b1ef1db1c4177bcb1ce111df7a0cd
|
|
| BLAKE2b-256 |
5506e9191ee2fff04aaf902f3c465addd87e4b63762fed28dcf47a6cea5e2252
|
File details
Details for the file stock_trek-0.2.7-cp38-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl.
File metadata
- Download URL: stock_trek-0.2.7-cp38-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
- Upload date:
- Size: 903.1 kB
- Tags: CPython 3.8+, macOS 10.12+ universal2 (ARM64, x86-64), macOS 10.12+ x86-64, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.12.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
072dc9c87504d2c8b190fdd351a910a65e50e21fd57c4462e1f075950898a855
|
|
| MD5 |
f6a470e9e8f85f33f1a42ffebeb7649f
|
|
| BLAKE2b-256 |
7f9f4c33043109d3e870f02a8338fd394fb284293cee2368257ffc7670e55b50
|