Skip to main content

📊 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
Uploaded Buy Position Value1 - Uploaded Price
2 - Last Close Price
Master Config--Product-Future
Uploaded Sell Position Value1 - Uploaded Price
2 - Last Close Price
Master Config--Product-Future
Uploaded Buy Position Value1 - Uploaded Price
3 - Zero
Master Config--Product-option
Uploaded Sell Position ValuE1 - Uploaded Price
3 - Zero
Master Config--Product-option
Uploaded Buy Position Value1 - Uploaded Price
2 - Last Close Price
Master Config--Product-Equity
Uploaded Sell Position Value1 - Uploaded Price
2 - Last Close Price
Master Config--Product-Equity
Uploaded Buy Position Value - MTM1 - Uploaded Price
3 - Zero
Master Config--Product-option
Uploaded Sell Position Value - MTM1 - Uploaded Price
3 - Zero
Master Config--Product-option
Enable MTM CalculationToggleMaster Config--Product-Future
Enable MTM CalculationtoggleMaster Config-Product-Cash
Enable MTM for Long PositionToggleMaster Config-Product-Option
Enable MTMT for Short PositionToggleMaster Config-Product-Option
Interop Enable / Disable (INTEROP_FLAG)ToggleMasterConfig-Segment-Interop
Default Base Exchange - Market Data(DEF_BASE_EX_MKTDATA)DropdownMasterConfig-Segment-Interop
Default Value
CASH-NSEEQ
FNO-NSEFNO
CURR-BSECDS

Above configuration is based o product type, so system shall refer

1 - Uploaded Price means Ssytem should consider uploaded price for uploaded position and average daily price for Daily Position

2 - Last Close Price means system should consider last closing price for uploaded position and average daily price for daily position.

3 - 0 (Zero) means system should consider 0 as price for uploaded position and average daily price for daily position.

MTM shall be calculated only for applicable position based on master config for respective product. for Future & Cash Scrip Single key enable MTM calulcation is used for Both Long as well as short position, however for Option scrips, separate key to enable MTM Calculation for Long & Short Position.

🌐 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----ACC501005000---Pending
NSEFOFUTSTKExp1--TCS---600200120000Pending

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
NSEEQACC-102110
NSEFOTCS300215210
📊 Seg🔧 Inst📅 Exp.💲 Stk. Price🎯 Opt. Type📦 Cont.📈 OBQ💰 OBP💵 OBV📉 OSQ💰 OSP💵 OSV
NSEEQ----ACC501005000---
NSEFOFUTSTKExp1--TCS---600200120000

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
NSEEQACC-102110
NSEFOTCS300215210
📊 Seg🔧 Inst📅 Exp.💲 Stk. Price🎯 Opt. Type📦 Cont.📈 OBQ💰 OBP💵 OBV📉 OSQ💰 OSP💵 OSV
NSEEQ----ACC501005000301203600
NSEFOFUTSTKExp1--TCS30021063000600200120000

In this case, 20 Buy Open Position is available in NSEEQ ACC and 300 Sell Open Position in NSEFO TCS

System should consider Daily Average Price for Daily Open Position (i.e. ACC: 100, TCS: 200)

MTM P/L of NSEEQ-ACC = (20 * (110 - 100)) = 20 * 10 = 200 (i.e. MTM Profit: 200, MTM Loss: 0)

MTM P/L of NSEFO-TCS = (-300 * (210 - 200)) = -300 * 10 = -3000 (i.e. MTM Profit: 0, MTM Loss: -3000)

Case 4: In continuous to case 3 Consider Squaring off the Buy Open Position against NSEEQ-ACC and Buy Position and Sell Open position against NSEFO-TCS

Assume

📊 Seg📦 Cont.📏 Lot Size💰 LCP📈 LTP
NSEEQACC-102110
NSEFOTCS300210220
📊 Seg🔧 Inst📅 Exp.💲 Stk. Price🎯 Opt. Type📦 Cont.📈 OBQ💰 OBP💵 OBV📉 OSQ💰 OSP💵 OSV
NSEEQ----ACC501005000501203600
NSEFOFUTSTKExp1--TCS60021063000600200120000

In this case, 0 Open Position is available in NSEEQ ACC and in NSEFO TCS

As no open position is available in the contracts. So MTM Profit/Loss in this case should be '0'

Case 5: Position Conversion with Partial Qty

Assume

📊 Seg📦 Cont.📏 Lot Size💰 LCP📈 LTP
NSEEQACC-102110

Assume following position available

📊 Seg🔧 Prod📦 Cont.📈 OBQ💰 OBP💵 OBV📉 OSQ💰 OSP💵 OSV
NSEEQMarginACC501005000201202400
NSEEQDeliveryACC301053150701087560

In this case, 30 Buy open Position is in NSEEQ ACC-Margin and 40 Sell Open Position in NSE-EQ ACC-Delivery

MTM P/L of NSEEQ-ACC-Margin = (30 * (110 - 100)) = 30 * 10 = 300 (i.e. MTM Profit: 300, MTM Loss: 0)

