15 - Basic UI Elements
Overview
Architecture Diagram
┌──────────────────────────────────────────────────────────────────────────────┐
│ Basic UI Components │
└──────────────────────────────────────────────────────────────────────────────┘
┌─────────────────────────────────────────────────────────────────────────────┐
│ Dashboard │
│ /dashboard │
│ │
│ ┌─────────────┐ ┌─────────────┐ ┌─────────────┐ ┌─────────────┐ │
│ │ Funds │ │ Positions │ │ P&L │ │ Orders │ │
│ │ Summary │ │ Count │ │ Summary │ │ Pending │ │
│ └─────────────┘ └─────────────┘ └─────────────┘ └─────────────┘ │
│ │
│ ┌─────────────────────────────────────────────────────────────────────┐ │
│ │ Quick Actions: Place Order | View Positions | API Key │ │
│ └─────────────────────────────────────────────────────────────────────┘ │
└─────────────────────────────────────────────────────────────────────────────┘
┌─────────────────────────────────────────────────────────────────────────────┐
│ OrderBook │
│ /orderbook │
│ │
│ ┌───────────────────────────────────────────────────────────────────────┐ │
│ │ Order ID | Symbol | Exchange | Action | Qty | Price | Status | Time │ │
│ ├───────────────────────────────────────────────────────────────────────┤ │
│ │ 123456 | SBIN | NSE | BUY | 100 | MKT | Complete| 09:30 │ │
│ │ 123457 | INFY | NSE | SELL | 50 | 1650 | Pending | 10:15 │ │
│ └───────────────────────────────────────────────────────────────────────┘ │
│ │
│ Actions: Cancel Order | Modify Order | Refresh │
└─────────────────────────────────────────────────────────────────────────────┘
┌─────────────────────────────────────────────────────────────────────────────┐
│ TradeBook │
│ /tradebook │
│ │
│ ┌───────────────────────────────────────────────────────────────────────┐ │
│ │ Trade ID | Symbol | Exchange | Action | Qty | Price | Time │ │
│ ├───────────────────────────────────────────────────────────────────────┤ │
│ │ T001 | SBIN | NSE | BUY | 100 | 625.50| 09:30:15 │ │
│ │ T002 | SBIN | NSE | SELL | 100 | 627.25| 14:45:30 │ │
│ └───────────────────────────────────────────────────────────────────────┘ │
│ │
│ Summary: Total Trades | Buy Value | Sell Value | Net P&L │
└─────────────────────────────────────────────────────────────────────────────┘
┌─────────────────────────────────────────────────────────────────────────────┐
│ Positions │
│ /positions │
│ │
│ ┌───────────────────────────────────────────────────────────────────────┐ │
│ │ Symbol | Exchange | Product | Qty | Avg Price | LTP | P&L | P&L% │ │
│ ├───────────────────────────────────────────────────────────────────────┤ │
│ │ SBIN | NSE | MIS | 100 | 625.50 | 627 | +150 | +0.24% │ │
│ │ INFY | NSE | MIS | -50 | 1655.00 | 1650| +250 | +0.30% │ │
│ └───────────────────────────────────────────────────────────────────────┘ │
│ │
│ Actions: Close Position | Close All | Refresh │
└─────────────────────────────────────────────────────────────────────────────┘
┌─────────────────────────────────────────────────────────────────────────────┐
│ Holdings │
│ /holdings │
│ │
│ ┌───────────────────────────────────────────────────────────────────────┐ │
│ │ Symbol | Exchange | Qty | Avg Price | LTP | Current Value | P&L │ │
│ ├───────────────────────────────────────────────────────────────────────┤ │
│ │ SBIN | NSE | 500 | 580.00 | 625 | 312,500 | +22,500 │ │
│ │ INFY | NSE | 100 | 1500.00 | 1650| 165,000 | +15,000 │ │
│ └───────────────────────────────────────────────────────────────────────┘ │
│ │
│ Summary: Total Investment | Current Value | Overall P&L │
└─────────────────────────────────────────────────────────────────────────────┘Data Sources
API Endpoints
Component
API Endpoint
Method
Real-Time Updates
Event
Description
Component Details
Dashboard
OrderBook
TradeBook
Positions
Holdings
React Components
File Structure
TanStack Query Usage
Analytics Tools
Tools Hub (/tools)
/tools)GEX Dashboard (/gex)
/gex)IV Smile (/ivsmile)
/ivsmile)IV Chart (/ivchart)
/ivchart)OI Profile (/oiprofile)
/oiprofile)OI Tracker (/oitracker)
/oitracker)Max Pain (/maxpain)
/maxpain)ATM Straddle Chart (/straddle)
/straddle)3D Volatility Surface (/volsurface)
/volsurface)Key Files Reference
File
Purpose
Last updated