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:
- Access requirements or eligibility criteria.
- Features supported (e.g., historical data, order simulation, latency).
- 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:
- Only certain endpoints currently support sandbox mode (e.g., Place Order V3, Modify Order, etc.).
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