The Dhan API exposes Nifty quotes, option chains, and historical bars. Authenticate with your API key, request the Nifty index and its option chain per expiry, and store the response. The data engine then computes atm_iv, pcr_strikes, oi_buildup and max_pain daily. Always respect rate limits and cache responses to avoid re-pulling.
For ML, align timestamps, lag features by one bar versus the next-day direction label, and emit a tidy parquet. The same pipeline works for Bank Nifty by switching the underlying symbol. Document the schema so walk-forward backtests stay reproducible. Never train on cached future bars.
Q: Which API gives Nifty chain?
A: Dhan API exposes quotes, chains and history for Nifty and Bank Nifty.
Q: How do I avoid leakage?
A: Lag features one bar versus the next-day label; never use future bars.
Q: What to compute daily?
A: atm_iv, pcr_strikes, oi_buildup, max_pain, vix_india.
Q: Any rate-limit tips?
A: Cache responses and respect limits; re-pull only what changed.
📞 Free Nifty Options AI help & resources — WhatsApp: 9169650895
By Shakti Tiwari · Options AI research pillar. NISM XII certified. Educational only, not investment advice; verify before acting.