Get Time Price Data (Chart data)
/NorenWClientAPI/TPSeriesAuthorization token is required. Enter your access_token from GenAcsTok above.
"Use proxy" sends this request through this website's server, which never logs request or response bodies. Infinn sees the docs server's IP, not yours. Turn it off to send directly from your browser instead.
jData fields
Values are sent as a JSON string in the jData form field.
Logged in User Id
- Example:
YOUR_USER_ID - Where to get it: The ID you log in with at trade.infinn.in (User ID = Client ID). Also returned as uid by GenAcsTok.
Exchange
- Example:
NSE - Where to get it: 'exarr' array in the UserDetails response.
- Allowed: NSE, NFO, BSE, MCX, CDS, NCX, BFO, BCD
Top or Bottom
- Example:
2885 - Where to get it: SearchScrip reply, or the Token column of the symbol file.
Start time (seconds since 1 jan 1970)
End time (seconds since 1 jan 1970)
Authorization Token
Required for all API calls. Use the access_token from the GenAcsTok response as a Bearer token.
⚠ When "Use proxy" is on, this token is sent through this website's server on its way to Infinn. It is never logged here, but if you would rather it never leave your browser, turn off "Use proxy" above or use the ready code with your own client instead.
Request to be POSTed to url : /NorenWClientAPI/TPSeries
Request Details
| Parameter Name | Possible value | Description |
|---|---|---|
| jData* | Should send json object with fields in below list | |
| Authorization* | Bearer <access_token> | access_token from GenAcsTok response. Required for all API calls. |
| Json Fields | Possible value | Description |
|---|---|---|
| uid* | Logged in User Id | |
| exch* | Exchange | |
| token* | Top or Bottom | |
| st | Start time (seconds since 1 jan 1970) | |
| et | End time (seconds since 1 jan 1970) |
Response Details
Response data will be in json format in case for failure:
| Json Fields | Possible value | Description |
|---|---|---|
| stat | Not_Ok | TPData failure indication. |
| emsg | This will be present only in case of errors. |
Response data will be in json format in case for success:
| Json Fields | Possible value | Description |
|---|---|---|
| stat | Ok | TPData success indication. |
| time | DD/MM/CCYY hh:mm:ss | |
| into | Interval open | |
| inth | Interval high | |
| intl | Interval low | |
| intc | Interval close | |
| intvwap | Interval vwap | |
| intv | Interval volume | |
| v | volume | |
| intoi | Interval io change | |
| oi | oi |
Sample Success Response
[
{
"stat":"Ok",
"time":"02-06-2020 15:46:23",
"into":"0.00",
"inth":"0.00",
"intl":"0.00",
"intc":"0.00",
"intvwap":"0.00",
"intv":"0",
"intoi":"0",
"v":"980515",
"oi":"128702"
},
{
"stat":"Ok",
"time":"02-06-2020 15:45:23",
"into":"0.00",
"inth":"0.00",
"intl":"0.00",
"intc":"0.00",
"intvwap":"0.00",
"intv":"0",
"intoi":"0",
"v":"980515",
"oi":"128702"
},
{
"stat":"Ok",
"time":"02-06-2020 15:44:23",
"into":"0.00",
"inth":"0.00",
"intl":"0.00",
"intc":"0.00",
"intvwap":"0.00",
"intv":"0",
"intoi":"0",
"v":"980515",
"oi":"128702"
},
{
"stat":"Ok",
"time":"02-06-2020 15:43:23",
"into":"1287.00",
"inth":"1287.00",
"intl":"0.00",
"intc":"1287.00",
"intvwap":"128702.00",
"intv":"4",
"intoi":"128702",
"v":"980515",
"oi":"128702"
},
{
"stat":"Ok",
"time":"02-06-2020 15:42:23",
"into":"0.00",
"inth":"0.00",
"intl":"0.00",
"intc":"0.00",
"intvwap":"0.00",
"intv":"0",
"intoi":"0",
"v":"980511",
"oi":"128702"
}
]Sample Failure Response
{
"stat":"Not_Ok",
"emsg":"Session Expired : Invalid Session Key"
}curl --request POST \
--url 'https://api.infinn.in/NorenWClientAPI/TPSeries' \
--header 'Authorization: Bearer PASTE_ACCESS_TOKEN_HERE' \
--header 'Content-Type: text/plain' \
--data 'jData={"uid":"YOUR_USER_ID","exch":"NSE","token":"2885"}'