INFINN quick login -- simple steps ================================== This one file logs you in to the INFINN API. You do NOT copy any code from the address bar. It only logs in. It never places orders. ONE-TIME SETUP (2 minutes) 1. Install Python 3.8 or newer (python.org). On Windows tick "Add Python to PATH". 2. Log in to trade.infinn.in. Click the profile icon (top right), then Generate Key. The API Key panel opens. In that panel: "Client ID" = your user ID, "App Key" = your API key, "Secret Code" = your API secret. Leave "Webhook URL" blank. 3. Check "Primary IP Address" is the public IP of THIS computer (open https://api.ipify.org to see it). 4. Set "Redirect URL" to exactly: http://127.0.0.1:8899/callback and press Update. (127.0.0.1 means "this computer". Nothing goes on the internet.) EVERY DAY 1. Open a terminal / Command Prompt in the folder with infinn_quick_login.py. 2. Run: python infinn_quick_login.py (Mac/Linux: python3 infinn_quick_login.py) 3. Type your user ID (Client ID), API key (App Key) and API secret (Secret Code) (the secret stays hidden while typing). 4. The INFINN login page opens. Enter your password and TOTP. 5. Done. The window says "Login OK". Your token is in infinn_token.json until about 4:00 AM IST. IF IT FAILS - "Not_Ok": first check your IP is whitelisted (step 3 above). This is the most common cause. - "No login code arrived": the Redirect URL is not exactly http://127.0.0.1:8899/callback. - Wrong key or secret: copy them again from the API Key panel. - Keep infinn_token.json private. Delete it when you are done.