Deepanjalk/Delta.Exchange-automation-strategy-1 — reverse-engineered prompt
Reverse engineered prompt
Build me a Python trading bot for Delta Exchange that can run an intraday crypto options strategy. I want it to use Delta’s native REST API with proper authenticated requests, read my API key and secret from environment variables, and give me a simple menu when I start it so I can choose live trading, backtesting, or exit.
The strategy should find the at the money strike, create a straddle from the call and put, and use Supertrend with settings 10, 3 to decide what to do. It should check signals every 15 minutes, do the daily reset around 5:30 PM IST, identify the strike around 5:35 PM IST, and manage positions automatically. If the trend turns bearish it should create the straddle, if it turns bullish it should close the losing leg, and if needed rebuild the straddle.
Please include basic safety rules like max 3 trades per day, retries, error handling, logging, and closing positions on serious errors. Also make sure there is a backtest mode using historical data. If anything is unclear, check Delta Exchange docs online.
Want more depth? Deep Reverse