I have built an Algo Trading application based on the Upstox API documentation. When I run the application individually, it works fine and places orders successfully.
However, when both my friend and I run the same application on different systems using different tokens, only the person who starts the application first is able to place orders. The other application is unable to place any orders.
This is how individual apps function — if your friend also wants to run the same algo, they will need to create a separate algo app and generate a new access token.
Each app can have only one valid access token at a time.
If a new access token is generated, the previous one automatically expires.
For more details, please refer to the official Upstox Developer Documentation: Upstox API Authentication