Dhan API + websocket algo -- 2
Budget: ₹600 – ₹1,500 INR
I need a clean, production-ready Python script that plugs into the Dhan API and its WebSocket feed to automate a single intraday play on the current-week NIFTY PE that is three strikes in-the-money (ATM-3). The strike must be picked using the ATM-3 premium itself rather than the spot or futures price.
Logic
• ema + time based logic
• Stop-loss 10 % and target 20 % must be attached instantly. and time based universal exit
• If another position exists in the account the strategy simply ignores it and proceeds with its own rules—no forced square-off or alerting.
Implementation notes
The solution has to rely on Python 3.x, leverage Dhan’s REST endpoints for order placement, and keep WebSocket streaming alive for real-time pricing and stop-loss/target management. Please structure the project so I can run it on dhan and drop in my own API keys. A concise README covering environment setup and a test run for one live session will complete the delivery.
I will consider the job done when the script triggers exactly as specified, places orders with the correct risk parameters, and exits on either stop or target without manual intervention.
Logic
• ema + time based logic
• Stop-loss 10 % and target 20 % must be attached instantly. and time based universal exit
• If another position exists in the account the strategy simply ignores it and proceeds with its own rules—no forced square-off or alerting.
Implementation notes
The solution has to rely on Python 3.x, leverage Dhan’s REST endpoints for order placement, and keep WebSocket streaming alive for real-time pricing and stop-loss/target management. Please structure the project so I can run it on dhan and drop in my own API keys. A concise README covering environment setup and a test run for one live session will complete the delivery.
I will consider the job done when the script triggers exactly as specified, places orders with the correct risk parameters, and exits on either stop or target without manual intervention.
Related categories:
PHP
JavaScript
Python
Software Architecture
Financial Analysis
API
Data Analysis
Pandas