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

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::{algorithm::StockTrekAlgorithm, context::StockTrekContext, schemas::signal::*};

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

Uploaded CPython 3.8+Windows x86-64

stock_trek-0.2.4-cp38-abi3-manylinux_2_28_x86_64.whl (489.0 kB view details)

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

stock_trek-0.2.4-cp38-abi3-manylinux_2_28_aarch64.whl (485.7 kB view details)

Uploaded CPython 3.8+manylinux: glibc 2.28+ ARM64

stock_trek-0.2.4-cp38-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl (873.8 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.4-cp38-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for stock_trek-0.2.4-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 8af455ab3d2d2f370fa0ce36a1580cbd8914fb108b3a87f60c3f2a6bec7e0c6f
MD5 02fb22a3edecacf2853c7456efdcff19
BLAKE2b-256 c71fd4a36954faf0a04a86ce838ba41f4bd2e82250056c23ffe585b951738f53

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stock_trek-0.2.4-cp38-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 184f519abf4437ad75c41966456461ce7ff527ef09f1ffa626f9b3f8d0178c84
MD5 1539538dfc554b054771834c74a8045b
BLAKE2b-256 fec454a493f1f8771ab2819ae8805a3ddb21f00b8b441067c66118033db7ba2b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stock_trek-0.2.4-cp38-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 899bbf8a74c98a35f3e8a56899e81fd0531272a7e65d3a0287d8ddf11e38aadb
MD5 2212120e5ebb6702070b0bfa557dbb53
BLAKE2b-256 12adad64c4e94c6503acc1a02c153e625b8d44067ca2302952ed0e7e7f11be9d

See more details on using hashes here.

File details

Details for the file stock_trek-0.2.4-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.4-cp38-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Algorithm Hash digest
SHA256 736cb57105840bd695850b703f005e64a61cc50cf3461487eb81ad2ea8d09f1d
MD5 a1c481a79390ee4b090040e5ba8eeae5
BLAKE2b-256 714730e385c62de8a73ed68472c07d5e83ca7c1b1db73f2b43c1f3f23c7fba24

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