OpenStockEngine 🚀
Next-Generation Algorithmic Trading Framework (Rust Core + Python Strategy Layer)
🌟 Key Features
- Hybrid Architecture: Ultra-fast, memory-safe Rust Core + Flexible Python Strategy Layer.
- Zero-Copy Event Bus: Lock-free MPMC queue powered by
crossbeam-channelhandling >1M events/second. - Deterministic Risk Engine: Hard risk stops, portfolio accounting (FIFO & VWAP), position sizing.
- Ecosystem Ready: First-class integration with
OpenStockAPI,OpenStockConnector,OpenStockStudio, andOpenStockVisual. - Asset Agnostic: Support for VN Stock (lot 100, T+2), Crypto (Binance Spot/Futures), Forex, and US Stock.
- WebSocket Streaming: Push real-time events to
ws://localhost:8090for Studio visualization and CLI dashboards.
⚡ Quick Start
1. Installation
pip install openstock-engine
2. Development Setup
# Build Rust crates and Python extension locally
maturin develop --release
3. Example Strategy
from openstock_engine import Strategy, Bar
class SimpleMACrossover(Strategy):
def initialize(self):
self.fast_period = 5
self.slow_period = 20
def on_bar(self, bar: Bar):
# Your trading logic here
pass
📚 Documentation
Detailed documentation and roadmap are available in the Docs/Developement_plan/ directory:
Metadata
Release files for openstockengine 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| openstockengine-0.1.1.tar.gz | 341.4 kB | Without provenance | Details for openstockengine-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| openstockengine-0.1.1-cp310-abi3-win_amd64.whl | CPython 3.10 | abi3 | Windows x86-64 | Details for openstockengine-0.1.1-cp310-abi3-win_amd64.whl |
Total release size: 845.6 kB
Release files / openstockengine-0.1.1.tar.gz
| Download URL | openstockengine-0.1.1.tar.gz |
|---|---|
| Size | 341.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e274941d8ac092c7753136899e4158281340e67aabb0d0bfc5f8e33b4596d65f
|
|
BLAKE2b-256 checksum How to use checksums |
4e9f88944d78e214d13bc6493ba8ec04dc8af044ddde8a092c638591ac5d2934
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.14.1
|
Release files / openstockengine-0.1.1-cp310-abi3-win_amd64.whl
| Download URL | openstockengine-0.1.1-cp310-abi3-win_amd64.whl |
|---|---|
| Size | 504.2 kB |
| Tags | CPython 3.10 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
345ffc638e78044dc2d9326596002c35932b748f9aa8d3d9e62b0a3aa870fe27
|
|
BLAKE2b-256 checksum How to use checksums |
ede3cfd1848a0390f4c4d96fb443afa54cc6972d5502cecc8ae79b29f25a2cf9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.14.1
|
Security for openstockengine 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.