Broker guide
Upstox
Your Servloci allocation is ready. Complete broker whitelisting and verification before using it for live orders.
API setup questions
Answers checked on 4 October 2026. Follow the linked broker documentation for current terms.
How do I set a static IP for the Upstox API?
Open My Apps, choose your Algo Trading App and open Static IPs. Configure your primary address and optional secondary address, then route order traffic through a registered address. Upstox says IP changes are limited to once per week and invalidate the existing access token; authenticate again after a change.
What are the Upstox API rate limits?
For regular algos, the combined order-placement group (place, modify, cancel, multi-order and GTT) allows 10 requests/second, 500/minute and 2,000/30 minutes. Registered algos have a 50/second limit with the same longer windows. Other standard APIs have 50/second, 500/minute and 2,000/30 minutes. Enforce every applicable window, not just the per-second cap.
How do I get an Upstox access token?
Use the documented login flow to obtain an authorization code, then exchange it on your backend for an access token. The app key, authorization code and access token are different values. Keep the app secret and token out of browser code and logs. Re-authenticate when the token expires or is invalidated.
Prerequisites
- Create or select the correct Algo Trading App in Upstox My Apps.
- Confirm the Servloci egress test matches the IPv6 assigned to this account.
- Use remote DNS through SOCKS5 so the request retains api.upstox.com as its destination.
Individual-account instructions
- Open My Apps, choose the Algo Trading App, then open Static IPs.
- Set the assigned IPv6 as the primary or secondary address and save.
- Generate a fresh access token if Upstox invalidates the existing token after the IP change.
- Run a non-order API check before enabling live order placement.
Family instructions
- Do not reuse one app/IP approval for an unrelated trading identity.
- Use a separately approved app and allocation where the account relationship requires it.
Servloci proxy configuration
curl -s --socks5-hostname PROXY_USER:PROXY_PASS@comm.servloci.in:1080 https://api6.ipify.orgAllow the route to proceed only when the observed address matches the allocation shown in the portal.
Common errors
- The IP was updated but the bot kept using an access token invalidated by that change.
- The client used local DNS and sent a raw destination IP instead of api.upstox.com.