rangebar-batch
High-throughput batch analytics engine with parallel multi-symbol analysis.
Overview
rangebar-batch provides batch processing capabilities for historical range bar analysis with parallel execution via Rayon. Optimized for research, backtesting, and comprehensive market analysis across multiple symbols.
Features
- Parallel Processing: Multi-symbol analysis using Rayon thread pool
- Comprehensive Statistics: Price, volume, and trade count analytics
- Multi-Symbol Support: Analyze entire market segments simultaneously
- High Throughput: Scales linearly with CPU cores
- In-Memory Operations: Fast processing with full dataset in memory
Usage
Single Symbol Analysis
use BatchAnalysisEngine;
let engine = new;
let report = engine.analyze_single_symbol?;
println!;
println!;
println!;
Multi-Symbol Analysis
use BatchAnalysisEngine;
use HashMap;
let engine = new;
// Prepare multi-symbol data
let mut data: = new;
data.insert;
data.insert;
data.insert;
// Parallel analysis
let reports = engine.analyze_multiple_symbols?;
for report in reports
Analysis Reports
Tier-1 Batch Analysis
Use rangebar-analyze binary for comprehensive Tier-1 symbol analysis:
This processes all 18 Tier-1 symbols in parallel with detailed statistics.
Performance Characteristics
- Memory Usage: O(N) for N bars - full dataset in memory
- Throughput: High (multi-threaded Rayon parallelism)
- Parallelism: Scales linearly with CPU cores (uses N-1 cores)
- Use Case: Historical backtesting, research, multi-market analysis
Batch Configuration
Comparison: Batch vs Streaming
| Feature | Batch | Streaming |
|---|---|---|
| Memory Usage | Unbounded | Bounded |
| Throughput | High | Moderate |
| Parallelism | Multi-threaded (Rayon) | Single-threaded |
| Real-time | No | Yes |
| Use Case | Historical analysis | Live trading |
Integration with Polars
rangebar-batch integrates with rangebar-io for DataFrame operations:
use PolarsExporter;
// Export analysis results to Parquet
let exporter = new;
exporter.export_parquet?;
Dependencies
- rangebar-core - Core algorithm and types
- rangebar-io - Polars integration
- rayon - Parallel processing
- serde - Serialization support
Version
Current version: 5.0.0 (modular crate architecture)
Documentation
- Architecture:
../../docs/ARCHITECTURE.md - CLI tool: Run
rangebar-analyzebinary
License
See LICENSE file in the repository root.