endpoint public

NYSE session

Une URL, une réponse JSON. Interrogeable depuis n’importe quel logiciel : l’état du marché est calculé côté serveur, dans le fuseau horaire de la place.

loading

UTC
New York Local

Endpoint

GET https://trading.dijmedia.com/api/nyse-session

Query parameters
ParameterValueEffect
pretty 1 Indents the response so it reads well in a browser. The data is identical.
tz Europe/Paris Timezone used for the local clock and for session.open / session.close. Any IANA identifier works. Defaults to Europe/Paris.
at 2026-03-16T14:00:00Z Answers for that moment instead of now — useful to check a holiday or a daylight-saving gap ahead of time. The response carries simulated: true, so no software mistakes it for the live state. Works on this page too: add it to the address and the banner shows that day.
Open the raw JSON

Live response

GET /api/nyse-session loading
Loading the endpoint...

What the response guarantees

Key response fields
FieldMeaning
status open, closed, weekend or holiday.
is_open The single boolean most software needs.
is_early_close True on half sessions, which close at 13:00 New York time instead of 16:00.
holiday Name, date and type of the closure when the day is a holiday or a half session.
next_event Next open or close, with in_seconds, in_minutes and an absolute UTC timestamp. When the market is shut, reason says why.
next_open / next_close Absolute ISO 8601 timestamps in UTC, so no client-side timezone maths is ever needed.
upcoming_holidays The next five closures and half sessions, for software that plans ahead.
dst_period summer, winter, or transition during the weeks when the US and Europe have not switched on the same date.

Les jours fériés suivent les règles du NYSE, report compris : un férié tombant un samedi est observé le vendredi précédent, un férié tombant un dimanche le lundi suivant, et un Nouvel An tombant un samedi n’entraîne aucune fermeture. Le Vendredi saint se déduit de la date de Pâques. Les demi-séances couvrent le lendemain de Thanksgiving, la veille de Noël et la veille d’Independence Day dès lors qu’elles tombent un jour de cotation.