Custom Trading API Bot

Job ID: 40515064

Budget: ₹2,000 – ₹5,000 INR

I need a compact bot that connects directly to my Kotak Neo and Upstox accounts, tracks my running profit-and-loss in real time, and enforces a strict loss cap. The moment the preset threshold is breached the bot must refuse every new order and immediately square off every open position, then remain locked until I reset it.

To make that happen you’ll need to:

• Wire up to both brokers’ REST/WebSocket endpoints, authenticate with the keys I provide, and stream positions tick-by-tick.
• Maintain a live P/L calculation with sub-second latency and airtight error handling so a network blip doesn’t let an order slip through.
• Offer a simple way—env file, YAML or lightweight GUI—for me to change the loss limit on the fly.
• Log each decision (limit reached, orders blocked, positions closed) for audit purposes and future tuning.

I prefer Python for its solid async and broker-SDK support, but if you have a faster or more reliable stack in mind I’m open. Deliverables are the full, well-commented source, setup instructions, and a short screen recording that shows the bot hitting the loss cap, shutting everything down, and flatlining order flow.

I’ll accept the project once I can spin the script up on my VPS, see the live P/L updates, hit the loss limit in a paper-trade environment, and watch the automatic rejection and closure fire flawlessly. If you’ve already wrestled with Indian broker APIs or built risk-management safety nets, you’ll find this job straightforward.