Skip to main content

Get quote ltp

Our market quotes APIs provide you with access to up-to-date market data for various instruments. These data snapshots are collected directly from the exchanges in real-time, ensuring the accuracy of the information at the time of your request. For real-time streaming market quotes, we recommend utilizing our WebSocket API.

Method: POST

https://connect.thefirstock.com/api/V3/getQuote/ltp

Request details

ParameterDescriptionData typesExample
userIdUser Id of the login userString"AA1999"
exchangeExchangeString"BSE"
tokenContract TokenString"26000"
jKeyKey Obtained on login success.String"d4180daa72ea70885ab0d
0fb38f0fa5796352b57de0
641d4442294b87f2b7315"
curl --location 'http://connect.thefirstock.com/api/V3/getQuote/ltp' \
--header 'Content-Type: application/json' \
--data '{
"userId": "AA123",
"jKey": "e6a211bea63adff386578988e1cf4a9521c4744e6a39ad63174c8797e2af8c38",
"exchange": "NSE",
"token": "26000"
}'

Success response details

ParameterDescriptionData typesExamples
statusSuccessString"Success
data.requestTimeIt will be present only on successful response.String"12:25:00 18-03-2023"
data.companyNameCompany NameString"Nifty Fin Service"
data.exchangeNSE, BSE, NFO, BFOString"NSE"
data.tokentoken String"26037"
data.lastTradedPricelast Traded Price String"17567.05"

Failure response details

ParameterDescriptionData TypeExample
statusFailedString"Failed"
codeHTTP CodeString"400"
nameType of errorString"EXCHANGE/TOKEN"
error.fieldError fieldString"exchange/token"
error.messageError messageString"Invalid Exchange/Token"

Sample response

{
"status": "Success",
"data": {
"requestTime": "12:25:00 18-03-2023",
"companyName": "Nifty Fin Service",
"exchange": "NSE",
"token": "26037",
"lastTradedPrice": "17567.05"
}
}