rangebar-cli
Command-line tools for range bar processing, analysis, and validation.
Overview
rangebar-cli consolidates all command-line binaries for the rangebar workspace. Provides tools for symbol discovery, data validation, range bar export, benchmarking, and analysis.
Available Tools
tier1-symbol-discovery
Discover Tier-1 cryptocurrency symbols across Binance markets:
# Comprehensive output with market matrix
# Minimal output (symbols only)
Output: 18 Tier-1 symbols available across spot, UM futures, and CM futures markets.
data-structure-validator
Validate Binance aggTrades data structure across markets:
# Validate all Tier-1 symbols across spot/um/cm markets
# Validate specific markets
# Custom date range
Features:
- Cross-market schema detection (spot vs futures differences)
- Timestamp precision validation (16-digit μs vs 13-digit ms)
- SHA256 checksum verification (optional)
- Parallel processing with configurable workers
rangebar-export
Export range bars from aggTrades data:
# Export BTCUSDT spot market (default)
# Export UM futures market
# Threshold: 250 units × 0.1 BPS = 25 BPS = 0.25%
Output: CSV files with OHLCV data and enhanced metrics (trade counts, turnover, etc.).
spot-tier1-processor
Batch processor for all Tier-1 spot symbols:
# Process all 18 Tier-1 symbols in parallel
# Custom parallelism
Features:
- Parallel execution using Rayon (default: 8 workers)
- Comprehensive execution statistics
- JSON metadata with symbol performance rankings
- Automatic output file naming
polars-benchmark
Benchmark Polars integration performance:
Tests:
- Parquet export (70%+ compression target)
- Arrow IPC export (zero-copy Python)
- Streaming CSV export (2x-5x speedup target)
- General Polars performance
temporal-integrity-test-only
Validate temporal integrity of Polars conversions:
Validates:
- Monotonic timestamp ordering
- DataFrame operation safety
- Export readiness without round-trip conversion
rangebar-api
RESTful API server for range bar processing (future):
Tool Categories
Discovery & Validation
tier1-symbol-discovery- Symbol discoverydata-structure-validator- Data validation
Processing & Export
rangebar-export- Single symbol exportspot-tier1-processor- Batch Tier-1 processing
Testing & Benchmarking
polars-benchmark- Performance benchmarkstemporal-integrity-test-only- Temporal validation
Services
rangebar-api- REST API server
Common Flags
All tools support standard flags:
Dependencies
rangebar-cli uses all workspace crates:
- rangebar-core - Core algorithm
- rangebar-providers - Data providers
- rangebar-config - Configuration
- rangebar-io - Export formats
- rangebar-streaming - Streaming processing
- rangebar-batch - Batch processing
Version
Current version: 5.0.0 (modular crate architecture)
Documentation
- Architecture:
../../docs/ARCHITECTURE.md - Examples:
../../examples/ - Each tool has comprehensive
--helpdocumentation
License
See LICENSE file in the repository root.