Market Quotes¶
This endpoint supports ref_id values resolved from the NSE, BSE, and MCX instrument masters.
The Market Quote API provides market quotes for specified instruments.
Method: GET
Endpoint: orderbooks/{ref_id}?levels={levels}
Example cURL Requests¶
Use a ref_id resolved from the matching exchange instruments master. The endpoint does not take an exchange query parameter; exchange context comes from the selected ref_id.
curl --location --globoff 'https://uatapi.nubra.io/orderbooks/{nse_ref_id}?levels=5' \
--header 'x-device-id: TS123' \
--header 'Authorization: Bearer eyJh...6Pno'
curl --location --globoff 'https://uatapi.nubra.io/orderbooks/{bse_ref_id}?levels=5' \
--header 'x-device-id: TS123' \
--header 'Authorization: Bearer eyJh...6Pno'
curl --location --globoff 'https://uatapi.nubra.io/orderbooks/{mcx_ref_id}?levels=5' \
--header 'x-device-id: TS123' \
--header 'Authorization: Bearer eyJh...6Pno'
Response Structure¶
{
"orderBook": {
"inst_id": 3045,
"ref_id": 70115,
"ts": 1749714670835214187,
"bid": [
{ "p": 81065, "q": 142, "o": 3 }
],
"ask": [
{ "p": 81080, "q": 79, "o": 2 }
],
"ltp": 81080,
"ltq": 9,
"volume": 6565771
}
}
Response attributes¶
| Fields | Description |
|---|---|
| orderBook | OrderBook object containing the market quote data |
| orderBook.ref_id | Reference ID of the instrument |
| orderBook.timestamp | Timestamp of the quote in nanoseconds |
| orderBook.bid | List of BidAsk objects for bid orders, sorted by price in descending order |
| orderBook.bid[].price | Price of the bid order |
| orderBook.bid[].quantity | Quantity available at this bid price |
| orderBook.bid[].num_orders | Number of orders at this bid price |
| orderBook.ask | List of BidAsk objects for ask orders, sorted by price in ascending order |
| orderBook.ask[].price | Price of the ask order |
| orderBook.ask[].quantity | Quantity available at this ask price |
| orderBook.ask[].num_orders | Number of orders at this ask price |
| orderBook.last_traded_price | Last traded price |
| orderBook.last_traded_quantity | Last traded quantity |
| orderBook.volume | Total volume traded for the day |