Skip to main content

Get Analytics Data

This API returns the analytics data for the Wave Screener based on the selected parameters. It accepts the Index/Sector selection, instrument type, and expiry selection to fetch the relevant analytics results.

The parameter values required for this API are obtained from two preceding APIs in the Screener flow — Get Index Sector List and Scanner Details

API Flow

This is Step 3 (the final step) of the Wave Screener API sequence. Ensure you have called Get Index Sector List and Scanner Details first to obtain the required parameter values.

ParameterSource
mktSegIdResponse of Get Index Sector List API (nMktSegId field)
indexSectorResponse of Get Index Sector List API (Name field)
redisKeyResponse of Scanner Details API (ScannerKey_1 or ScannerKey_2 field)
futureOptionUser selection on the UI
nearFarUser selection on the UI

🔗 Endpoint

MethodURL
GET{{hosturl}}/nontransactional/:comid/:versionid/getAnalyticsData/:screenerType/:mktSegId/:indexSector/:redisKey/:futureOption/:nearFar

🛣️ Path Parameters

ParameterTypeRequiredDescriptionExampleAllowed Values
comidstringYesTenant ID1404
versionidstringYesAPI version identifierv1
screenerTypestringYesType of screener. Currently fixed for the Screener flow."WaveScreener""WaveScreener"
mktSegIdintegerYesMarket Segment ID obtained from the Get Index Sector List API response.1, 8Any valid nMktSegId from Get Index Sector List
indexSectorstringYesThe Index or Sector name selected by the user, obtained from the Get Index Sector List API response."All", "Nifty 50"Any valid Name from Get Index Sector List
redisKeystringYesThe System generated key for the selected scanner, obtained from the Scanner Details API response."PriceGainers_", "52WeekHigh_"Any valid ScannerKey_1 or ScannerKey_2 from Scanner Details
futureOptionstringYesInstrument type selected by the user."FUT""FUT", "OPT", "CE", "PE", "All"
nearFarstringYesExpiry selection made by the user."NEAR""NEAR", "NEXT", "FAR"

📖 Parameter Value Reference

futureOption — Instrument Type

ValueDescription
FUTFutures
OPTOptions
CECall
PEPut
AllAll instruments

nearFar — Expiry Selection

ValueDescription
NEARNear month expiry
NEXTNext month expiry
FARFar month expiry

🔑 Header Parameters

ParameterTypeDescriptionExample
Content-TypestringContent type for requestapplication/json
AuthorizationstringBearer token for authentication{{access_token}}

🟢 Success Response - 200 OK

FieldTypeDescriptionExample
statusbooleanIndicates whether the request was successfultrue
resultarrayArray of analytics data objects matching the selected parametersSee below

📘 Result Object Fields

FieldTypeDescriptionExample
nMarketSegmentIdstringMarket Segment ID of the instrument"2"
nTokenstringUnique token identifying the instrument"67595"
sSymbolstringSymbol name of the instrument"BANKNIFTY"
sSeriesstringSeries of the instrument"XX"
sSectorNamestringSector name, if applicable""
nExpiryDatestringExpiry date as Unix timestamp"1464273000"
nExpiryMonthintegerExpiry month number3
nOpenstringOpening price"1842.40"
nClosestringPrevious closing price"438.45"
nHighstringDay's high price"1871.55"
nLowstringDay's low price"1842.40"
nVolumeintegerVolume traded180
nPrevVolumeChangestringPercentage change in volume compared to previous day"-15.6"
nPrevTotalQtyTradedintegerTotal quantity traded in the previous session0
nOpenInterestChangenumberChange in Open Interest0
nOpenInterestintegerCurrent Open Interest30
nStrikePricestringStrike price (applicable for Options)"57700.00"
sInstrumentNamestringInstrument type name"OPTIDX"
sOptionTypestringOption type — CE for Call, PE for Put"PE"
nPercChangestringPercentage price change"321.93"
nLTPstringLast Traded Price"1849.95"
nDatanumberNumeric data value used for sorting/ranking within the scanner321.92952446117005
sDatastringString representation of nData"321.93"
nAssetTokenintegerToken of the underlying asset26009
sISINCodestringISIN code of the instrument, if available""

📋 Sample Request URL

GET {{hosturl}}/nontransactional/1404/v1/getAnalyticsData/WaveScreener/2/All/PriceGainers_/PE/Far

📋 Sample Response

{
"status": true,
"result": [
{
"nMarketSegmentId": "2",
"nToken": "67595",
"sSymbol": "BANKNIFTY",
"sSeries": "XX",
"sSectorName": "",
"nExpiryDate": "1464273000",
"nExpiryMonth": 3,
"nOpen": "1842.40",
"nClose": "438.45",
"nHigh": "1871.55",
"nLow": "1842.40",
"nVolume": 180,
"nPrevVolumeChange": "-15.6",
"nPrevTotalQtyTraded": 0,
"nOpenInterestChange": 0,
"nOpenInterest": 30,
"nStrikePrice": "57700.00",
"sInstrumentName": "OPTIDX",
"sOptionType": "PE",
"nPercChange": "321.93",
"nLTP": "1849.95",
"nData": 321.92952446117005,
"sData": "321.93",
"nAssetToken": 26009,
"sISINCode": ""
}
]
}