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
Parameter | Description | Data types | Example |
---|---|---|---|
userId | User Id of the login user | String | "AA1999" |
exchange | Exchange | String | "BSE" |
token | Contract Token | String | "26000" |
jKey | Key Obtained on login success. | String | "d4180daa72ea70885ab0d 0fb38f0fa5796352b57de0 641d4442294b87f2b7315" |
- cURL
curl --location 'http://connect.thefirstock.com/api/V3/getQuote/ltp' \
--header 'Content-Type: application/json' \
--data '{
"userId": "AA123",
"jKey": "e6a211bea63adff386578988e1cf4a9521c4744e6a39ad63174c8797e2af8c38",
"exchange": "NSE",
"token": "26000"
}'
from thefirstock import thefirstock
getQuoteLTP = thefirstock.firstock_getQuoteLTP(
exchange="NSE",
token="26000"
)
const Firstock = require("thefirstock");
const firstock = new Firstock();
firstock.getQuoteltp(
{
exchange: "NSE",
token: "26000",
},
(err, result) => {
console.log("getQuoteltp Error, ", err);
console.log("getQuoteltp Result: ", result);
}
);
using thefirstock;
class Program
{
public static void Main()
{
Firstock firstock = new Firstock();
var result = firstock.getQuoteltp(exchange: "NSE", token: "26000");
}
}
Success response details
Parameter | Description | Data types | Examples |
---|---|---|---|
status | Success | String | "Success |
data.requestTime | It will be present only on successful response. | String | "12:25:00 18-03-2023" |
data.companyName | Company Name | String | "Nifty Fin Service" |
data.exchange | NSE, BSE, NFO, BFO | String | "NSE" |
data.token | token | String | "26037" |
data.lastTradedPrice | last Traded Price | String | "17567.05" |
Failure response details
Parameter | Description | Data Type | Example |
---|---|---|---|
status | Failed | String | "Failed" |
code | HTTP Code | String | "400" |
name | Type of error | String | "EXCHANGE/TOKEN" |
error.field | Error field | String | "exchange/token" |
error.message | Error message | String | "Invalid Exchange/Token" |
Sample response
- Success response
- Failure Response
{
"status": "Success",
"data": {
"requestTime": "12:25:00 18-03-2023",
"companyName": "Nifty Fin Service",
"exchange": "NSE",
"token": "26037",
"lastTradedPrice": "17567.05"
}
}
{
"status": "Failed",
"code": "400",
"name": "EXCHANGE/TOKEN",
"error": {
"field": "exchange/token",
"message": "Invalid Exchange/Token"
}
}