Python Zerodha EMA Trade Bot

Заказчик: AI | Опубликовано: 19.03.2026

I want my Zerodha account to fire orders automatically whenever my chosen Exponential Moving Averages cross. The script must pull live market data through Kite Connect, calculate the EMA values I configure (for example 9- and 21-period, though I’d like these to stay adjustable in a simple settings file), and place, modify, or exit orders without manual intervention. Core flow • Authenticate to my Zerodha account securely at the start of each session. • Stream tick-by-tick data, calculate EMAs in real time, and identify bullish or bearish crossovers as the single trading signal. • Execute the corresponding market or limit order instantly and log the action (symbol, price, timestamp, quantity) in a local CSV or SQLite DB. • Include basic risk controls—position sizing per trade, max open positions, and a day-stop toggle—so I can edit them easily. • Send a quick Slack or Telegram alert after each filled order so I have a live audit trail. Acceptance criteria 1. A Git repo with clean, commented Python 3 code that I can run from the command line. 2. A README explaining setup with my own Kite API key, plus instructions for changing EMA periods and risk parameters. 3. A short video or live demo proving a mock trade went through on the Zerodha sandbox (or live if you prefer). 4. Delivered within five working days from project start. If you already have experience with Zerodha’s APIs, pandas, and websocket streaming, this should be straightforward. I’ll test the bot on my end, sign off once the trade log and alerts match the crossover events exactly, and then release the milestone.