Time Price Series
The Get Time Price Data APIs enable you to get chart data for analysis.
POST: /apiV2/timePriceSeries
https://connect.thefirstock.com/apiV2/timePriceSeries
Request Details
Parameter | Description |
---|---|
userId | Logged in User Id |
exchange | Exchange |
token | Trading Symbol Token |
starttime | Start time (use 24hr Date time) dd/mm/yyyy HH:mm:ss |
endtime | End Time (use 24hr Date time) dd/mm/yyyy HH:mm:ss |
jKey | Key Obtained on login success. |
intrv | time interval |
Code
curl -X POST 'https://connect.thefirstock.com/apiV2/timePriceSeries' \
-H 'Content-Type: application/json' \
-d '{
"userId": "",
"exchange": "",
"token": "",
"endtime": "",
"starttime": "",
"jKey": "",
"intrv": ""
}'
from thefirstock import thefirstock
timePriceSeries = thefirstock.firstock_TimePriceSeries(
exchange="",
token="",
startTime="",
endTime="",
interval=
)
const Firstock = require('thefirstock');
const firstock = new Firstock();
firstock.timePriceSeries({
exchange: "",
token: "",
endTime: "",
startTime: "",
intrv:""
}, (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.timePriceSeries(
exchange: "NSE",
token: "22",
endTime: "02/08/2022 15:30:08",
startTime: "05/07/2022 10:30:08",
intrv:"3"
);
}
}
Failure Response Details
Parameter | Description |
---|---|
detail.Status | Failed |
detail.data | Type of error |
Success Response Details
Parameter | Description |
---|---|
stat | Ok or Not_Ok TP Data success indication. |
emsg | DD/MM/CCYY hh:mm:ss |
into | Interval open |
inth | Interval high |
intl | Interval low |
intc | Interval close |
intvwrap | Interval vwrap |
intvwrap | Interval vwrap |
intv | Interval volume |
v | volume |
intooi | Interval io change |
oi | oi |
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"
},
]
}
{
"Status": "Failed",
"data": "Session Expired : Invalid Session Key"
}