MTM P/L of NSEEQ-ACC-Delivery = (-40 * (110 - 108)) = -40 * 2 = -80 (i.e. MTM Profit: 0, MTM Loss: -80)

Now, Perform Position conversion

Convert 20 Qty of Sell Position from Delivery to Margin Product Type

Accordingly, available position shall be

📊 Seg🔧 Prod📦 Cont.📈 OBQ💰 OBP💵 OBV📉 OSQ💰 OSP💵 OSV
NSEEQMarginACC501005000401202400
NSEFODeliveryACC301053150501087560

After position conversion, 10 Buy open Position is in NSEEQ ACC-Margin and 20 Sell Open Position in NSE-EQ ACC-Delivery

MTM P/L of NSEEQ-ACC-Margin = (10 * (110 - 100)) = 10 * 10 = 100 (i.e. MTM Profit: 100, MTM Loss: 0)

MTM P/L of NSEEQ-ACC-Delivery = (-20 * (110 - 108)) = -20 * 2 = -40 (i.e. MTM Profit: 0, MTM Loss: -80)

Case 6: Impact of Position Conversion in MTM Profit / Loss with uploaded position and Master Config key configuration

Following keys shall have impact on MTM Calculation, assume

📝 Menu🔑 Key💡 Value
Master config> Prod: Margin>> EquityUploaded Buy Position Value1- Uploaded Price
Master config> Prod: Margin>> EquityUploaded Sell Position Value1- Uploaded Price
Master config> Prod: Delivery>> EquityUploaded Buy Position Value2- LCP
Master config> Prod: Delivery>> EquityUploaded Sell Position Value2- LCP
Master config> Prod: Intra>> FutureUploaded Buy Position Value3- Uploaded Price
Master config> Prod: Intra>> FutureUploaded Sell Position Value3- Uploaded Price
Master config> Prod: Carry>> FutureUploaded Buy Position Value4- LCP
Master config> Prod: Carry>> FutureUploaded Sell Position Value4- LCP
#📦 Cont.📊 Seg🔧 Inst.📅 EXP.💲 Stk. Price🎯 Opt. Type📦 Cont.📏 Lot Size💰 LCP📈 LTP
1NSEEQ----ACC-102110
2NSEFOFUTSTKEXP1--TCS300210220

Assume following Position is available for Investor CLI1

#📦 Contract Info📈 Expiry Position📊 Daily Position
#📦 Con📊 Seg.📦 Cont.🔧 Prod📈 EBQ💰 EBP💵 EBV📉 ESQ💰 ESP💵 ESV📈 OBQ💰 OBP💵 OBV📉 OSQ💰 OSP💵 OSV
1NSEEQACCMargin20951900---501005000301203600
2NSEFOTCSIntra600200120000---30021063000600200120000

In this case, 40 Buy open Position is in NSEEQ -ACC and 300 Qty of Buy Open Position in NSEFO-TCS

System should consider Daily Average Price for Daily Open Position and for Uploaded Price- price to be considered as per the Price configured in the Master Configuration view for respective exchange and respective instrument. Accordingly, as per configuration of Master Configuration for uploaded position and as per Daily Average Price of Daily position (MTM Price for NSEEQ-ACC is 98.571 and NSEFO-TCS is 203.333)

MTM P/L of NSEEQ-ACC = (40 * (110 – 98.571)) = 20 * 11.4286 = 457.144 (i.e. MTM Profit: 457.144, MTM Loss: 0)

MTM P/L of NSEFO-TCS = (300 * (210 - 203.333)) = -300 * 16.667 = 5000 (i.e. MTM Profit: 5000.1, MTM Loss: 0)

Now, perform Position conversion

Convert Buy 70 Qty from Margin to Delivery of NSEEQ- ACC and Sell 900 Qty from Intraday to Carryforward.

For Delivery and Carryforward Position, LCP is configured in Master Config for upload position. Accordingly,

(MTM Price for NSEEQ-ACC is 100.571 and NSEFO-TCS is 210)

MTM P/L of NSEEQ-ACC = (40 * (110 – 100.571)) = 40 * 9.42857 = 200 (i.e. MTM Profit: 457.144, MTM Loss: 0)

MTM P/L of NSEFO-TCS = (300 * (210 - 203.333)) = -300 * 10 = 3000 (i.e. MTM Profit: 3000, MTM Loss: 0)

Case 6: Trade Modification

Assume following position is available for investor CLI1

Assume LTP of ACC is 110 and LTP of TCS is 220

👤 CLI📊 Seg🔧 Prod📦 Cont.📈 OBQ💰 OBP💵 OBV📉 OSQ💰 OSP💵 OSV
CLI1NSEEQMarginACC501005000000
CLI2NSEEQMarginACC000000

In this case, CLI1 has NSEEQ-ACC with 50 Buy Open position and CLI2 has no open position

Accordingly, MTM P/L of CLI1 = (50 * (110 – 100)) = 50 * 10 = 500 (i.e. MTM Profit: 500, MTM Loss: 0)

Now, perform trade modification of 50 Buy open position of NSEEQ-ACC from CLI1 to CLI2

