we were testing the mcps of all three brokers - forst mcp is flattrade - buy 1 biocon share at nse
2026-07-07T22:47:22
ASSISTANT (hermes, glm-5.1)
Let me find the Flattrade MCP tools first.
2026-07-07T22:47:24
ASSISTANT (hermes, glm-5.1)
Found it. Placing a BUY order for 1 BIOCON share at NSE via Flattrade MCP.
2026-07-07T22:47:28
ASSISTANT (hermes, glm-5.1)
Flattrade MCP order placed successfully.
**Order Details:**
- Broker: Flattrade
- Symbol: BIOCON
- Exchange: NSE
- Action: BUY
- Quantity: 1
- Product: CNC (delivery)
- Price Type: MARKET
- Order ID: **26070700569951**
- Status: **SUCCESS**
Ready for the next broker test — Kotak or Shoonya?
2026-07-07T22:47:31
USER (hermes, glm-5.1)
shooya - buy 1 share of lt at nse
2026-07-07T22:47:46
ASSISTANT (hermes, glm-5.1)
Shoonya returned a **401 Unauthorized** error — the session token has expired. Let me log in first.
2026-07-07T22:47:52
ASSISTANT (hermes, glm-5.1)
No login tool in the Shoonya MCP. The 401 means the Shoonya OpenAlgo session has expired. I need to re-login via the Shoonya OpenAlgo instance. Let me check what's running.
2026-07-07T22:47:57
ASSISTANT (hermes, glm-5.1)
Auth token exists but likely expired. The 401 from Shoonya means the session token has gone stale. I need to trigger a re-login. Let me use the OpenAlgo API to login.
2026-07-07T22:48:14
ASSISTANT (hermes, glm-5.1)
That's the frontend HTML. Let me find the correct API endpoint.
2026-07-07T22:48:20
ASSISTANT (hermes, glm-5.1)
Now I need to trigger a re-login for Shoonya. The 401 means the broker session token has expired. Let me use the OpenAlgo API to re-authenticate.
2026-07-07T22:48:44
ASSISTANT (hermes, glm-5.1)
The Shoonya broker session has expired (401). I need to trigger a re-login via the OpenAlgo web UI flow. Let me try using the API directly:
2026-07-07T22:48:47
ASSISTANT (hermes, glm-5.1)
Confirmed — the Shoonya session token has expired. Shoonya uses OAuth, so you need to re-authorize through the browser. Let me generate the OAuth URL for you:
2026-07-07T22:49:44
ASSISTANT (hermes, glm-5.1)
The Shoonya broker session has expired (**Session Expired: Invalid Session Key**). Shoonya uses an OAuth flow, so you need to re-login via browser:
**Shoonya OAuth URL:**
```
https://trade.shoonya.com/OAuthlogin/investor-entry-level/login?api_key=FA41486_U&route_to=FA41486
```
Steps:
1. Open that URL in your browser
2. Login with your Shoonya credentials + TOTP
3. It will redirect back to OpenAlgo with an auth code
4. Once the callback completes, the token bridge should auto-detect the change and restart the service
After you've logged in, I can retry the BUY 1 LT@NSE order on Shoonya. Want to do that now or move on to Kotak first?
2026-07-07T22:49:48
USER (hermes, glm-5.1)
uy same at kotak then
2026-07-07T22:50:14
ASSISTANT (hermes, glm-5.1)
Kotak order placed successfully.
**Order Details:**
- Broker: Kotak
- Symbol: LT
- Exchange: NSE
- Action: BUY
- Quantity: 1
- Product: CNC (delivery)
- Price Type: MARKET
- Order ID: **260707000821500**
- Status: **SUCCESS**
So far:
- ✅ **Flattrade** — BIOCON BUY 1 @ NSE — Order 26070700569951
- ✅ **Kotak** — LT BUY 1 @ NSE — Order 260707000821500
- ❌ **Shoonya** — Session expired, needs browser re-login
Want me to retry Shoonya after you've done the OAuth login, or move on?