Skip to main content

Full Market Quotesโ€‹

API to retrieve the full market quotes for one or more instruments. Provides the complete market data snapshot of up to 500 instruments in one go. These snapshots are obtained directly from the exchanges at the time of request.

Requestโ€‹

curl --location 'https://api.upstox.com/v2/market-quote/quotes?instrument_key=NSE_EQ%7CINE848E01016' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {your_access_token}'

For additional samples in various languages, please refer to the Sample code section on this page.

Query Parametersโ€‹

NameRequiredTypeDescription
instrument_keytruestringComma separated list of instrument keys. For the regex pattern applicable to this field, see the Field Pattern Appendix.
Responses

Response Bodyโ€‹

{
"status": "success",
"data": {
"NSE_EQ:NHPC": {
"ohlc": {
"open": 53.4,
"high": 53.8,
"low": 51.75,
"close": 52.05
},
"depth": {
"buy": [
{
"quantity": 6917,
"price": 52.05,
"orders": 20
},
{
"quantity": 0,
"price": 0,
"orders": 0
},
{
"quantity": 0,
"price": 0,
"orders": 0
},
{
"quantity": 0,
"price": 0,
"orders": 0
},
{
"quantity": 0,
"price": 0,
"orders": 0
}
],
"sell": [
{
"quantity": 0,
"price": 0,
"orders": 0
},
{
"quantity": 0,
"price": 0,
"orders": 0
},
{
"quantity": 0,
"price": 0,
"orders": 0
},
{
"quantity": 0,
"price": 0,
"orders": 0
},
{
"quantity": 0,
"price": 0,
"orders": 0
}
]
},
"timestamp": "2023-10-19T05:21:51.099+05:30",
"instrument_token": "NSE_EQ|INE848E01016",
"symbol": "NHPC",
"last_price": 52.04999923706055,
"volume": 24123697,
"average_price": 52.56,
"oi": 0,
"net_change": -1.0500000000000043,
"total_buy_quantity": 6917,
"total_sell_quantity": 0,
"lower_circuit_limit": 42.5,
"upper_circuit_limit": 63.7,
"last_trade_time": "1697624972130",
"oi_day_high": 0,
"oi_day_low": 0
}
}
}
NameTypeDescription
statusstringA string indicating the outcome of the request. Typically success for successful operations.
dataobjectData object holding full market quote information
data.ohlcobjectData object with OHLC information
data.ohlc.opennumberThe open price of the trading session
data.ohlc.highnumberThe high price of the trading session
data.ohlc.lownumberThe low price of the trading session
data.ohlc.closenumberThe most recent closing price of the symbol
data.depthobjectData object with top 5 buy and sell depth information
data.depth.buyobject[]Bids
data.depth.buy[].quantityintegerquantity
data.depth.buy[].pricenumberprice
data.depth.buy[].ordersintegerorders
data.depth.sellobject[]Asks
data.depth.sell[].quantityintegerquantity
data.depth.sell[].pricenumberprice
data.depth.sell[].ordersintegerorders
data.timestampstringTime in milliseconds at which the feeds was updated
data.instrument_tokenstringKey of the instrument. For the regex pattern applicable to this field, see the Field Pattern Appendix.
data.symbolstringShows the trading symbol of the instrument
data.last_pricenumberThe last traded price of symbol
data.volumeintegerThe volume traded today on symbol
data.average_pricenumberAverage price
data.oinumberTotal number of outstanding contracts held by market participants exchange-wide (only F&O)
data.net_changenumberThe absolute change from yesterday's close to last traded price
data.total_buy_quantitynumberThe total number of bid quantity available for trading
data.total_sell_quantitynumberThe total number of ask quantity available for trading
data.lower_circuit_limitnumberThe lower circuit of symbol
data.upper_circuit_limitnumberThe upper circuit of symbol
data.last_trade_timestringTime in milliseconds at which last trade happened
data.oi_day_highnumberOpen interest day high
data.oi_day_lownumberOpen interest day low

Sample Codeโ€‹

Get full market quoteโ€‹

curl --location 'https://api.upstox.com/v2/market-quote/quotes?instrument_key=NSE_EQ%7CINE848E01016' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {your_access_token}'

Get full market quote for multiple instrument keysโ€‹

curl --location 'https://api.upstox.com/v2/market-quote/quotes?instrument_key=NSE_EQ%7CINE848E01016,NSE_EQ|INE669E01016' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {your_access_token}'
Loading...