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

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

Uploaded CPython 3.8+Windows x86-64

stock_trek-0.2.2-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.2-cp38-abi3-manylinux_2_28_aarch64.whl (485.8 kB view details)

Uploaded CPython 3.8+manylinux: glibc 2.28+ ARM64

stock_trek-0.2.2-cp38-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl (874.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.2-cp38-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for stock_trek-0.2.2-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 2404f9c5fba80e5d66c7bb6acd0a177a225f01cd5710b327be2a312feab59fdd
MD5 0480dc6c3f373d9f3a21ddc8a48419d4
BLAKE2b-256 71a6cb1e5c4f7fdf7c8812271f02c8fd2d1fdf4201b47e91beeb2ab99cd0b714

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stock_trek-0.2.2-cp38-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 60ccb0537fff74eeae236f17d3433fba72e1e58d216afc168cabb4eddb00f230
MD5 cbca656b1ee96f59475d40e31793467d
BLAKE2b-256 d3f5f94ff98ce70760d07d67ae78a01f0ad1be11564168c1175e46510d0d392d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stock_trek-0.2.2-cp38-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 4e5eac37fb6c5e088a2908c79cc7c02040d9351b16aa5201a2cbfa9348dddf0e
MD5 e35e32848c22143149c752f67b7c6532
BLAKE2b-256 cb0957a28f5b5678332cb1b2b27bfdfa9813d591bc7f4d4ce5cb7778dd83a24f

See more details on using hashes here.

File details

Details for the file stock_trek-0.2.2-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.2-cp38-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Algorithm Hash digest
SHA256 f2096085568dca40ecbd745f67408aa8b05b79409a6ff2c06d2d27f1e76ed9a8
MD5 79b5440c17173fec7a7955bc1703f113
BLAKE2b-256 8bc3e337474537bd56a6bd460b3a3f6c52a1ecf54cbedda4b3d6321746a29244

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