Algo Trading Strategy in Python through Kotak Securities API

Job ID: 34178464

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

I need a simple algo written in Python for Kotak securities API, wherein the algo trades in an account based on a position created in a separate trading account with the same broker.

For eg., there are 2 accounts: Account A (Main) and Account B (Follower).
If Account A creates a long position in BankNifty 36000 CE (28 Jul 2022 expiry) at 9.30 AM, the algo should create a long position in 36000 PE Banknifty (28 Jul 2022 expiry) at the same time instantaneously, thereby resulting in a running straddle (36000 CE long + 36000 PE long).

2 inputs required in follower account:
Variant 1: Follower account creates straddle position (Put long if Main Account creates Call long)
Variant 2: Follower account creates same position (Call long if Main Account creates Call long)

There won't be a need for margin checks or error handling, as it is simply checking for a position in account A and creating the same one in account B (entry and exit timing should match).