Help Article
Connecting Your First Broker
How to Connect Your Broker
Pinbar AI syncs your trades automatically from connected Brokers using secure, read-only API access.
Important: We NEVER
- Store your broker login password
- Execute trades on your behalf
- Access or transfer your funds
- Modify your broker settings
Connection Steps
For Zerodha:
- Go to Settings → Broker Connections
- Click "Connect with Zerodha"
- You'll be redirected to Zerodha's login page
- Log in and authorize Pinbar AI
- Trades will sync automatically
Note: Zerodha tokens expire daily. You may need to reconnect each day.
For Dhan:
- Go to web.dhan.co → DhanHQ → Access Token
- Generate a new 24-hour JWT token
- In Pinbar AI, go to Settings → Broker Connections
- Enter your Client ID and Access Token
For Angel One:
- Go to Settings → Broker Connections
- Click "Connect Angel One"
- Enter your API Key (from SmartAPI)
- Enter your Client Code
- Enter your PIN
- Enter the current TOTP (expires every 30 seconds — be quick!)
For Groww:
- Subscribe to Groww API (₹499+GST/month — paid to Groww, not Pinbar AI)
- Get your TOTP Token and TOTP Secret (NOT the 6-digit code)
- Enter credentials in Settings → Broker Connections
- Auto-refreshes daily at 6 AM IST — set once, forget forever
For Upstox (Beta):
- Go to Settings → Broker Connections → Upstox
- You'll be redirected to upstox.com for OAuth
- Tokens expire at midnight IST — daily reconnect needed
For Fyers (Beta):
- Get your API ID and Access Token from myapi.fyers.in
- Enter in Settings → Broker Connections
- Tokens expire at midnight IST — generate fresh daily
For Delta Exchange:
- Log in to delta.exchange → Profile → API Keys
- Create a new API key with "Read Only" permissions
- Copy the API Key and Secret (secret shown only once!)
- Enter credentials in Pinbar AI Settings
For 5paisa:
- Get API credentials from developer.5paisa.com
- Enter Client Code and keys in Settings → Broker Connections
- Persistent connection — no daily reconnect needed
For Crypto Exchanges (CoinDCX, Pi42, Bitbns, ZebPay):
- Go to your exchange's Settings → API Keys
- Create a new API key with read-only permissions
- Copy the API Key and API Secret
- Enter in Pinbar AI Settings → Broker Connections
Troubleshooting
- Connection Failed: Double-check your API credentials
- No Trades Showing: Click "Refresh" to manually sync
- Incorrect P&L: Verify positions in your broker app
- "Segments Not Active" (Upstox): Activate in Upstox app → Profile → Segment Activation
- "TOTP verification failed" (Groww): Use TOTP Secret (long string), NOT the 6-digit code
For persistent issues, email info@pinbar.ai with your broker name and error message.