Skip to content

Get Security Info

The Get SecurityInfo APIs enable you to get comliate information about the instruments .


POST: /apiV2/securityInfo

https://connect.thefirstock.com/apiV2/securityInfo

Request Details

Parameter Description
userId User Id of the login user
exchange Exchange
token Contract Token
jKey Key Obtained on login success.

Code

 curl -X POST 'https://connect.thefirstock.com/apiV2/securityInfo' \
     -H 'Content-Type: application/json' \
     -d '{
         "userId": "",
         "jKey": "",
         "exchange": "",
         "token": ""
        }'
from thefirstock import thefirstock

getSecurityInfo = thefirstock.firstock_getSecurityInfo(
    exchange="",
    token=""
)
const Firstock = require('thefirstock');

const firstock = new Firstock();

firstock.getSecurityInfo({
    exchange: "",
    token: ""
 }, (err, result) => {
console.log("Error, ", err)
console.log("Result: ", result)
 })
using thefirstock;

class Program
{
public static void Main()
{
    Firstock firstock = new Firstock();
    var result = firstock.getSecurityInfo(exchange: "NSE", token: "22");
}
}

Response Success Details

Parameter Description
data.requestTime Response received time
Status Success
data.exchange NSE, BSE,NFO
data.tradingSymbol Trading Symbol
data.companyName Company Name
data.symbolName Symbol Name
data.segment Segment
data.instrumentName Intrument Name
data.tickSize Tick Size
data.lotSize Lot Size
data.pricePrecision Price precision
data.mult Multiplier
data.token Contract Token
data.prcftr_d ((GN / GD) * (PN/PD))

Sample Response

{
"Status": "Success",
"data": {
        "exchange": "NSE",
        "tradingSymbol": "Nifty 50",
        "symbolName": "NIFTY",
        "companyName": "NIFTY INDEX",
        "instrumentName": "UNDIND",
        "segment": "EQT",
        "pricePrecision": "2",
        "lotSize": "1",
        "tickSize": "0.05",
        "mult": "1",
        "prcftr_d": "(1 / 1 ) * (1 / 1)",
        "token": "26000"
    }
}
{
 "Status": "Failed",
 "data": "Session Expired :  Invalid Session Key"
}