src/components/order/index/CashOrderPage.tsx
Renders when initialSetting.activeSegment === 'cash'.
Key responsibilities
Settings used — ICashSettings
Socket events
Same pattern as options page:ZerodhaEventProcessor.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
CashOrderPage.tsx — cash segment trading UI
src/components/order/index/CashOrderPage.tsx
Renders when initialSetting.activeSegment === 'cash'.
| Area | Behavior |
|---|---|
| Live data | Socket ${indexName}TickData for spot/cash instrument |
| Recurring buy | Uses initialSetting.cash settings |
| Order history | cashOrderDataTable.tsx |
| Manual orders | useZerodha() with CNC/MIS product types |
ICashSettings| Field | Purpose |
|---|---|
tradingsymbol | Cash equity symbol |
buyQuantity, buyDuration | Recurring buy sizing |
buyOrderLimit, buyOrderType | Order constraints |
sellOrderType, market protection | Exit behavior |
isRecurringBuy | Enable automated buy loop |
socket.on(`${indexName}TickData`, handleIndexData);
ZerodhaEventProcessor.