Listen aloud is not supported in this browser.
Groww
Connect Groww using API key and secret, or TOTP token and secret (no OAuth popup).
How to get here
Navigation: Brokers › Add new Account › Groww
Prerequisites (Groww Cloud)
- Active Groww trading account with API access enabled
- Open Groww Cloud / API Keys in your Groww account
- Create either an API key + secret pair (Generate API key) or a TOTP token + secret (Generate TOTP token)
- For API keys, wait for approval from Groww (unapproved keys fail token generation)
- Copy the values shown once at creation
- No OAuth redirect URL is required for Groww
Match the credential type
On Add Broker, choose API Key & Secret or TOTP token & secret to match what you created in Groww Cloud. Mixing them returns “Invalid type”.
API key approval
If token generation fails with an approval message, complete approval in Groww Cloud before retrying in ATPAlgo.
Step 1 — Open Add Broker and name the account
- Go to Brokers › Add new Account (open Add Broker).
- Enter a display name and click Next.
Step 1: Account display name.
Step 2 — Select Groww
- Select Groww from the broker list.
- Click Next.
Step 2: Select Groww.
Step 3 — Choose authentication and verify token
Groww Cloud has two credential types. Pick the matching option on Add Broker — mixing them returns “Invalid type”.
API Key & Secret
- In Groww Cloud choose Generate API key.
- Copy the API key and API secret, and wait for Groww to approve the key.
- Access tokens expire daily at 6:00 AM IST. Groww Cloud may also require daily key approval.
TOTP token & secret
- In Groww Cloud choose Generate TOTP token (not Generate API key).
- Copy the TOTP token and the Base32 TOTP secret — not the 6-digit authenticator code.
- TOTP credentials themselves do not expire. The access token still expires daily at 6:00 AM IST.
- Without daily auto-connect, tap Connect on My Brokers each morning after expiry.
On the Add Broker form
- Select API Key & Secret or TOTP token & secret to match Groww Cloud.
- Paste the matching credentials.
- Leave Daily auto-connect on (recommended) so ATPAlgo refreshes the token on a morning schedule (default 08:00 IST). Turn it off if you prefer to tap Connect yourself.
- Click Next — ATPAlgo generates today's access token and tests the connection.
- If verification fails, fix the key in Groww Cloud and retry.
Step 3: Choose API key or TOTP; token verified on Next.
Step 4 — Finish setup
- On Complete Setup, click Finish Setup.
- On My Brokers, confirm status is Connected. If daily auto-connect is on, the token is refreshed on the schedule (My Brokers ⋮ → Automated login). Otherwise tap Connect each morning after 6:00 AM IST.
Step 4: Finish setup.
Troubleshooting
| Issue | What to check |
|---|---|
| Key not approved | Approve API key in Groww Cloud |
| Invalid type | You mixed TOTP credentials with API Key & Secret (or the reverse). Switch the authentication type. |
| Invalid TOTP secret | Paste the Base32 secret from Groww, not the 6-digit authenticator code |
| Reconnect from My Brokers | Uses saved credentials (API secret or TOTP secret) to refresh the token |
| Must Connect every morning | Access tokens expire at 6:00 AM IST. Enable Daily auto-connect (Add Broker or My Brokers ⋮ → Automated login) |