Automated Python Trading Risk Management System

Job ID: 39822529

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

Must know hindi and Indian Market
I am looking for a Python developer experienced in stock market APIs (preferably DhanHQ, Zerodha, or similar Indian broker APIs) to build a fully automated trading kill switch system.

The system should automatically monitor my account’s live P&L and order activity, and enforce strict daily risk management rules without any manual interference.
Skills Required

Strong experience in Python

Prior work with trading APIs (DhanHQ / Zerodha Kite / Angel One, etc.)

Knowledge of risk management automation

Experience with Telegram/Email API integration

2)Daily Capital-based loss limit(10K-20K,20K-30K,30K-40 etc)

Lower Bound (₹) Upper Bound (₹) Max Daily Loss (₹)
10,000 20,000 1,500
20,000 30,000 2,000
30,000 40,000 2,500
40,000 50,000 3,000
50,000 60,000 3,500
60,000 70,000 4,000
70,000 80,000 4,500
80,000 90,000 5,000
90,000 1,00,000 5,500
1,00,000 2,00,000 6,000
2,00,000 3,00,000 6,500
3,00,000 4,00,000 7,000
4,00,000 5,00,000 7,500
5,00,000 6,00,000 8,000
6,00,000 7,00,000 8,500
7,00,000 8,00,000 9,000
8,00,000 9,00,000 9,500
9,00,000 10,00,000 10,000
10,00,000 11,00,000 10,500

2)Daily Capital-based profit limit

Lower Bound (₹) Upper Bound (₹) Max Daily profit (₹)
10,000 20,000 1,500
20,000 30,000 2,000
30,000 40,000 2,500
40,000 50,000 3,000
50,000 60,000 3,500
60,000 70,000 4,000
70,000 80,000 4,500
80,000 90,000 5,000
90,000 1,00,000 5,500
1,00,000 2,00,000 6,000
2,00,000 3,00,000 6,500
3,00,000 4,00,000 7,000
4,00,000 5,00,000 7,500
5,00,000 6,00,000 8,000
6,00,000 7,00,000 8,500
7,00,000 8,00,000 9,000
8,00,000 9,00,000 9,500
9,00,000 10,00,000 10,000
10,00,000 11,00,000 10,500


2) Kill Switch Logic
Once trigger is hit, system must:
Exit all open positions immediately
Block new orders for the rest of the trading day
State should be saved on a server / remote storage, not only on local PC.

3) Override (Strict, Not Easy to Misuse)

Any manual override should:

Require 24-hour time-lock before activation, OR

Require two-person approval (co-signer) via Telegram/Email, OR

Be secured via 2FA + logging.

No instant override allowed by me to avoid emotional trading.

Tech Requirements

Language: Python

Broker API: DhanHQ (I will provide access token & client ID)

Logging: All actions (P&L check, exits, kills, overrides) must be logged with timestamp.

Alerts: Telegram/Email alerts when kill switch triggers or resets.

Configurable via .env file (limits, tokens, Telegram credentials).

4) Next-Day Auto Reset

5) Dashboard (Optional, Bonus)

Simple web dashboard (Flask/Streamlit) showing:

Current P&L

Capital-based loss limit

Kill switch status (ON/OFF)

Next reset time

Delivery expected within 7–10 days including testing.