๐Ÿค– Agentic Trading โ€” API Gateway

alice.1domains.in AliceBlue Direct Auth User 937164

๐Ÿ“ก Endpoints

GET /api/health
System health check (public)
GET /api/session
Session status (key required)
GET /callback
AliceBlue OAuth callback (secured)

๐Ÿ” Auth Flow

1. Browser โ†’ ant.aliceblueonline.com/?appcode=x0piGFXX04
2. AliceBlue login โ†’ redirect to /callback with authCode
3. authCode stored server-side (5 min TTL, one-time read)
4. Retrieve: /callback?retrieve=1&key=SECRET&format=json
5. Compute checksum โ†’ getUserDetails โ†’ userSession
6. All REST endpoints use Bearer {userId} {userSession}

๐Ÿ“Š AliceBlue REST API (verified)

Profile / Account GET
RMS / Balance GET
Scrip Quote (Live LTP) POST
Positions / Holdings GET/POST
Orders / Trades GET
WebSocket Session POST
Historical Chart Outside market hours only

๐Ÿ”— Links

GitHub Repository (private)
Trading Dashboard
AliceBlue API Docs
AliceBlue Developer Portal