Skip to main content
GET 

/us/market/status

Market Status

API to retrieve the live status of the US market. Use it to check whether the US market is open right now, for example before you place an order.

The response gives the current market status, such as NORMAL_OPEN or NORMAL_CLOSE, and the time the status last changed. To get the open and close times for a specific date, use Market Timings. To see which days the market is closed, use Market Holidays.

Request​

curl --location 'https://api.upstox.com/v2/us/market/status' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {your_access_token}'

For samples in other languages, see the Sample Code section on this page.

Responses​

Response Body​

{
"status": "success",
"data": {
"exchange": "US_EQ",
"status": "NORMAL_OPEN",
"last_updated": 1792762200000
}
}
NameTypeDescription
statusstringOutcome of the request. Typically success.
dataobjectStatus of the US market.
data.exchangestringSegment. Always US_EQ.
data.statusstringCurrent market status, for example NORMAL_OPEN or NORMAL_CLOSE.
data.last_updatednumberWhen the status last changed, as epoch milliseconds.

Sample Code​

Get the US market status​

import requests

url = 'https://api.upstox.com/v2/us/market/status'
headers = {
'Accept': 'application/json',
'Authorization': 'Bearer {your_access_token}',
}

response = requests.get(url, headers=headers)

print(response.status_code)
print(response.json())