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

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


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.6-cp38-abi3-win_amd64.whl (328.1 kB view details)

Uploaded CPython 3.8+Windows x86-64

stock_trek-0.2.6-cp38-abi3-manylinux_2_28_x86_64.whl (502.8 kB view details)

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

stock_trek-0.2.6-cp38-abi3-manylinux_2_28_aarch64.whl (506.8 kB view details)

Uploaded CPython 3.8+manylinux: glibc 2.28+ ARM64

stock_trek-0.2.6-cp38-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl (903.1 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.6-cp38-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for stock_trek-0.2.6-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 0cfa5ebf9dd8159d905935032bd2944e9e37f0eddcd8a7d8e81253ee63ce326b
MD5 12cbb55ef0900347c4e637be4c60fcc5
BLAKE2b-256 b8bf47388400f46b4d85d4e41c4059c5d63a9d88799f2fa493be57da3862c36f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stock_trek-0.2.6-cp38-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 8eac60ff3b48363d8fb7a1cdf21df894e9b60c265847f61a7aa662e778ae5ab7
MD5 38625b82c089b15f1e5d6a4da9574f82
BLAKE2b-256 5bab0a5a05ebc225475eb3c106521e25b478ca01fd7fd3c99574a2042284fffc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stock_trek-0.2.6-cp38-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 dd9ea1b82cedd7923d17b44b814c5ebb8e8b0f9ee0c8cc82fe219f8786ec98f8
MD5 309b3faa0c8701da0da2733d5e5e3f14
BLAKE2b-256 718714bd69cce3ec79086e0bef8dc17778e3a4e0d90c05ea53115c6129c2b455

See more details on using hashes here.

File details

Details for the file stock_trek-0.2.6-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.6-cp38-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Algorithm Hash digest
SHA256 4832d59b80f3faa62d0fdff18cba54b8b717a581331d1af9eb2c5735e2beb214
MD5 b2568d0bf18926d464ba7293ac098b57
BLAKE2b-256 9c6c0015ef6898771ac0eae1b856c258bda0623112f1f96db8a69d45f5fca923

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