---
title: "Get Session Closes"
method: GET
path: "/api/market/session-closes"
tags: ["Market Data"]
---

# Get Session Closes

`GET /api/market/session-closes`

## Request

- Base URL: `https://api.zerogex.io` (the document declares no server; this is the origin it was published from)
- URL: `https://api.zerogex.io/api/market/session-closes`
- Auth: HTTP bearer

Get the two most recently completed regular session closes.

- current_session_close: the most recent cash session close (last bar <= 16:00 ET
  on the most recent completed trading day).
- prior_session_close: the session close immediately before current.

``delay_minutes`` answers as of that many minutes ago, so a session that
closed inside the delay is not yet a close (see src/api/delayed_read.py).

## Query parameters

- `symbol` string
- `delay_minutes` integer: Serve the newest data that is at least this many minutes old instead of the latest. 0, the default, is the live read.

## Response `200`

Successful Response

- SessionCloses
  - `symbol` string, required
  - `current_session_close` string, required
  - `current_session_close_ts` string, date-time, nullable, required
  - `prior_session_close` string, required
  - `prior_session_close_ts` string, date-time, nullable, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/zerogex/apis/zerogex-api.md) · [All operations](https://skmtc.dev/zerogex/apis/zerogex-api/llms.txt) · [OpenAPI document](https://skmtc.dev/zerogex/apis/zerogex-api/revisions/753b26bf0592?raw)
