Skip to main content
GET 

/us/market/timings/:date

Market Timings

API to retrieve the US market session times for a date. The response has the open and close times of the regular trading session. On a weekend or holiday, data is an empty list.

Path Parameters​

NameRequiredTypeDescription
dateRequiredstringDate to check, in YYYY-MM-DD format.

Request​

curl --location 'https://api.upstox.com/v2/us/market/timings/2026-10-22' \
--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",
"start_time": 1792762200000,
"end_time": 1792785600000
}
]
}
NameTypeDescription
statusstringOutcome of the request. Typically success.
dataobject[]US market sessions on the date. Empty when the market is closed.
data[].exchangestringSegment. Always US_EQ.
data[].start_timenumberRegular session open, as epoch milliseconds.
data[].end_timenumberRegular session close, as epoch milliseconds.

Sample Code​

Get US market timings for a date​

import requests

url = 'https://api.upstox.com/v2/us/market/timings/2026-10-22'
headers = {
'Accept': 'application/json',
'Authorization': 'Bearer {your_access_token}',
}

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

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