UAT / TEST — this is NOT live. No real money. No real orders. Nothing here reaches the exchange. Use it only to practise login and API calls.

UAT vs Live

UAT (test) UATLive (real)
RESThttps://uat.infinn.in/NorenWClientAPIhttps://api.infinn.in/NorenWClientAPI
WebSocketwss://uat.infinn.in/NorenWSTP/wss://api.infinn.in/NorenWSTP/
Money / ordersPractice only — nothing realReal money, real orders
KeysYour UAT App Key + UAT secretYour Live App Key + Live secret (different)

You also need: a UAT user ID, password, TOTP app, a redirect URL saved on your UAT app, and your PC’s public IP whitelisted. Keep the secret in an environment variable — never in code, chat or git.

Login in 4 steps UAT

  1. Open the UAT login link. Replace the App Key placeholder with your App Key. The example below uses INFINN.
  2. Log in. Type your User ID in CAPITAL letters, your password, and the 6-digit TOTP. Click Login.
  3. Copy the FULL browser URL. After login the address bar changes. Copy the whole URL. It must contain code=. Do not copy only part of it. The code works once and only for a short time.
  4. Swap the code for a token. Set the secret in your terminal, then run the Python below. It asks you to paste the full URL, builds the checksum, calls GenAcsTok, and reads User Details.
login url
https://uat.infinn.in/OAuthlogin/investor-entry-level/login?api_key=<YOUR_APP_KEY>&route_to=<YOUR_APP_KEY>

Example:

example
https://uat.infinn.in/OAuthlogin/investor-entry-level/login?api_key=INFINN&route_to=INFINN
python
import hashlib, json, os, urllib.parse, urllib.request

BASE    = "https://uat.infinn.in"          # UAT / TEST — NOT live
API_KEY = "<YOUR_APP_KEY>"                 # same value as in the login URL
SECRET  = os.environ["INFINN_UAT_SECRET"]  # never hard-code the secret

raw = input("Paste the FULL browser URL: ").strip()
qs = urllib.parse.urlparse(raw).query
code = urllib.parse.parse_qs(qs).get("code", [None])[0]
if not code:
  raise SystemExit("No code= in that URL. Log in again and paste the full URL.")

checksum = hashlib.sha256((API_KEY + SECRET + code).encode()).hexdigest()
body = "jData=" + json.dumps({"code": code, "checksum": checksum})
req = urllib.request.Request(
  BASE + "/NorenWClientAPI/GenAcsTok",
  data=body.encode(),
  headers={"Content-Type": "text/plain"},
  method="POST",
)
resp = json.load(urllib.request.urlopen(req, timeout=30))
print("stat:", resp.get("stat"), resp.get("emsg", ""))

token = resp.get("access_token") or resp.get("susertoken")
uid   = (resp.get("uid") or resp.get("actid") or "").upper()  # always UPPERCASE

body = "jData=" + json.dumps({"uid": uid})
req = urllib.request.Request(
  BASE + "/NorenWClientAPI/UserDetails",
  data=body.encode(),
  headers={"Content-Type": "text/plain", "Authorization": "Bearer " + token},
  method="POST",
)
print(json.load(urllib.request.urlopen(req, timeout=30)).get("stat"))  # "Ok" = it works

Windows: set INFINN_UAT_SECRET=... · Mac/Linux: export INFINN_UAT_SECRET=...

Seeing Ok? Your UAT login works. The token expires around 04:00 IST each day — log in again the next day. When you go Live, change the host to https://api.infinn.in and use your Live key and secret.

Common mistakes

  • Lowercase User ID — later calls fail. Use CAPITALS, or better, the uid returned by GenAcsTok.
  • Partial URL paste — paste the full address bar value that contains code=.
  • Reusing an old code — a code works once. Log in again for a new one.
  • IP not whitelisted — ask support to add your public IP on the UAT app.
  • Using the live URL — UAT is uat.infinn.in, Live is api.infinn.in. Do not mix them.
  • Wrong checksum / secret — exactly api_key + secret + code (no spaces). Use the UAT secret from an env var.
  • TOTP rejected — set phone/PC clock to automatic time. Check the code on the TOTP checker.
Keep your secret safe

Never put the secret or the access token in a web page, mobile app, git or chat. INFINN staff will never ask for them.

Playground UAT

The Try in Playground box on reference pages starts on Sandbox / UAT (https://uat.infinn.in). Only read calls are allowed there.

More detail: Generate Access Token · OAuth login (Live) · TOTP checker

Times on this site are IST (Asia/Kolkata, UTC+05:30).

Esc
↑↓ navigate↵ openEsc close/ to search