src/types/indexSetting.ts
Core enums
Main interface — IndexSetting
Top-level document fields:
Nested segment settings
ICashSettings — cash
Instrument token, tradingsymbol, recurring buy fields, order types, market protection.
IFuturesSettings — futures
Expiry chain (futuresChainByExpiry), active contract, recurring buy, lot size.
IOptionsSettings — options
CALL/PUT quantities, durations, limits, strike differences, optionChainByExpiry with CE/PE tradingsymbols per strike.
Option chain structure
Usage in UI
- Form —
indexSettingForm.tsxbinds to nested objects - Order pages — read segment-specific nested config
- Dashboard — legacy flat fields still supported on some code paths during migration