GET SCRIP FOR SECOND LEG
This API retrieves the corresponding scrip details for the second leg of a strategy or multi-leg order based on the contract parameters provided.
The response includes token, lot size, strike price, option type, expiry details, and other contract-specific attributes required to construct the second leg.
🔗 Path Parameters
| Fields | Type | Required | Description | Example |
|---|
| tenantid | string | Yes | Unique id provided for the tenant by SIPL | tenant001 |
| Fields | Type | Required | Description | Example |
|---|
| Authorization | string | Yes | Bearer token for authentication | access_token |
| x-api-key | string | Yes | API key provided | x-api-key |
🔍 Query Parameters
| Fields | Type | Required | Description | Example |
|---|
| userId | string | Yes | User ID (UCC) | {{user_id}} |
📦 Request Body Schema
| Fields | Type | Required | Description | Example |
|---|
| mktSegid | integer | Yes | Market Segment ID | 2 |
| symbol | string | Yes | Symbol code provided in exchange scrip master file | NIFTY |
| instrument | string | Yes | Instrument type of the contract | OPTIDX |
| strikeprice | integer | No | Strike price of the contract in paise | 2500000 |
| optiontype | string | No | Option type | CE |
| expiryDate | string | No | Expiry date of the contract | 2026-07-30 |
🟢 Success Response - 200 OK
| Fields | Type | Description | Example |
|---|
| status | string | Status of API call | "success" |
| code | string | Response code | "s-101" |
| message | string | Success message | "Scrip details fetched successfully" |
| data | object | Scrip details for the second leg | See below table |
📘 Data Object Fields
| Fields | Type | Description | Example |
|---|
| nToken | integer | Token number received from Exchange Scrip Master | 56838 |
| sSymbol | string | Symbol code provided in exchange scrip master | "NIFTY" |
| nRegularLot | integer | Regular lot size | 50 |
| nPriceTick | integer | Price tick | 5 |
| sSeries | string | Series to which the scrip belongs | "EQ" |
| sSecurityDesc | string | Security description | "NIFTY JUL 25000 CE" |
| sInstrumentName | string | Instrument name | "OPTIDX" |
| nExpiryDate | integer | Expiry date of the contract | 20260730 |
| nPriceBdAttribute | integer | Price band attribute | 0 |
| nStrikePrice | integer | Strike price of the contract in paise | 2500000 |
| sOptionType | string | Option type | "CE" |
| nFIILimit | integer | FII limit | 100 |
| nNRILimit | integer | NRI limit | 100 |