Заказ на фриланс · Скрипты, боты и mini apps › Скрипты
NSE Options Flip Bot Development
- Бюджет: 1 353 ₽ – 11 277 ₽
- Раздел: Скрипты, боты и mini apps › Скрипты
- Опубликован: (МСК)
Project TitlePython Positional Options Trading Bot (Zerodha Kite API) – Dynamic PE/CE Flip, Partial-Fill Chase, PIN-Locked Live Edits & AWS DeploymentProject DescriptionOverviewI am looking for an experienced Python algorithmic trading developer to build, deploy, and test a positional, rule-based options selling and dynamic reversal system for Indian markets (NSE F&O) using Zerodha Kite Connect API.The bot must support running multiple underlyings simultaneously (minimum 2 to 5 independent slots), persist overnight positional trades safely via database state + morning broker reconciliation, enforce PIN + confirmation dialogs for any parameter changes during active trades, and be deployed on my AWS Lightsail (Ubuntu Linux, Mumbai region) server with a Static IP.1. User-Configurable Parameters & PIN-Protected Dashboard (Streamlit)I must be able to configure, monitor, and control each underlying independently from a clean web dashboard:Underlying Instrument: Any NSE Index or Stock — selectable between Spot, Current-Month Futures, or Next-Month Futures (e.g., NIFTY FUT, BANKNIFTY SPOT, RELIANCE FUT).Reference Level (Trigger Price): e.g., 24000Chart Timeframe: Flexible selection from 5-second up to Monthly (5s, 15s, 30s, 1m, 3m, 5m, 15m, 30m, 1h, Daily, Monthly). Default: 3-min.Initial Target Option Premium: Starting option price to sell (e.g., 145).Original Profit Target Premium: Target exit price for the active short option (e.g., 97).Monthly Expiry Cutoff Date: Editable date setting per instrument (default: 11th of the month).Position Sizing: Number of lots / quantity per trade.Execution Mode: Paper Trading Mode (live tick simulation) vs. Live NRML Order Execution.Mandatory Security Guardrail for Mid-Trade Parameter Changes:Any attempt to modify Reference Level, Watched Instrument (Spot / Current Fut / Next Fut), Timeframe, Target Premium, Cutoff Day, Lots, or Paper/Live Mode while an engine/trade is active must:Require entering a 4–6 digit Security PIN.Display a Confirmation Box clearly showing Old Value vs. New Value before saving.Record every parameter change in a permanent Audit Log with exact timestamp, field changed, old value, and new value.Apply the updated reference level/instrument cleanly from the next candle close without disrupting any existing open option leg.2. Core Trading & Positional Strategy LogicA. Strict Candle-Close & Gap-Open RuleEntry and flip conditions must evaluate strictly on exchange-aligned candle close (e.g., 09:18:00 IST for the first 3-minute bar of the session).Regardless of whether the market opens with a gap above or below the Reference Level at 09:15 AM, the bot must wait for the first selected timeframe candle to close before placing an order.B. Monthly Expiry Selection RuleOn or before Cutoff Date ($\le$ configured day, e.g., 11th): Select contracts from the Current Month's Monthly Expiry.After Cutoff Date ($>$ configured day, e.g., 11th): Select contracts from the Next Month's Monthly Expiry.Applies at initial entry and on every subsequent flip.C. Initial Entry & Dynamic PE $\leftrightarrow$ CE Flip LogicInitial Bullish Entry (Candle Close $>$ Reference Level): Scan the active expiry's Put (PE) option chain and SELL the strike whose LTP is nearest to the Initial Target Premium (145).Initial Bearish Entry (Candle Close $ $ Reference Level).D. Profit Target Exit & Manual StandbyTarget Hit: The instant the active short option's live tick LTP drops to or below the Original Profit Target (97), immediately BUY to cover to book profit.Standby State: Once the target is hit, that underlying's cycle ends and moves to Standby until I manually click Re-Arm (protected by PIN confirmation) on the dashboard.3. Order Execution, Partial-Fill Chase & Risk Safeguards3-Stage Order Execution (Partial-Fill Chase):Stage 1: Place NRML Limit order at current LTP.Stage 2 (30-Second Chase): If the full quantity or a partial quantity (e.g., out of 1,000 qty) remains unfilled after 30 seconds, fetch live 5-level market depth (kite.quote()) and modify the pending order to the 3rd Best Ask (for BUY cover) or 3rd Best Bid (for SELL entry).Stage 3: If still pending after 15 more seconds, apply a protective sweep limit buffer so flips and target exits never remain half-executed.Partial-Fill Quantity Rule: On flips, size the reverse leg strictly based on the actual filled quantity of the covered leg.Positional Overnight Persistence & Morning/EOD Reconciliation:Store active legs, exact entry fill prices, and target levels in an SQLite database so state survives overnight restarts or server reboots.Morning Sync & EOD Check: Every morning after daily Kite login, automatically reconcile internal database state against live Zerodha kite.positions() (NRML) so the bot resumes cleanly from where it left off. Perform an End-of-Day (03:35 PM) reconciliation check as well.Pre-Order Margin & Manual Controls:Check available Zerodha margin (kite.margins()) before placing any entry or flip sell order and alert if margin is insufficient.Display live MTM P&L per underlying and total portfolio MTM on the dashboard.Include Per-Instrument Square-Off + global Emergency Kill Switch (Square-Off All & Halt) buttons (with PIN confirmation).4. Telegram Bot Alerts & Health WatchdogTrade & Parameter Alerts: Instant Telegram notifications for every initial entry, PE $\leftrightarrow$ CE flip (showing exact fill prices), target exit, and PIN-authorized mid-trade setting change.Algo Health Watchdog: Automated Telegram alert if:The bot process stops, crashes, or loses WebSocket connection for more than 30 seconds.Daily Zerodha access token is missing/expired after 09:05 AM.An open positional option is within 2 days of monthly expiry.Daily EOD Summary (03:40 PM): Automated Telegram report with open positional legs, realized/unrealized MTM, and broker reconciliation status.5. Server Deployment, 60–72 Hr Live Paper Test & DeliverablesDual-Mode Portability: Must run cleanly on both my Windows laptop and my AWS Lightsail
Похожие заказы
- Платёжный Плагин Wordpress1 000 ₽ – 3 000 ₽ · 02.12.2026
- Настроить интеграцию Parts.ResourcБюджет по договорённости · 02.12.2026
- Настроить интеграцию Parts.Resource2 076 ₽ · 02.12.2026
- Настроить интеграцию Parts.ResourceБюджет по договорённости · 02.12.2026
- Создать полный видео монтаж Claude code500 ₽ · 02.12.2026
- Менеджер отдела реактивацииот 100 000 ₽ · 02.12.2026
- Системный аналитик в Инвестиционное направление (РСХБ-Автоматизация)Бюджет по договорённости · 02.12.2026
- Скрипт регистрации и авторизации на PHP1 000 ₽ – 3 000 ₽ · 02.12.2026