ChartsMaze EDL Pipeline
Single command. Complete market intelligence. The ChartsMaze EDL (Extract, Data, Load) Pipeline is a production-grade data aggregation platform that transforms scattered Indian stock market data into a unified, analysis-ready JSON artifact. Built on Dhan ScanX APIs, it processes 2,775+ stocks across 6 pipeline phases to deliver comprehensive fundamental, technical, and event-driven insights.What It Does
Run one command:- Quarterly financial results (Net Profit, EPS, Sales, OPM)
- Valuation ratios (P/E, PEG, ROE, ROCE, D/E)
- Technical indicators (RSI, SMA/EMA status, Pivot Points)
- Price performance (1D/1W/1M/3M/6M/1Y returns, % from 52W High/Low, ATH)
- Volume analytics (RVOL, 20/50/100-day turnover, ADR)
- Corporate events (Dividends, Bonus, Splits, Results)
- Regulatory filings (Top 5 recent announcements with PDF links)
- Real-time news feed (AI sentiment analysis)
- Event markers (ASM/GSM surveillance, Insider Trading, Block Deals, Circuit revisions)
Key Features
Smart Incremental Updates
OHLCV data fetches only new/changed records. First run: ~30 min. Subsequent runs: ~2-5 min.
Zero Configuration
No API keys. No database setup. Works out of the box with Dhan’s public endpoints.
Dependency-Aware
Strict 6-phase execution order ensures data integrity.
master_isin_map.json flows through 16+ scripts.Auto-Cleanup
Keeps only
.json.gz + ohlcv_data/ after completion. Intermediate files purged automatically.Pipeline Architecture
The pipeline executes in strict dependency order:Phase Breakdown
PHASE 1: Core Data (Foundation)fetch_dhan_data.py→ Fetches 2,775 stocks, producesmaster_isin_map.json(critical dependency)fetch_fundamental_data.py→ Quarterly results & ratios for all stocks
- Company filings (Hybrid: LODR + Legacy endpoints)
- Live announcements, Advanced indicators (Pivot, EMA, SMA)
- Market news (AI sentiment), Corporate actions (History + Upcoming)
- Surveillance lists (ASM/GSM), Circuit stocks, Bulk/Block deals
- Price bands (Incremental + Complete)
fetch_all_ohlcv.py→ Lifetime daily candles (auto-detects existing data, fetches delta only)fetch_indices_ohlcv.py→ Index data (specialized high-speed endpoint)
bulk_market_analyzer.py→ Buildsall_stocks_fundamental_analysis.json(BASE structure)
advanced_metrics_processor.py→ Adds ADR, RVOL, ATH, Turnoverprocess_earnings_performance.py→ Adds post-earnings returnsenrich_fno_data.py→ Adds F&O flag, Lot Size, Next Expiryprocess_market_breadth.py→ Market-wide analyticsadd_corporate_events.py→ Adds Event Markers, Announcements, News Feed (MUST BE LAST!)
- Compress to
.json.gz(typically ~10 MB, 85-90% compression ratio)
- Standalone data: Indices, ETFs (not included in master JSON)
Output Schema
Each stock inall_stocks_fundamental_analysis.json.gz contains:
Identity & Classification
Fundamentals (Quarterly)
Technical Indicators
Volume & Liquidity
Event Markers
Recent Announcements
News Feed
Get Started
Quickstart
Run your first pipeline in 5 minutes
Pipeline Architecture
Understand the 4-phase pipeline design
API Reference
Complete endpoint documentation
API Reference
Endpoint details, payloads, and rate limits
System Requirements
- Python: 3.8+
- Dependencies:
requests(only external dependency) - Storage: ~500 MB for full OHLCV history, ~10 MB for compressed output
- Network: Stable internet (uses Dhan public APIs, no auth required)
- Runtime:
- First run (with OHLCV): ~30-40 minutes
- Incremental runs: ~4-6 minutes
- Without OHLCV: ~3-4 minutes
Real-World Performance
Typical output from a full pipeline run:Use Cases
- Screeners: Build custom stock screeners with 86+ filter fields
- Backtesting: Historical OHLCV + fundamentals for strategy validation
- Alerts: Event-driven triggers (Results, Dividends, ASM additions)
- Dashboards: Real-time market breadth, sector analytics
- Research: Correlate corporate actions with price performance
- Compliance: Track surveillance list changes, insider trading events
Next Steps
Run the Pipeline
Follow the Quickstart to execute your first full data refresh
No API Keys Required: All endpoints use Dhan’s public APIs. No authentication, no rate limits (respectful usage assumed).