While25 - Programmable Trading Platform
Home
SDK
BlogCardsSupportDownload
While25

A programmable trading platform.

Download While25Book a call

Order managementRisk managementChartsAI assistantCompare

Python SDKSDKDownload

AboutBlogWhile CardsCareersSupportContact

Interactive BrokersAlpacaZerodhaUpstoxAll brokers

TermsPrivacyLicenceRiskAIAcceptable useNotices

While25 is software. It is not a broker, dealer, exchange or investment adviser, and nothing on this site is a recommendation to buy or sell any instrument. Orders you place route to your own brokerage account; While25 never holds funds or securities.

Trading carries risk of loss, including losses greater than your deposit on leveraged products. Backtests and simulations do not predict future returns. Broker and exchange names are trademarks of their owners. We plan to add Coinbase, Binance and Robinhood; you cannot connect them yet.

© 2026 While25

while25
Connect a brokerUpstox logo

Upstox

An OAuth app in your Upstox account gives you a key and a secret. You approve the login once a day.

About 5 minutes · Moderate · Free with an Upstox account · An API key and an API secret

Before you start

  • An active Upstox account, with 2FA set up on the app you sign in with.
  • The redirect URL While25 listens on, http://127.0.0.1:8000/callback/. You register exactly that.
  • There is no paper mode. While25 connects your real Upstox account, so keep sizes tiny until you trust the setup.
  1. 01

    Open the developer app portal

    Go to account.upstox.com/developer/apps ↗, signed in as yourself. There is no separate developer signup.
  2. 02

    Create an app

    Press New app and fill in a name, a short description and the redirect URI: http://127.0.0.1:8000/callback/. It must match later, exactly.
    account.upstox.com/developer/appsNew appApp nameWhile25 Desktop1Redirect URIhttp://127.0.0.1:8000/callback/2DescriptionoptionalPostback URLoptionalCreate app3
    1 · Any name. 2 · Where the login returns. Character for character. 3 · Create.
  3. 03

    Copy the key and the secret

    The app page shows an API key (the OAuth client_id) and an API secret (the client_secret). Copy both.
    account.upstox.com/developer/appsWhile25 Desktop · appAPI key (client_id)xxxx-xxxx-xxxx1API secret (client_secret)••••••••••••••••2StatusActive
    1 · The key. 2 · Reveal and copy the secret.
  4. 04

    Approve the login

    Plain OAuth 2.0. While25 opens the Upstox authorisation dialog, you sign in and approve, and a single-use code comes back to your redirect URI. While25 swaps it for an access token behind the scenes.

    The access token expires at 3:30 AM IST whenever it was issued, and there is no refresh token. Approve once each trading morning.

    The daily approval1 · Authorisation dialogyou approve2 · codesingle use, 5 minutes3 · access_tokenvalid until 3:30 AM IST
    The code is short-lived; the token lasts the trading day.
  5. 05

    Connect in While25

    Open While25 Desktop and choose Upstox on Select your data source. Paste the key and the secret, keep the redirect URL as shown, and press Sign in with Upstox. Approve in the browser and While25 carries on by itself.

What you copied

API key
The OAuth client_id. Public, identifies your app.
API secret
The OAuth client_secret. Private, used to swap the code for a token.
Redirect URI
Must match the registration exactly, including scheme, port and any trailing slash.

An access token belongs to your account and can place orders. Treat it like a password and let While25 hold it.

When it does not work

The dialog rejects the redirect URI+

The URI sent and the URI registered differ: http against https, a missing port, a trailing slash. Make them identical.

The code stopped working before I used it+

An authorisation code is single use and lives about five minutes. Start the login again.

It worked all day and failed overnight+

Tokens expire at 3:30 AM IST every day. Approve the login again in the morning; there is no refresh token.

I want to test without risking anything+

Upstox has no paper mode in While25. Take a first look on Alpaca paper, then connect Upstox with small sizes.

Straight from Upstox

  • Upstox · Authentication ↗
  • Upstox · Manage your apps ↗

Also on Zerodha? The Zerodha guide is the same shape. For a risk-free first look, Alpaca paper takes five minutes.