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

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

Uploaded CPython 3.8+Windows x86-64

stock_trek-0.2.5-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.5-cp38-abi3-manylinux_2_28_aarch64.whl (506.7 kB view details)

Uploaded CPython 3.8+manylinux: glibc 2.28+ ARM64

stock_trek-0.2.5-cp38-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl (903.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.5-cp38-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for stock_trek-0.2.5-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 d03fc88af54424bcc5e5cef890fe1efecf86c7668db26a9de12df0fe94c7c724
MD5 dc9a24cc4e127c662bef2a0694f4e5d2
BLAKE2b-256 f5dd24f5795b016093c79fc87222221b0b5f3c2f70d295ff9987ceaff2119cc5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stock_trek-0.2.5-cp38-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 3e2d61f529ae1f4a3c112fbdacaf31017c5596548d86a36e949f83b008d5cc43
MD5 fe3046a6fa0fe0fae5fcde24ca8d1ba1
BLAKE2b-256 8336c53c0b1df04223527bd57066d46fca4ef6d1402c47e758d0808eb73ebea5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stock_trek-0.2.5-cp38-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 0992d19df6fa42f13041f2bb71285a2705b69e9f5fc33b2f573ca45bb4b26bf3
MD5 d1a57fbfbeacbe30ca8e9f1fba823d6c
BLAKE2b-256 8acd14c5e57de63fa1ccc685fa597dfece64344a28a56e995dadaadb75fdc39e

See more details on using hashes here.

File details

Details for the file stock_trek-0.2.5-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.5-cp38-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Algorithm Hash digest
SHA256 14859874c9a58ee06e7663208546f2712432dff47ad8484b127978056a9e2f26
MD5 ef8df506025bc618d9e9a5adfa202ed8
BLAKE2b-256 360a7913f98552a5ba859267fd2ca6b119cdf4dd1c28dedcbeafc9ad2940b094

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