Nifty Option Premium Algo

Замовник: AI | Опубліковано: 28.02.2026

I need an automated strategy that watches Nifty option prices in real-time and fires a market order the moment an option’s premium trades at more than 20 % of the Nifty spot price. The logic is simple: • If a call option’s premium crosses the 20 % threshold, buy that call. • If a put option’s premium crosses the same threshold on the opposite side, buy that put. Key environment details • Broker/API: Dhan (orders must be routed through the Dhan API, including authentication, position management and order status checks). • Data: use the broker’s own live feed for both the underlying index price and option premiums—no third-party data. • Platform: I entered “Indian stock” in the form, meaning I’m flexible on the actual tech stack as long as the solution runs reliably in the Indian market (Python with REST/websocket is fine, but I’m open to any language you can support). Acceptance criteria 1. A fully commented script or executable that connects to Dhan, streams live prices and executes the above entry rule automatically. 2. A configuration file or clear section in the code where I can adjust the 20 % threshold and contract specifications. 3. Basic logging of each signal, order, fill and error so I can audit trades. 4. A quick demo session (screen share or recorded video) showing the algo picking up live data and placing at least one test trade in paper or live mode. If you have prior experience with Dhan or other Indian brokers, that will accelerate things, but I’m open to any efficient approach you propose.