{"name":"TradeX API Gateway","version":"2.0.0","docs":"http://localhost:3000/api-docs","routes":{"POST /auth/register":"Register new user","POST /auth/login":"Login with email/mobile + password","POST /auth/forgot-password":"Request OTP for password reset","POST /auth/reset-password":"Reset password with OTP","POST /auth/refresh-token":"Refresh access token","POST /auth/logout":"Logout (invalidate tokens)","POST /auth/2fa/setup":"Setup TOTP 2FA","POST /auth/2fa/verify":"Verify and enable 2FA","DELETE /auth/2fa":"Disable 2FA","GET  /users/me":"Get current user profile","PUT  /users/me":"Update profile","GET  /users/me/kyc":"KYC status","POST /users/me/kyc":"Submit KYC documents","GET  /users/me/notifications":"Get notifications","PUT  /users/me/notifications/read":"Mark notifications read","GET  /users/me/settings":"User settings","PUT  /users/me/settings":"Update settings","POST /users/me/refer":"Apply referral code","GET  /users/wallet/balance":"Wallet balance","POST /users/wallet/add-funds":"Add funds","POST /users/wallet/withdraw":"Withdraw funds","GET  /users/wallet/transactions":"Fund history","GET  /users/wallet/bank-accounts":"Bank accounts","POST /users/wallet/bank-accounts":"Add bank account","GET  /market/indices":"Market indices (NIFTY, SENSEX, etc.)","GET  /market/stocks":"Stock list with live quotes","GET  /market/stocks/:symbol":"Single stock detail","GET  /market/stocks/:symbol/chart":"OHLCV chart data","GET  /market/gainers":"Top gainers","GET  /market/losers":"Top losers","GET  /market/options":"Option chain","GET  /market/options/expiries":"Available expiry dates","GET  /market/watchlist":"User watchlist","POST /market/watchlist":"Add to watchlist","DELETE /market/watchlist/:symbol":"Remove from watchlist","POST /orders/place":"Place order","GET  /orders":"Order book","GET  /orders/:id":"Order detail","PUT  /orders/:id":"Modify order","DELETE /orders/:id":"Cancel order","GET  /orders/trades/all":"Trade book","GET  /portfolio/summary":"Portfolio summary","GET  /portfolio/holdings":"Holdings","GET  /portfolio/positions":"Open positions","GET  /portfolio/pnl":"P&L history","GET  /portfolio/tax-report":"Tax report","GET  /chat/rooms":"Trading rooms","GET  /chat/rooms/:id/messages":"Room messages","POST /chat/rooms/:id/messages":"Send room message","GET  /chat/direct":"Direct message contacts","GET  /chat/direct/:id/messages":"DM history","POST /chat/direct/:userId/messages":"Send DM","WS   ws://<host>:3006/ws":"Live tick stream (connect directly)"}}