Skip to main content

Get quote

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

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 'https://connect.thefirstock.com/api/V3/getQuote'
--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"17:42:53 15-02-2023"
data.exchangeNSE, BSE, NFO, BFOString"NSE"
data.tradingSymbolTrading symbolString"Nifty Fin Service"
data.companyNameCompany NameString"Nifty Fin Service"
data.companyCompany String"18595.70"
data.segmentsegment String"EQT"
data.tokentoken String"26037"
data.symbolNameSymbol NameString"FINNIFTY"
data.instrumentNameinstnameString "UNDIND"
data.pricePrecisionPrice precisionString"2"
data.tickSizeTick sizeString"0.05"
data.lotSizeLot sizeString"1"
data.multiplerMultiplierString"1"
data.priceFactorPrice factor ((GN / GD) * (PN/PD) )String"(1 / 1 ) * (1 / 1)"
data.lastTradedPriceLTPString "18636.95"
data.upperCircuitUpper circuit limitString"0.00"
data.lowerCircuitLower circuit limitString"0.00"
data.dayHighPriceDay High PriceString"18663.00"
data.dayLowPriceDay Low PriceString "18494.95"
data.volumeVolumeString"0.00"
data.lastTradedQuantityLast trade quantityString"0.00"
data.lastTradeTimeLast trade timeString"0.00"
data.bestBuyPrice1Best Buy Price 1String"0.00"
data.bestBuyPrice2Best Buy Price 2String "0.00"
data.bestBuyPrice3Best Buy Price 3String"0.00"
data.bestBuyPrice4Best Buy Price 4String"0.00"
data.bestBuyPrice5Best Buy Price 5String"0.00"
data.bestSellPrice1Best Sell Price 1String"0.00"
data.bestSellPrice2Best Sell Price 2String"0.00"
data.bestSellPrice3Best Sell Price 3String"0.00"
data.bestSellPrice4Best Sell Price 4String "0.00"
data.bestSellPrice5Best Sell Price 5String"0.00"
data.bestBuyQuantity1Best Buy Quantity 1String"0.00"
data.bestBuyQuantity2Best Buy Quantity 2String"0.00"
data.bestBuyQuantity3Best Buy Quantity 3String"0.00"
data.bestBuyQuantity4Best Buy Quantity 4String"0.00"
data.bestBuyQuantity5Best Buy Quantity 5String"0.00"
data.bestSellQuantity1Best Sell Quantity 1String"0.00"
data.bestSellQuantity2Best Sell Quantity 2String"0.00"
data.bestSellQuantity3Best Sell Quantity 3String"0.00"
data.bestSellQuantity4Best Sell Quantity 4String"0.00"
data.bestSellQuantity5Best Sell Quantity 5String"0.00"
data.bestBuyOrder1Best Buy Order 1String"0.00"
data.bestBuyOrder2Best Buy Order 2String"0.00"
data.bestBuyOrder3Best Buy Order 3String"0.00"
data.bestBuyOrder4Best Buy Order 4String"0.00"
data.bestBuyOrder5Best Buy Order 5String"0.00"
data.bestSellOrder1Best Sell Order 1String"0.00"
data.bestSellOrder2Best Sell Order 2String"0.00"
data.bestSellOrder3Best Sell Order 3String"0.00"
data.bestSellOrder4Best Sell Order 4String"0.00"
data.bestSellOrder5Best Sell Order 5String"0.00"

Failure response details

ParameterDescriptionData TypeExample
statusFailedString"Failed"
codeHTTP CodeString"400"
nameType of errorString"BAD_REQUEST"
error.fieldError fieldString"jKey"
error.messageError messageString"jKey cannot be undefined or NULL"

Sample response

{
"status": "Success",
"data": {
"requestTime": "17:42:53 15-02-2023",
"companyName": "Nifty Fin Service",
"exchange": "NSE",
"tradingSymbol": "Nifty Fin Service",
"symbolName": "FINNIFTY",
"segment": "EQT",
"instrumentName": "UNDIND",
"pricePrecision": "2",
"lotSize": "1",
"tickSize": "0.05",
"multipler": "1",
"priceFactor": "(1 / 1 ) * (1 / 1)",
"token": "26037",
"lastTradedPrice": "18636.95",
"company": "18595.70",
"upperCircuit": "0.00",
"lowerCircuit": "0.00",
"dayHighPrice": "18663.00",
"dayLowPrice": "18494.95",
"volume": "0.00",
"lastTradedQuantity": "0.00",
"lastTradeTime": "0.00",
"bestBuyPrice1": "0.00",
"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": "0.00",
"bestBuyQuantity2": "0.00",
"bestBuyQuantity3": "0.00",
"bestBuyQuantity4": "0.00",
"bestBuyQuantity5": "0.00",
"bestSellQuantity1": "0.00",
"bestSellQuantity2": "0.00",
"bestSellQuantity3": "0.00",
"bestSellQuantity4": "0.00",
"bestSellQuantity5": "0.00",
"bestSellOrder1": "0.00",
"bestSellOrder2": "0.00",
"bestSellOrder3": "0.00",
"bestSellOrder4": "0.00",
"bestSellOrder5": "0.00",
"bestBuyOrder1": "0.00",
"bestBuyOrder2": "0.00",
"bestBuyOrder3": "0.00",
"bestBuyOrder4": "0.00",
"bestBuyOrder5": "0.00"
}
}