Skip to content

Get Closing Price

The ClosingPrice API allows users to retrieve the closing price of a financial instrument. By specifying the instrument token, users can access the closing price, which can be crucial for making investment decisions.

Endpoint: /api/v1/marketdata/{exchange}/Capital?token={token}&key=close_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.getClosePrice('NSE', 26009)

Response

{
    "data": 47965.4,
    "message": "", 
    "status": "success"
}
Key Description
data The closing 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"
}