LTP Quotes V3
API provides LTP quotes for specified instruments. In V3, the response has been enhanced to include:
ltq
: The quantity of the last traded transaction.volume
: The cumulative trading volume for the current day.cp
: The closing price from the previous trading day.
NOTE
- This API supports a maximum of 500 instrument keys in a single request.
Header Parameters
Name | Required | Type | Description |
---|---|---|---|
Authorization | true | string | Requires the format Bearer access_token where access_token is obtained from the Token API. |
Accept | true | string | Defines the content format the client expects, which should be set to application/json . |
Query Parameters
Name | Required | Description |
---|---|---|
instrument_key | true | Comma separated list of instrument keys. For the regex pattern applicable to this field, see the Field Pattern Appendix. |
Responses
- 200
- 4XX
Response body
{
"status": "success",
"data": {
"NSE_FO:NIFTY2543021600PE": {
"last_price": 303.9,
"instrument_token": "NSE_FO|51834",
"ltq": 75,
"volume": 170325,
"cp": 29.0
}
}
}
Name | Type | Description |
---|---|---|
status | string | A string indicating the outcome of the request. Typically success for successful operations. |
data | object | Data object holding LTP information |
data.last_price | number | The last traded price of symbol |
data.instrument_token | string | Key of the instrument. For the regex pattern applicable to this field, see the Field Pattern Appendix. |
data.ltq | number | Last traded quantity |
data.volume | number | Volume traded today till current time |
data.cp | number | Previous day's closing price |
Error codes
Error code | Description |
---|---|
UDAPI1009 | instrument_key is required - The instrument_key parameter is missing. |
UDAPI1011 | instrument_key is of invalid format - The provided instrument_key does not conform to the accepted format. |
UDAPI1087 | Invalid Instrument key - The provided instrument_key is invalid. |
UDAPI100043 | Maximum instrument key limit exceeded - The request exceeds the maximum number of instrument keys allowed. |
Examples
A comprehensive set of examples is provided to illustrate various use cases and implementation scenarios for this API. To view detailed examples and access sample code, please refer to: API Examples.
Loading...