Skip to main content

Day Interval

The Get Time Price Series APIs enable you to get chart data for analysis day wise.

Method: POST

https://connect.thefirstock.com/api/V3/timePriceSeries

Request details

ParameterDescriptionData typesExample
userIdLogged in User IdString"AA1999"
exchangeExchangeString"NSE"
tokenTrading SymbolString"RELIANCE-EQ"
startTimeStart time (use 24hr Date time) dd/mm/yyyy HH:mm:ssString"17/02/2023 15:29:00"
endTimeEnd Time (use 24hr Date time) dd/mm/yyyy HH:mm:ssString"20/02/2023 09:20:00"
jKeyKey Obtained on login success.String"d4180da989ea70885ab0d
0fb38f0f225796352b57de0
641d4442294b87f0b7310"
intervaltime intervalString"DAY"
curl -X POST 'https://connect.thefirstock.com/api/V3/timePriceSeries'
-H 'Content-Type: application/json'
--data '{
"userId": "AA123",
"exchange": "NSE",
"token": "RELIANCE-EQ",
"startTime": "17/01/2023 15:29:00",
"endTime": "21/03/2023 09:20:00",
"interval": "DAY",
"jKey": "e6a211bea63adff386578988e1cf4a9521c4744e6a39ad63174c8797e2af8c38"
}'

Success response details

ParameterDescriptionData TypeExample
statusOk or Not_Ok
TP Data success indication.
String"ok"
data.timeDD/MM/CCYY hh:mm:ssString"25-08-2022 10:58:00"
data.ssboesecond since begin of epochString"1661405340"
data.intoInterval openString"2298.05"
data.inthInterval highString"2299.20"
data.intlInterval lowString "2298.00"
data.intcInterval closeString"2299.20"
data.intvwrapInterval vwrapString"2299.02"
data.intvInterval volumeString"478"
data.vvolumeString"92262"
data.intoiInterval io changeString"0"
data.oioiString"0"

Failure response details

ParameterDescriptionData TypeExample
statusFailedString"Failed"
codeHTTP CodeString"401"
nameType of errorString"INVALID_USERID"
error.fieldError fieldString"userid"
error.messageError messageString"userid parameter is invalid"

Sample response

{
"status": "Success",
"data": [
{
"stat": "Ok",
"time": "25-08-2022 10:59:00",
"ssboe": "1661405340",
"into": "2298.05",
"inth": "2299.20",
"intl": "2298.00",
"intc": "2299.20",
"intvwap": "2299.02",
"intv": "478",
"intoi": "0",
"v": "92740",
"oi": "0"
},
{
"stat": "Ok",
"time": "25-08-2022 10:58:00",
"ssboe": "1661405280",
"into": "2298.60",
"inth": "2299.00",
"intl": "2298.30",
"intc": "2298.70",
"intvwap": "2299.02",
"intv": "326",
"intoi": "0",
"v": "92262",
"oi": "0"
},
]
}