👤 CLI📊 Seg🔧 Prod📦 Cont.📈 OBQ💰 OBP💵 OBV📉 OSQ💰 OSP💵 OSV
CLI1NSEEQMarginACC000000
CLI2NSEEQMarginACC501005000000

After trade modification, CLI1 has no open position and CLI2 has 50 Buy Open position

Accordingly, MTM P/L of CLI2 = (50 * (110 – 100)) = 50 * 10 = 500 (i.e. MTM Profit: 500, MTM Loss: 0)

MTM Profit/Loss

👤 CLI📊 Before Trade Modification📊 After Trade Modification
CLI15000
CLI20500

Case 7: Impact of INTEROP- ON/OFF

Assume following position is available in the system:

👤 CLI📊 Seg🔧 Prod📦 Cont.📈 OBQ💰 OBP💵 OBV📉 OSQ💰 OSP💵 OSV
CLI1NSEEQMarginACC501005000000
CLI2BSEEQMarginACC000301053150

Assume LTP of ACC in respective exchange

📊 Seg📦 Symbol📈 LTP
NSEEQACC110
BSEEQACC112
MSEEQACC113

Consider INTEROP is ON and Default Base Exchange for Market Data is (CASH- BSSEQ) on Master Config

Accordingly, If INTEROP is ON -then system shall refer combined exchange exposure

In this case, 20 Buy Open position is available on NSEEQ-ACC-Margin as per combined Exposure and system should refer BSE EQ Exchange Market data for calculation as per Master Config

MTM P/L of combined exposure = (20 * (112 – 100)) = 20 * 12 = 240 (i.e. MTM Profit: 240, MTM Loss: 0)

Consider INTEROP is OFF

Accordingly, in this case, 50 Buy Open position is available on NSEEQ-ACC-Margin and 30 Sell Open Position is available on BSEEQ-ACC-Margin and system should refer respective Exchange Market data for MTM Calculation

MTM P/L of NSEEQ-ACC = (50 * (110 – 100)) = 50 * 10 = 500 (i.e. MTM Profit: 500, MTM Loss: 0)

MTM P/L of BSEEQ-ACC = (-30 * (112 – 105)) = -30 * 7 = -210 (i.e. MTM Profit: 0, MTM Loss: -210)

Note: Incase the scrip in which the position is available is not listed in the default exchange (i.e. Assume if ACC is not listed in BSE EQ which is configured as default exchange for referring Market data, then system should refer the Market data of NSEEQ exchange (i.e. 110), in case if ACC is not listed in NSEEQ, then system should refer the Market data of MSEEQ Exchange (i.e. 113) in the sequential way.

If Investor having position only in one exchange, then system shall consider respective exchange Market data. If Investor having position in Multiple exchange, then market data of default exchange configured in Market segment is referred.

Case 8: Master config Key configuration

📊 Seg🔧 Inst📅 Exp.💲 Stk. Price🎯 Opt. Type📦 Cont.📈 EBQ💵 EBV📉 ESQ💵 ESV📈 OBQ💰 OBP💵 OBV📉 OSQ💰 OSP💵 OSV
NSEEQ----ACC0000501005000000
NSEFOFUTSTKExp1--TCS0000000600200120000
NSEFOOPTSTKExp120CEIOB5001500000025031077500000

Assume

📊 Seg📦 Cont.📏 Lot Size💰 LCP📈 LTP
NSEEQACC-102110
NSEFOTCS300210220
NSEFOIOB250325330

Assume following key configuration in Master Config:

🔑 Key📊 Parameter💡 Value
Enable MTM calculationMargin- CashOFF
Enable MTM CalculationCarryforward- FutureON
Enable MTM for Long PositionCarryforward- OptionON
Enable MTM for Short PositionCarryforward- OptionON
Uploaded Buy position value MTMCarryforward- Option1- Uploaded Price
Uploaded Sell position value MTMCarryforward- Option1- Uploaded Price

Accordingly,

  1. System should not compute MTM Profit/Loss for CASH Segment with Margin product type.
  2. System should compute MTM Profit/Loss for Future instrument (as per above position MTM P/L for NSEFO-Future-TCS is (- 600* (220- 200) = - 600 * 20 = -12000)
  3. System should compute MTM Profit/Loss for Option instrument (as per above position MTM P/L for NSEFO-Option-IOB is (750 * (330- 303.333) = 750 * 26.6667 = 20000

Note:

  1. Based on the MTM Profit/Loss computed as per the open position and Price consideration as per configuration specified in the above scenarios, system should store the computed MTMP/L against 1st falling SIP to adjust the same for Margin utilization and validation.
  2. Based on the MTM Profit/Loss computed as per the open position and Price consideration as per configuration specified in the above scenarios, system should store the computed MTMP/L against each falling MTM Group as per template mapped.
  3. No impact of order modification/cancellation on MTM Calculation as fresh order does not have any impact on MTM calculation.
  4. In case, if investor is having position in one Exchange, then system shall refer market data (i.e. LTP) of respective segment. In Case is investor is having position in multiple exchange, then system shall refer Market data of Default exchange defined in the Master Config.