UAT/Sandbox Environment for Strategy Testing with Live Data

I wanted to inquire whether Upstox provides a UAT (User Acceptance Testing) environment or a Sandbox for testing trading strategies with live real-time market data in a virtual setting.

If such an environment is available, could you kindly share details on:

  1. Access requirements or eligibility criteria.
  2. Features supported (e.g., historical data, order simulation, latency).
  3. Any limitations or costs involved.

Yes, Upstox does provide a sandbox environment for developers to test their trading strategies and API integrations safely. Sandbox | Upstox Developer API

  • The sandbox mimics the live API closely, allowing full order flow testing (Place, Modify, Cancel).

  • It’s free to use and doesn’t have live market time restrictions.

  • You can simulate trades end-to-end without risking real money.

However, a few things to keep in mind:

Running a complete trading application using sandbox alone can be tricky : once you initialize the Upstox client or configuration with sandbox=True, the entire instance behaves in sandbox mode for that session. Even if you later switch flags or change tokens, some internal settings (like host or order_host) may still point to the sandbox environment unless explicitly reset. This can lead to unexpected behavior, especially if you’re toggling between live and sandbox dynamically.

More Can Be Read About this on this Thread - Sandbox Not Working in Python SDK Execution - Developer API - Upstox Community

I have designed my app with such workarounds which I use to test my application completely on LIVE market and in SANDBOX Mode.

2 Likes

Thanks a lot sir, I will check on the Sandbox.Appreciate your support.

1 Like