Cloud-Based Options Trading Bot

Job ID: 40056071

Budget: ₹12,500 – ₹37,500 INR

Project: Automated Intraday Options Trading Bot (Samco Scraper → Groww API → Groww Cloud)

I am looking for an experienced Algo Trading Developer to build a fully automated intraday index options trading bot that:

Scrapes Samco intraday option recommendations (Samco provides no official API)

Executes all trades automatically using the Groww API

Runs 100% unattended on Groww Cloud (my local system does NOT need to stay on)

Implements strong risk management and continuous reconciliation

Uses simple JSON-based state storage (NO database required)

This is a production-grade, single-user trading system.

1. Samco Signal Scraping (VERY IMPORTANT)

Samco does not provide an official API. Signals appear here:

https://web.samco.in/dashboard/reco/%7B%22title%22:%22Index%20Options%20to%20Buy%20Today%22,%22root%22:%22Dashboard%22%7D/22/OPT/open

Developer must follow this approach:

Step 1 – Try to extract XHR/JSON endpoints (preferred)

Inspect Samco website using Chrome DevTools

Identify internal JSON API calls for intraday recommendations

Reproduce them using Python requests + session cookies

If this works → NO browser automation needed

Entire bot runs inside Groww Cloud

Step 2 – If XHR is not available → Use Playwright scraper

Headless Playwright must extract signals from the Samco page

Maintain logged-in session using saved browser context

Scraper outputs clean JSON

If Playwright is required, I will provide a lightweight VPS for scraper deployment.

Final scraper must output structured JSON, for example:
{
"signal_id": "unique123",
"symbol": "NIFTY",
"option_type": "CE",
"strike": 25000,
"expiry": "2025-10-02",
"entry": 55,
"target": 100,
"stoploss": 30,
"timestamp": "2025-10-05T09:25:00"
}

2. Groww API Integration

Bot must handle:

Market / Limit BUY entries

SL-M or Limit exits

Modify/cancel orders

Detect partial fills

Detect and handle manual exits from Groww

Fetch orderbook, positions, P&L

Auto-refresh Groww API tokens

Prevent duplicate trades using idempotent client-order-IDs

3. User Inputs (Configurable)

User should be able to define:

Max capital per day

Max loss per day

Max profit per day

Max loss per trade

Slippage tolerance (%)

Entry order type: Market / Limit

Exit order type: Market / Limit

Bot will:

Auto-calculate lot size from max loss per trade

Enter multiple trades until capital cap is reached

Reuse capital after each trade closes

Stop taking trades when capital limit is reached

4. Universal Risk Management (NO Trailing Stoploss)
✔ Max Daily Loss Rule

If daily loss hits threshold → exit all trades → stop bot for the day.

✔ Max Daily Profit Rule

If profit hits target → exit all trades → stop bot for the day.

✔ Manual Stop

If user stops bot → no new trades, and bot should not touch existing positions.

✔ Manual Exit Detection

Bot must detect when user exits a trade manually in Groww and must not attempt an exit again.

5. Continuous Reconciliation Engine

Bot must continuously:

Compare internal state vs Groww positions

Detect partial fills

Detect manual exits

Prevent duplicate entries/exits

Rebuild internal state after restart using Groww API data

No database needed

Use simple JSON files for:

Last processed signal

Bot status

Daily capital used

Daily P&L

☁️ 6. Deployment Requirements

Developer must:

Deploy the trading bot on Groww Cloud

Use environment variables for sensitive data

Ensure automatic restart on crash

Provide logs + documentation

Support for 1 week after deployment

If Playwright is required, scraper will run on a VPS and send JSON signals to Groww Cloud.

7. Security Requirements

API keys/tokens must be encrypted before storing

No sensitive data in logs

HTTPS for all broker communication

JSON state files must be internally accessible only

8. Deliverables

Samco scraper (XHR preferred; fallback Playwright)

JSON signal generator

Groww execution engine

Universal risk manager

Continuous reconciliation loop

Configuration file/UI

Deployment on Groww Cloud

1-week support after final delivery

9. Developer Requirements

You must have:

Strong Python experience

Prior algo trading bot development

Experience with Groww/Dhan/Zerodha/Upstox APIs

Experience scraping websites without public APIs

Experience with Playwright (fallback)

Cloud deployment experience