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

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

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

Uploaded CPython 3.8+Windows x86-64

stock_trek-0.2.3-cp38-abi3-manylinux_2_28_x86_64.whl (489.1 kB view details)

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

stock_trek-0.2.3-cp38-abi3-manylinux_2_28_aarch64.whl (485.6 kB view details)

Uploaded CPython 3.8+manylinux: glibc 2.28+ ARM64

stock_trek-0.2.3-cp38-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl (874.3 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.3-cp38-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for stock_trek-0.2.3-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 e133265980814e41119ba1caa70bf602ee9086bda2839b59b47a48a7e7526829
MD5 e7b079499c4186385fca539b72338ee0
BLAKE2b-256 7cdfbcd962f22248133dff989d5d53471e4a8b143de72b84a7e98ab399a2c09e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stock_trek-0.2.3-cp38-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 8655601cb9ad0c3eed71487a9e271326b3f5fdd1ab06714f80b3671d1e7cc5a0
MD5 c71261d02257bb6e9eda8b56efb3417d
BLAKE2b-256 584423c8467e46c70438b79a16f4efd956fcd611cca6b365baddcb9634b622c2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stock_trek-0.2.3-cp38-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 b36e62dfa5c890109a9e3e7d3189595eb886df40b171dda8e6e2291f5d952c23
MD5 cfff48b1d685b29591358658103e776b
BLAKE2b-256 827acff364afedab39a51307b888a8bf291143a9d742d28bba5d857c58acf4a1

See more details on using hashes here.

File details

Details for the file stock_trek-0.2.3-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.3-cp38-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Algorithm Hash digest
SHA256 8b1bec7990b712e41786841e885be6cdeab9d63ab0be859f73dd98a51ca0cd5c
MD5 f2a29a3957c0dde658c0e07a87ecb366
BLAKE2b-256 748997b70250f16c100d41ab2c72aee5c8e4bd3a14a18cb6f7a5e19f27eee56f

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