📊 MTM Configuration
MTM Shall be calculated based on current market price for applicable position as defined in Master config
⚙️ Master config used in calcualtion
| 📝 Config Key Desc | 🔧 Config Key Value | 📦 Key Source |
|---|---|---|
| Interop Enable / Disable (INTEROP_FLAG) | Toggle | MasterConfig-Segment-Interop |
| Default Base Exchange - Market Data(DEF_BASE_EX_MKTDATA) | Dropdown | MasterConfig-Segment-Interop Default Value CASH-NSEEQ FNO-NSEFNO CURR-BSECDS |
🌐 Interop Impact
In case Interop is on then System shall refer combined segment exposure to calculate MTM, however in case of Interop is OFF then system shall refer base exchange exposure.
Current Scope of Interop is ON for Cash, FNO & CURR segment and OFF for Comm Segment
InterOp ON
System shall refer broadcast(MarketData) for default configured exchange against respective segment type. in case suh scrip is not listed in default exchange then sytem shall refer market data of other applicable exchange in sequence of NSE, BSE, MSE i.e. in case defualt echange is mentioned as BSE and such scrip is not listed in BSE then system shall refer market data of nse for such token in case such tok in not listed in NSE then System shall refer market data of MSE for such toekn and so on.
💾 Storage
System shall store MTM Profit and MTM Loss against 1st Falling SIP which will be used for Margin Utilization / Validation
System shall store MTM Profit and Loss against each falling group under mapped MTM Template which shall be used to trigger MTM alerts and MTM Trigger
📋 Examples
Based on the Master configuration, system consider the Price for Uploaded Position to derive the MTM Profit/Loss
Case 1: Consider Pending Order is available for Investor: CLI1
Assume LCP of ACC is 102, TCS is 210 and Lot Size of TCS is 300
Assume LTP of ACC is 110 and TCS is 220
| 📊 Seg | 🔧 Inst | 📅 Exp. | 💲 Stk. Price | 🎯 Opt. Type | 📦 Cont. | 📈 OBQ | 💰 OBP | 💵 OBV | 📉 OSQ | 💰 OSP | 💵 OSV | ⚡ Status |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| NSEEQ | - | - | - | - | ACC | 50 | 100 | 5000 | - | - | - | Pending |
| NSEFO | FUTSTK | Exp1 | - | - | TCS | - | - | - | 600 | 200 | 120000 | Pending |
In this case, system should not compute MTM Profit/Loss as Order is in Pending Status.
Case 2: In continuous to case 1 Consider Pending order got executed for Investor: CLI1
Assume
| 📊 Seg | 📦 Cont. | 📏 Lot Size | 💰 LCP | 📈 LTP |
|---|---|---|---|---|
| NSEEQ | ACC | - | 102 | 110 |
| NSEFO | TCS | 300 | 215 | 210 |
| 📊 Seg | 🔧 Inst | 📅 Exp. | 💲 Stk. Price | 🎯 Opt. Type | 📦 Cont. | 📈 OBQ | 💰 OBP | 💵 OBV | 📉 OSQ | 💰 OSP | 💵 OSV |
|---|---|---|---|---|---|---|---|---|---|---|---|
| NSEEQ | - | - | - | - | ACC | 50 | 100 | 5000 | - | - | - |
| NSEFO | FUTSTK | Exp1 | - | - | TCS | - | - | - | 600 | 200 | 120000 |
System should consider Daily Average Price for Daily Open Position (i.e. ACC: 100, TCS: 200)
In this case, 50 Buy Open Position is available in NSEEQ ACC and 600 Sell Open Position in NSEFO TCS
MTM P/L of NSEEQ-ACC = (50 * (110 - 100)) = 50 * 10 = 500 (i.e. MTM Profit: 500, MTM Loss: 0)
MTM P/L of NSEFO-TCS = (-600 * (210 - 200)) = -600 * 10 = -6000 (i.e. MTM Profit: 0, MTM Loss: -6000)
Case 3: In continuous to case 2 Consider Sell Position created against NSEEQ-ACC and Buy Position created against NSEFO-TCS
Assume
| 📊 Seg | 📦 Cont. | 📏 Lot Size | 💰 LCP | 📈 LTP |
|---|---|---|---|---|
| NSEEQ | ACC | - | 102 | 110 |
| NSEFO | TCS | 300 | 215 | 210 |
| 📊 Seg | 🔧 Inst | 📅 Exp. | 💲 Stk. Price | 🎯 Opt. Type | 📦 Cont. | 📈 OBQ | 💰 OBP | 💵 OBV |
|---|