Python Straddle Trading Bot

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

I need a Python-based algorithm that will trade straddles on Delta Exchange (India) around-the-clock, pausing automatically between 17:00 and 18:00 IST each day. The logic is straightforward: • Strikes must be chosen so the combined premium sits between ₹1,000 and ₹1,200. • Every five minutes the bot compares the current price to the previous one-hour range.  – If price breaks above that one-hour high, it buys a straddle and trails the position until price pierces the previous one-hour low.  – If price breaks below the one-hour low, it sells a straddle and trails profits until price climbs back above the previous one-hour high. I prefer the whole workflow in clean, well-commented Python. Because I don’t yet have live access to Delta Exchange market data, part of the job is helping me obtain and wire up whatever REST or WebSocket API credentials are required. After that, the script should: connect to the feed, place orders, maintain a simple trailing-stop engine, store basic logs (CSV/SQLite is fine), and expose a few configuration variables (premium range, pause window, position size) so I can tweak them without touching the code. Deliverables • Python source file(s) with clear setup instructions • Helper module or class that wraps Delta Exchange’s API (order placement, streaming prices) • Minimal README explaining environment setup, config options, and how to start/stop the bot I will test the bot in a paper-trading environment first; final acceptance happens once the entries, exits, and daily pause behave exactly as described.