pocketful logo light
pocketful logo light

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 NameData TypeDescription
exchangeStringe.g. NSEBSEMCXNFOBFO
tokenStringe.g. 90197

Example

response = pocket.getLtp('NSE', 26009)

Response

{
    "data": 446981.3, 
    "message": "", 
    "status": "success"
}
KeyDescription
dataThe last traded price received.
messageAny additional message or details.
statusThe status of the operation.

Error Response

{
    "data": {},
    "error_code": 44000,
    "message": "`exchange` is invalid",
    "status": "error"
}