tastytradeDeveloper Docs
Legacy ↗

API Reference / Market Sessions

Get Next Equities Session

getMarketTimeEquitiesSessionsNext
get/market-time/equities/sessions/next

Base URL: https://api.cert.tastyworks.com (Sandbox) · https://api.tastyworks.com (Production)

Returns the next equities trading session. Optionally pass `date` to find the first session on or after that date instead of after today.

Code samples

curl -X GET 'https://api.cert.tastyworks.com/market-time/equities/sessions/next?date=2024-01-15' \
  -H 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
  -H 'User-Agent: tastytrade-docs-example/1.0'

Parameters

NameInTypeDescription
datequerystringFind session on or after this date
e.g. "2024-01-15"

Responses

200The next equities session timings.application/json

Example response

{
  "data": {
    "close-at": "2024-01-15T14:30:00.000Z",
    "close-at-ext": "2024-01-15T14:30:00.000Z",
    "instrument-collection": "Equity",
    "open-at": "2024-01-15T14:30:00.000Z",
    "session-date": "2026-06-10",
    "start-at": "2024-01-15T14:30:00.000Z"
  },
  "context": "/market-time/equities/sessions/next"
}

Schema

  • datarequiredobject (NextSession)

    The next trading session for an instrument collection, identified by its session date along with its session timings.

    • close-atstring <date-time>

      ISO-8601 date-time at which the session closes.

    • close-at-extstring <date-time>

      ISO-8601 date-time of the session's extended close.

    • instrument-collectionstring

      The instrument collection this session applies to, for example `Equity`, `CME`, or `CFE`.

      example: "Equity"

    • open-atstring <date-time>

      ISO-8601 date-time at which the session opens.

    • session-datestring <date>

      The calendar date (ISO-8601) of the trading session.

      example: "2026-06-10"

    • start-atstring <date-time>

      ISO-8601 date-time at which the session starts.

  • contextrequiredstring

    example: "/market-time/equities/sessions/next"

401Missing or expired access token, or a missing/malformed `User-Agent` header.application/json

Example response

{
  "error": {
    "code": "unauthorized",
    "message": "No valid access token was provided; access tokens expire after 15 minutes."
  }
}

Schema

  • errorrequiredobject
    • coderequiredstring

      Machine-readable error code (see the Error reference).

    • messagerequiredstring

      Human-readable explanation.

    • errorsarray<object>{3 fields}

      Present for multi-error / validation failures; one entry per problem.

422The `date` value is not a valid ISO-8601 date.application/json

Example response

{
  "error": {
    "code": "preflight_check_failure",
    "message": "One or more preflight checks failed",
    "errors": [
      {
        "code": "preflight_check_failure",
        "message": "A specific validation failed for this order."
      }
    ]
  }
}

Schema

  • errorrequiredobject
    • coderequiredstring

      Machine-readable error code (see the Error reference).

    • messagerequiredstring

      Human-readable explanation.

    • errorsarray<object>{3 fields}

      Present for multi-error / validation failures; one entry per problem.

429Too many requests. Back off and reduce your request rate.application/json

Example response

{
  "error": {
    "code": "string",
    "message": "string",
    "errors": [
      {
        "code": "string",
        "message": "string",
        "domain": "string"
      }
    ]
  }
}

Schema

  • errorrequiredobject
    • coderequiredstring

      Machine-readable error code (see the Error reference).

    • messagerequiredstring

      Human-readable explanation.

    • errorsarray<object>{3 fields}

      Present for multi-error / validation failures; one entry per problem.

Related

Agents: this page is also Markdown (with the embedded OpenAPI definition) — append .md or send Accept: text/markdown. Index at /llms.txt.