Exchange Status
API to retrieve the market status for a particular exchange.
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 . |
Path Parameters
Name | Required | Type | Description |
---|---|---|---|
exchange | true | string | The unique identifier for an exchange for which market status data is being queried. For the regex pattern applicable to this field, see the Field Pattern Appendix. |
Responses
- 200
- 4XX
Response Body
{
"status": "success",
"data": {
"exchange": "NSE",
"status": "NORMAL_OPEN",
"last_updated": 1705549500000
}
}
Name | Type | Description |
---|---|---|
status | string | A string indicating the outcome of the request. Typically success for successful operations. |
data | object | Data object holding market status information for an exchange. |
data.exchange | string | Exchange to which the market status is associated. Valid exchanges can be found in the Exchange Appendix |
data.status | string | Current exchange status. Valid market statuses can be found in the Market Status Appendix |
data.last_updated | number | The timestamp at which the market status was last updated. |
Error codes
Error code | Description |
---|---|
UDAPI1089 | Invalid exchange - The provided exchange does not confirm to the accepted format. |
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...