Get Quotes
The market quotes APIs enable you to retrieve market data snapshots of various instruments. These are snapshots gathered from the exchanges at the time of the request. For realtime streaming market quotes, use the WebSocket API.
POST: /apiV2/getQuotes
https://connect.thefirstock.com/apiV2/getQuotes
Request Details
Parameter | Description |
---|---|
userId | User Id of the login user |
exchange | Exchange |
token | Contract Token |
jKey | Key Obtained on login success. |
Code
curl -X POST 'https://connect.thefirstock.com/apiV2/getQuotes' \
-H 'Content-Type: application/json' \
-d '{
"userId": "",
"jKey": "",
"exchange": "",
"token": ""
}'
from thefirstock import thefirstock
getQuotes = thefirstock.firstock_getQuotes(
exchange="",
token=""
)
const Firstock = require('thefirstock');
const firstock = new Firstock();
firstock.getQuotes({
exchange: "",
token: ""
}, (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.getQuotes(exchange: "NSE", token: "26000");
}
}
Success Response Details
Parameter | Description |
---|---|
Status | Success |
data.requestTime | It will be present only on successful response. |
data.exchange | NSE, BSE, NFO |
data.tradingSymbol | Trading symbol |
data.companyName | Company Name |
data.symbolName | Symbol Name |
data.segment | Segment |
data.instrumentName | instname |
data.pricePrecision | Price precision |
data.tickSize | Tick size |
data.lotSize | Lot size |
data.multipler | Multiplier |
data.priceFactor | Price factor ((GN / GD) * (PN/PD) ) |
data.token | Token |
data.lastTradedPrice | LTP |
data.isin | ISIN |
data.upperCircuit | Upper circuit limit |
data.lowerCircuit | Lower circuit limit |
data.dayHighPrice | Day High Price |
data.dayLowPrice | Day Low Price |
data.volume | Volume |
data.lastTradedQuantity | Last trade quantity |
data.lastTradeTime | Last trade time |
data.bestBuyPrice1 | Best Buy Price 1 |
data.bestBuyPrice2 | Best Buy Price 2 |
data.bestBuyPrice3 | Best Buy Price 3 |
data.bestBuyPrice4 | Best Buy Price 4 |
data.bestBuyPrice5 | Best Buy Price 5 |
data.bestSellPrice1 | Best Sell Price 1 |
data.bestSellPrice2 | Best Sell Price 2 |
data.bestSellPrice3 | Best Sell Price 3 |
data.bestSellPrice4 | Best Sell Price 4 |
data.bestSellPrice5 | Best Sell Price 5 |
data.bestBuyQuantity1 | Best Buy Quantity 1 |
data.bestBuyQuantity2 | Best Buy Quantity 2 |
data.bestBuyQuantity3 | Best Buy Quantity 3 |
data.bestBuyQuantity4 | Best Buy Quantity 4 |
data.bestBuyQuantity5 | Best Buy Quantity 5 |
data.bestSellQuantity1 | Best Sell Quantity 1 |
data.bestSellQuantity2 | Best Sell Quantity 2 |
data.bestSellQuantity3 | Best Sell Quantity 3 |
data.bestSellQuantity4 | Best Sell Quantity 4 |
data.bestSellQuantity5 | Best Sell Quantity 5 |
data.bestBuyOrder1 | Best Buy Order 1 |
data.bestBuyOrder2 | Best Buy Order 2 |
data.bestBuyOrder3 | Best Buy Order 3 |
data.bestBuyOrder4 | Best Buy Order 4 |
data.bestBuyOrder5 | Best Buy Order 5 |
data.bestSellOrder1 | Best Sell Order 1 |
data.bestSellOrder2 | Best Sell Order 2 |
data.bestSellOrder3 | Best Sell Order 3 |
data.bestSellOrder4 | Best Sell Order 4 |
data.bestSellOrder5 | Best Sell Order 5 |
Sample Response
{
"Status": "Success",
"data": {
"requestTime": "20:36:18 11-10-2022",
"companyName": "ACC LIMITED",
"exchange": "NSE",
"tradingSymbol": "ACC-EQ",
"symbolName": "ACC",
"segment": "EQT",
"instrumentName": "EQ",
"pricePrecision": "2",
"lotSize": "1",
"tickSize": "0.05",
"multipler": "1",
"priceFactor": "(1 / 1 ) * (1 / 1)",
"token": "22",
"lastTradedPrice": "2311.65",
"company": "2369.25",
"isin": "INE012A01025",
"upperCircuit": "2542.80",
"lowerCircuit": "2080.50",
"dayHighPrice": "2376.75",
"dayLowPrice": "2305.70",
"volume": "380893",
"lastTradedQuantity": "2",
"lastTradeTime": "15:53:58",
"bestBuyPrice1": "2311.65",
"bestBuyPrice2": "0.00",
"bestBuyPrice3": "0.00",
"bestBuyPrice4": "0.00",
"bestBuyPrice5": "0.00",
"bestSellPrice1": "0.00",
"bestSellPrice2": "0.00",
"bestSellPrice3": "0.00",
"bestSellPrice4": "0.00",
"bestSellPrice5": "0.00",
"bestBuyQuantity1": "1",
"bestBuyQuantity2": "0",
"bestBuyQuantity3": "0",
"bestBuyQuantity4": "0",
"bestBuyQuantity5": "0",
"bestSellQuantity1": "0",
"bestSellQuantity2": "0",
"bestSellQuantity3": "0",
"bestSellQuantity4": "0",
"bestSellQuantity5": "0",
"bestSellOrder1": "0",
"bestSellOrder2": "0",
"bestSellOrder3": "0",
"bestSellOrder4": "0",
"bestSellOrder5": "0",
"bestBuyOrder1": "1",
"bestBuyOrder2": "0",
"bestBuyOrder3": "0",
"bestBuyOrder4": "0",
"bestBuyOrder5": "0"
}
}
{
"Status": "Failed",
"data": "Error Occurred : 5 \"no data\""
}