Developer Shares How to Wire NIFTY ML Models to Live Broker Data via Dhan API
A developer has published technical notes on building a production-grade machine learning trading dashboard using the Dhan broker API for NIFTY options data. The setup uses Dhan's option chain endpoints to fetch live data including implied volatility, open interest, and Greeks for underlying indices like NIFTY and BANKNIFTY. An XGBoost model runs inference on each new price bar to score contract quality and determine entry readiness, with the inference path kept deliberately separate from order execution. The author warns of a known pitfall with Stop-Loss Limit orders and recommends running the system in paper trade mode before going live. The post is framed as a research exercise, with the author noting the ML model achieved 60.5% top-decile directional accuracy and explicitly advising readers to address SEBI compliance requirements before any live trading.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in