📊 Scrip Basket Margin Template
Scrip Basket Template is used to define the set of scrip along with applicable margin for respective product type which will be mapped to entity for margin calculation and trading. Scrip Basket Functionality to be used to define two major features. One is to define the allowed scrip for specific product and another is to define the preferred margin %.
One or more Scrip Basket Template can be mapped to entity.
⚙️ Template Creation
Scrip Basket Template should be created with the combination of Market Segment, Instrument, Symbol, Series, Contract type, Expiry Date, Strike Price, Option Type, ITM %, OTM %, Product.
Template created here should be allowed to Map in Template Mapping view for entity and users.
Either one or multiple scrip basket template is allowed to map to the user\entity in template mapping window.
System should allow to place the orders only in the scrips which is available in the scrip basket template which is mapped to the user\entity and system should compute the margin as per the margin percentage defined for the scrips in the mapped scrip basket template.
System should have a following set of fields to create, view and fetch Scrip Basket Template.
🔧 Template Controls
| 📝 Control Name | ⚙️ Business Logic |
|---|---|
| Template Name | - Control Type: Entry Field + Drop-Down list - Should allow to enter the Template Name with Alpha Numeric and allowable Special Characters - Template Name should not be more than length mentioned in API - Duplicate template name creation should not be allowed - Should display the list of Template Name on search of Key Name - System should allow to add\remove\update the scrips under the created template. - System should fetch and display the available records in the "Scrip Basket Records" gird view as per the template name selected in this field and as per the list of combinations selected in the filter. - System should allow to create multiple scrip basket template with different template name. Template name should be unique. - Templates created here should be displayed in the "Template Mapping View" to map with entity \user. |
| Save | - Control Type: Button - On click of SAVE button, scrip basket rules added for the Template should get saved into the system. - Popup message should be displayed while on click of SAVE button without entering the template name. - Popup String should be like "Template Name should not be blank' - On click of SAVE button, system should validate following conditions: Minimum one scrip basket record should be available while saving the template. |
| Save As | - Control Type: Button - "SAVE AS" option is used to create the copy of existing template with new template name with a small modification in the records available in the existing template (or) without any modification. - "Save As" option should get enable while after selecting the template Name in the "product template" dropdown list. - On Click of "Save As" button- system should popup a child Window with label as: "Product Template" and an entry field to enter the 'New template Name' with "OK" and "CANCEL" options. - If "OK" is selected, then new template should get saved into the system with all scrip basket rules else if "CANCEL" is selected then Child window should get closed without saving the record. - System should validate the New template name with the existing templates available, if same name is entered, then system should popup an alert message as "Template Name Already Exists". |
📦 Scrip Basket Rule Combination Selections
System should have following drop-down options to set applicable margin at scrip level
| 🔧 Control Name | 📝 Business Logic |
|---|---|
| Market Segment | - Control Type: Drop-Down list - Should display the list of Market Segment available in the system based on the license. - If license is update with New Segment, same should display here in the Dropdown list. - "All Equity" option should be available in the dropdown list – "All Equity" refers to clubbing of All Equity Market Segment available in the system - "All FNO" option should be available in the dropdown list – "All FNO" refers to clubbing of All Derivative Market Segment available in the system - "All CDS" option should be available in the dropdown list – "All CDS" refers to clubbing of All Currency Market Segments available in the system - "All COM" option should be available in the Dropdown list – "All COM" refers to clubbing of All Commodity Market Segment available in the system. - Base exchange should be available incase of interop is OFF and Combined exchange should be available incase of interop is ON for the respective segments in Market Segment field. |
| Instrument Type | - Control Type: Drop-Down list - Should display the following Instrument type available in the dropdown. - Future - Option |
| Symbol | - Control Type: Drop-Down list - System should populate the list of symbols available for the respective segment and Instrument type selected. - On entering the Keyword of the symbol name-system should fetch and populate the list of Scrips\Contracts available for the segment selected in "Market Segment" dropdown. - (i.e.: if Market Segment is selected as "NSE Equity" and on search of 'AC' – system should populate "ACC" and for derivative segment is market segment "NSE Derivative" and on search of "APO"-System should populate "APOLLOHOSP"," APOLLOTYRE") - For Derivative, Currency and commodity like segments, future and option contracts should get loaded on the same time. |
| Series | - Control Type: Drop-Down list - This field should get enable only for equity like segments i.e.: when Market Segment is selected as "All, All Equity, NSE Equity, BSE Equity and MSE Equity". |
| Contract Type | - Control Type: Drop-Down list - This field should get enable for derivative, currency, commodity like segments selected in the "Market Segment" drop-down. - Drop-down list should contain the items like "Weekly" and "Monthly". |
| Expiry Date | - Control Type: Entry for Date in DD/MM/YYYY format and Calendar Selection - This field should get enable for derivative, currency, commodity like segments selected in the "Market Segment" drop-down. - Drop-down should display the list of weekly Expiry Dates available in the system for the selected contract as "Current", "Current+1", "Current+2" till "Current+15" - "ALL" option Should be available in the List. "ALL" refers to Clubbing of All Expiry Date available for the contract. |
| Strike Price | - Control Type: Drop-Down list. - This Drop down will have "ALL" option and disabled. - This field should be mandatory only if Option contract is selected in the scrip combination. - Send "-1" in strike price in API for "ALL". - This field should get enable for derivative, currency, commodity like segments selected in the "Market segment drop-down. |
| Option Type | - This field should get enable for derivative, currency, commodity like segments selected in the "Market Segment" drop down. - Drop-down list should display the list of Option type available in the system (i.e.: CE and PE) for the contract loaded in "Symbol" and "Expiry Date" field. - By default, field should be blank. - This field should be mandatory only if Option contract is selected in the scrip combination. |
| ITM % | - Control Type: Entry percentagefield. - System should allow to enter In The Money Percentage. - This field is applicable for defining the ITM Percentage for Option Contracts. |
| OTM % | - Control Type: Entry percentagefield. - System should allow to enter OUT Of Money Percentage. - This field is applicable for defining the OTM Percentage for Option Contracts. |
| Product Type | - Control Type: Drop-Down list. - Should display the list of Product types available in the system. - If New product type is added by the member in the system, then same should be displayed here in the dropdown list. - Following item should be displayed in the drop-down list- - Margin - Delivery - Intraday - Carryforward - Margi-Plus - Bracket Order |
Action Controls
| 🔧 Control | 📦 Type |
|---|