Get multi quotes 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/getMultiQuotes/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/getMultiQuotes/ltp' \
--header 'Content-Type: application/json' \
--data '{
"userId": "AA123",
"jKey": "e6a211bea63adff386578988e1cf4a9521c4744e6a39ad63174c8797e2af8c38",
"data": [
{ "exchange": "NSE", "token": "26000"},
{ "exchange": "NFO", "token": "55101"}
]
}'
from thefirstock import thefirstock
getMultiQuotesLTP = thefirstock.firstock_getMultiQuoteLTP(
dataToken=[
{
"exchange": "NSE",
"token": "26000"
},
{
"exchange": "NFO",
"token": "55101"
}
]
)
const Firstock = require("thefirstock");
const firstock = new Firstock();
firstock.getMultiQuotesltp(
{
data: [
{ exchange: "NSE", token: "26000" },
{ exchange: "NFO", token: "55101" },
],
},
(err, result) => {
console.log("getMultiQuotesltp Error, ", err);
console.log("getMultiQuotesltp Result: ", result);
}
);
using thefirstock;
class Program
{
public static void Main()
{
Firstock firstock = new Firstock();
var result = firstock.getMultiQuotesltp(data: new List<MultiQuotesltpsObject>() {
new MultiQuotesltpsObject{
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:29:12 18-03-2023" |
data.companyName | Company Name | String | "NIFTY INDEX" |
data.exchange | NSE, BSE, NFO, BFO | String | "NSE" |
data.token | token | String | "26000" |
data.lastTradedPrice | last Traded Price | String | "17438.65" |
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": [
{
"token": "26000",
"result": {
"requestTime": "12:29:12 18-03-2023",
"companyName": "NIFTY INDEX",
"exchange": "NSE",
"token": "26000",
"lastTradedPrice": "17438.65"
}
}
]
}
{
"status": "Success",
"data": [
{
"status": "Failed",
"code": "400",
"name": "EXCHANGE/TOKEN",
"error": {
"field": "exchange/token",
"message": "Invalid Exchange/Token"
}
}
]
}