Get Last Traded Price
The LastTradedPrice API provides user with the most recent price at which a financial instrument was traded. By accessing this API, users can quickly obtain the latest market information, aiding in real-time decision-making and market analysis.
Endpoint: /api/v1/marketdata/:exchange/:token/:last_trade_price
Method-Type: GET
Path Parameters
Field Name |
Data Type |
Description |
exchange |
String |
e.g. NSE , BSE , MCX , NFO , BFO |
token |
String |
e.g. 90197 |
Example
response = pocket.getLtp('NSE', 26009)
Response
{
"data": 446981.3,
"message": "",
"status": "success"
}
Key |
Description |
data |
The last traded price received. |
message |
Any additional message or details. |
status |
The status of the operation. |
Error Response
{
"data": {},
"error_code": 44000,
"message": "`exchange` is invalid",
"status": "error"
}