Skip to main content

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.1"

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 #[traitreg::register]:

use stock_trek::StockTrekAlgorithm;

pub struct MyAlgo {}

#[traitreg::register]
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

cargo 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

stock_trek-0.2.1-cp38-abi3-win_amd64.whl (315.6 kB view details)

Uploaded CPython 3.8+Windows x86-64

stock_trek-0.2.1-cp38-abi3-manylinux_2_28_x86_64.whl (490.3 kB view details)

Uploaded CPython 3.8+manylinux: glibc 2.28+ x86-64

stock_trek-0.2.1-cp38-abi3-manylinux_2_28_aarch64.whl (486.8 kB view details)

Uploaded CPython 3.8+manylinux: glibc 2.28+ ARM64

stock_trek-0.2.1-cp38-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl (875.2 kB view details)

Uploaded CPython 3.8+macOS 10.12+ universal2 (ARM64, x86-64)macOS 10.12+ x86-64macOS 11.0+ ARM64

File details

Details for the file stock_trek-0.2.1-cp38-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for stock_trek-0.2.1-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 278816d9c17f980380d9efd42939e5ca16d1d1a8381ac940c8548d47ef522aae
MD5 81e587736e9b9d89ab3e098be8e55cbf
BLAKE2b-256 e5715b1f9927e25a4dd9ca4416921b3a7094407015c8266c3e3083e80582158a

See more details on using hashes here.

File details

Details for the file stock_trek-0.2.1-cp38-abi3-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for stock_trek-0.2.1-cp38-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 c74c504b1044cbd624654682f954ae526ea60bc869378c98d6de59a7f2511b6b
MD5 824cd9eddfe89775f3b633fb5bdfbe53
BLAKE2b-256 c5615a85e8c63121411a29e69d7e4a693c89069788b710ead010fb506267ea48

See more details on using hashes here.

File details

Details for the file stock_trek-0.2.1-cp38-abi3-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for stock_trek-0.2.1-cp38-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 78e827d37241787daa0242f5a92ad5f60d5878798798e4003588ab52dedffdbb
MD5 825deefe81a8a17ee4acbf8059ffe1ef
BLAKE2b-256 25b282dc2813f0e8825cbc3ef7f98c36175817414cc13abe6a828baef77e77f3

See more details on using hashes here.

File details

Details for the file stock_trek-0.2.1-cp38-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl.

File metadata

File hashes

Hashes for stock_trek-0.2.1-cp38-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Algorithm Hash digest
SHA256 11061691c17b5fa5a391110e29035e0946e6ed0c8c6102ce97401f76b30142bf
MD5 516e60cb72c00d1d58f1762b3a07faba
BLAKE2b-256 f4af4df010f1181330d6b302de1508dc27725fcbc1ba7914a2b9f5b88e87a504

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page