How priyanshuiitghy2006/interiit_quant_jain-streeter works
CTR is a command-line research and backtesting system for systematic BTC/USDT and ETH/USDT strategies. In the principal workflow, an engineer supplies candle data to ctr run; the system cleans and prepares it, analyzes market conditions, verifies causality, runs the selected strategy through the in-house backtest engine, then reports metrics and a next-open decision. The graph also preserves the documented download and data-check capabilities, the two distinct strategies, and the reproducible-results scripts. Several implementation details are unsampled, so those relationships are included only where the README or source index supports them.
Main entry points: pipeline.py Run pipeline · cli.py CLI · run_btc_strategy.py BTC reproduction · market_state.py Market-state framework
Components 23
Entry and data
- CLI
src/system/cli.py - Data ingestion
src/system/ingest.py - Processed data loader
src/data/loader.py - Candle download
src/system/download.py - Run pipeline
src/system/pipeline.py
Signal and risk
- Strategy registry
src/system/strategies.py - BTC strategy
src/strategies/btc_strategy.py - ETH strategy
src/strategies/eth_strategy.py - Market-state framework
src/strategies/market_state.py - Indicators
src/features/indicators.py - Trend features
src/features/trend.py - Trading settings
src/strategies/execution.py
Backtest and results
- Causality evaluation
src/backtest/evaluation.py - Backtest checks
src/backtest/checks.py - Backtest engine
src/backtest/engine.py - Backtest state
src/backtest/structures.py - Performance metrics
src/backtest/metrics.py - Result reports
src/backtest/report.py
Analysis and reproduction
- Market analysis
src/system/analysis.py - BTC reproduction
scripts/run_btc_strategy.py - ETH reproduction
scripts/run_eth_strategy.py
Other components
- Engineer
- Binance
Connections 29
- Engineer → CLI: invokes
README.md - CLI → Run pipeline: runs
src/system/cli.py - CLI → Data ingestion: checks data
src/system/cli.py - CLI → Candle download: downloads
src/system/cli.py - Candle download → Binance: fetches candles
README.md - Run pipeline → Data ingestion: loads and cleans
src/system/pipeline.py - Run pipeline → Market analysis: analyzes
src/system/pipeline.py - Run pipeline → Strategy registry: selects strategy
src/system/pipeline.py - Run pipeline → Backtest checks: verifies
src/system/pipeline.py - Run pipeline → Causality evaluation: evaluates
src/system/pipeline.py - Run pipeline → Performance metrics: computes metrics
src/system/pipeline.py - Run pipeline → Result reports: writes results
src/system/pipeline.py - Strategy registry → BTC strategy: selects BTC
src/system/strategies.py - Strategy registry → ETH strategy: selects ETH
src/system/strategies.py - BTC strategy → Market-state framework: uses market state
src/strategies/btc_strategy.py - ETH strategy → Market-state framework: uses market state
src/strategies/eth_strategy.py - Market-state framework → Indicators: computes indicators
src/strategies/market_state.py - Market-state framework → Trend features: uses trend features
src/strategies/market_state.py - Data ingestion → Processed data loader: prepares strategy data
src/system/ingest.py - Processed data loader → Indicators: derives realized measures
src/data/loader.py - Causality evaluation → Backtest engine: runs backtest
src/backtest/evaluation.py - Backtest engine → Backtest state: uses state types
src/backtest/engine.py - Performance metrics → Backtest engine: reads backtest output
src/backtest/metrics.py - Result reports → Performance metrics: uses benchmark metrics
src/backtest/report.py - BTC reproduction → BTC strategy: runs signal
scripts/run_btc_strategy.py - BTC reproduction → Processed data loader: loads candles
scripts/run_btc_strategy.py - BTC reproduction → Result reports: writes results
scripts/run_btc_strategy.py - ETH reproduction → BTC reproduction: reuses runner
scripts/run_eth_strategy.py - ETH reproduction → ETH strategy: selects ETH signal
scripts/run_eth_strategy.py