tastytrade market-time API

Operations about market-times

Operations 11

GET /market-time/sessions #
GET /market-time/sessions/current #
GET /market-time/equities/sessions/current #
GET /market-time/equities/sessions/next #
GET /market-time/equities/sessions/previous #
GET /market-time/equities/holidays #
GET /market-time/futures/sessions/current #
GET /market-time/futures/sessions/current/{instrument_collection} #
GET /market-time/futures/sessions/next/{instrument_collection} #
GET /market-time/futures/sessions/previous/{instrument_collection} #
GET /market-time/futures/holidays/{instrument_collection} #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/tastytrade-market-time-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

tastytrade-market-time-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Account Status accounts Market Time API
  version: 7.1.0
  description: Operations about accounts
servers:
- url: https://api.tastyworks.com
tags:
- name: market-time
  description: Operations about market-times
paths:
  /market-time/sessions:
    get:
      description: Retrieve a list of session timings for a date range
      parameters:
      - in: query
        name: from-date
        description: The date to start from
        required: false
        schema:
          type: string
          format: date
          default: '2026-04-15'
      - in: query
        name: instrument-collection
        description: The instrument collection to get sessions for
        required: false
        schema:
          type: string
          enum:
          - Equity
          - CME
          - CFE
          default: Equity
      - in: query
        name: to-date
        description: The date to end at, the difference between from and to date must not exceed 9 months
        required: true
        schema:
          type: string
          format: date
      responses:
        '200':
          description: Retrieve a list of session timings for a date range
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/SimpleSessionDeserializer'
      tags:
      - market-time
      operationId: getMarketTimeSessions
  /market-time/sessions/current:
    get:
      description: Retrieve the current session timings for an instrument collection
      parameters:
      - in: query
        name: instrument-collections
        description: 'List of instrument collections . i.e. `CFE`, `CME` or `Equity` (example: instrument-collections[]={value1}&instrument-collections[]={value2})'
        required: true
        schema:
          type: array
          items:
            type: string
            enum:
            - CFE
            - CME
            - Equity
      responses:
        '200':
          description: Retrieve the current session timings for an instrument collection
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CurrentSessionDeserializer'
      tags:
      - market-time
      operationId: getMarketTimeSessionsCurrent
  /market-time/equities/sessions/current:
    get:
      description: Get current equities session
      parameters:
      - in: query
        name: current-time
        description: The time the current session is based on
        required: false
        schema:
          type: string
          format: date-time
      responses:
        '200':
          description: Get current equities session
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CurrentSession'
      tags:
      - market-time
      operationId: getMarketTimeEquitiesSessionsCurrent
  /market-time/equities/sessions/next:
    get:
      description: Get next equities session or session after date
      parameters:
      - in: query
        name: date
        description: Find session on or after this date
        required: false
        schema:
          type: string
          format: date
          default: '2026-04-15'
      responses:
        '200':
          description: Get next equities session or session after date
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NextSession'
      tags:
      - market-time
      operationId: getMarketTimeEquitiesSessionsNext
  /market-time/equities/sessions/previous:
    get:
      description: Get previous session or session before date
      parameters:
      - in: query
        name: date
        description: Find session before this date
        required: false
        schema:
          type: string
          format: date
          default: '2026-04-15'
      responses:
        '200':
          description: Get previous session or session before date
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PreviousSession'
      tags:
      - market-time
      operationId: getMarketTimeEquitiesSessionsPrevious
  /market-time/equities/holidays:
    get:
      description: Get equity holidays
      responses:
        '200':
          description: Get equity holidays
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/MarketCalendarDeserializer'
      tags:
      - market-time
      operationId: getMarketTimeEquitiesHolidays
  /market-time/futures/sessions/current:
    get:
      description: Get current futures sessions
      responses:
        '200':
          description: Get current futures sessions
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/CurrentSession'
      tags:
      - market-time
      operationId: getMarketTimeFuturesSessionsCurrent
  /market-time/futures/sessions/current/{instrument_collection}:
    get:
      description: Get current futures session for exchange
      parameters:
      - in: path
        name: instrument_collection
        description: 'Futures exchange, one of: CFE, CME'
        required: true
        schema:
          type: string
          enum:
          - CFE
          - CME
      responses:
        '200':
          description: Get current futures session for exchange
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CurrentSession'
      tags:
      - market-time
      operationId: getMarketTimeFuturesSessionsCurrentInstrumentCollection
  /market-time/futures/sessions/next/{instrument_collection}:
    get:
      description: Get next futures session for exchange
      parameters:
      - in: path
        name: instrument_collection
        description: 'Futures exchange, one of: CFE, CME'
        required: true
        schema:
          type: string
          enum:
          - CFE
          - CME
      - in: query
        name: date
        description: Find session on or after this date
        required: false
        schema:
          type: string
          format: date
          default: '2026-04-15'
      responses:
        '200':
          description: Get next futures session for exchange
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NextSession'
      tags:
      - market-time
      operationId: getMarketTimeFuturesSessionsNextInstrumentCollection
  /market-time/futures/sessions/previous/{instrument_collection}:
    get:
      description: Get previous futures sessions for exchange
      parameters:
      - in: path
        name: instrument_collection
        description: 'Futures exchange, one of: CFE, CME'
        required: true
        schema:
          type: string
          enum:
          - CFE
          - CME
      - in: query
        name: date
        description: Find session before this date
        required: false
        schema:
          type: string
          format: date
          default: '2026-04-15'
      responses:
        '200':
          description: Get previous futures sessions for exchange
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PreviousSession'
      tags:
      - market-time
      operationId: getMarketTimeFuturesSessionsPreviousInstrumentCollection
  /market-time/futures/holidays/{instrument_collection}:
    get:
      description: Get future holidays for exchange
      parameters:
      - in: path
        name: instrument_collection
        description: 'Futures exchange, one of: CFE, CME'
        required: true
        schema:
          type: string
          enum:
          - CFE
          - CME
      responses:
        '200':
          description: Get future holidays for exchange
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/MarketCalendarDeserializer'
      tags:
      - market-time
      operationId: getMarketTimeFuturesHolidaysInstrumentCollection
components:
  schemas:
    MarketCalendarDeserializer:
      type: object
      properties:
        market-half-days:
          description: ''
          type: object
        market-holidays:
          description: ''
          type: object
      description: MarketCalendarDeserializer model
    CurrentSessionDeserializer:
      type: object
      properties:
        close-at:
          description: ''
          type: string
          format: date-time
        close-at-ext:
          description: ''
          type: string
          format: date-time
        instrument-collection:
          description: ''
          type: string
        open-at:
          description: ''
          type: string
          format: date-time
        start-at:
          description: ''
          type: string
          format: date-time
        next-session:
          description: ''
          type: object
          properties:
            close-at:
              description: ''
              type: string
              format: date-time
            close-at-ext:
              description: ''
              type: string
              format: date-time
            instrument-collection:
              description: ''
              type: string
            open-at:
              description: ''
              type: string
              format: date-time
            session-date:
              description: ''
              type: string
              format: date
            start-at:
              description: ''
              type: string
              format: date-time
        previous-session:
          description: ''
          type: object
          properties:
            close-at:
              description: ''
              type: string
              format: date-time
            close-at-ext:
              description: ''
              type: string
              format: date-time
            instrument-collection:
              description: ''
              type: string
            open-at:
              description: ''
              type: string
              format: date-time
            session-date:
              description: ''
              type: string
              format: date
            start-at:
              description: ''
              type: string
              format: date-time
        state:
          description: ''
          type: string
      description: CurrentSessionDeserializer model
    PreviousSession:
      type: object
      properties:
        close-at:
          description: ''
          type: string
          format: date-time
        close-at-ext:
          description: ''
          type: string
          format: date-time
        instrument-collection:
          description: ''
          type: string
        open-at:
          description: ''
          type: string
          format: date-time
        session-date:
          description: ''
          type: string
          format: date
        start-at:
          description: ''
          type: string
          format: date-time
      description: PreviousSession model
    NextSession:
      type: object
      properties:
        close-at:
          description: ''
          type: string
          format: date-time
        close-at-ext:
          description: ''
          type: string
          format: date-time
        instrument-collection:
          description: ''
          type: string
        open-at:
          description: ''
          type: string
          format: date-time
        session-date:
          description: ''
          type: string
          format: date
        start-at:
          description: ''
          type: string
          format: date-time
      description: NextSession model
    CurrentSession:
      type: object
      properties:
        close-at:
          description: ''
          type: string
          format: date-time
        close-at-ext:
          description: ''
          type: string
          format: date-time
        instrument-collection:
          description: ''
          type: string
        open-at:
          description: ''
          type: string
          format: date-time
        start-at:
          description: ''
          type: string
          format: date-time
        next-session:
          description: ''
          type: object
          properties:
            close-at:
              description: ''
              type: string
              format: date-time
            close-at-ext:
              description: ''
              type: string
              format: date-time
            instrument-collection:
              description: ''
              type: string
            open-at:
              description: ''
              type: string
              format: date-time
            session-date:
              description: ''
              type: string
              format: date
            start-at:
              description: ''
              type: string
              format: date-time
        previous-session:
          description: ''
          type: object
          properties:
            close-at:
              description: ''
              type: string
              format: date-time
            close-at-ext:
              description: ''
              type: string
              format: date-time
            instrument-collection:
              description: ''
              type: string
            open-at:
              description: ''
              type: string
              format: date-time
            session-date:
              description: ''
              type: string
              format: date
            start-at:
              description: ''
              type: string
              format: date-time
        state:
          description: ''
          type: string
      description: CurrentSession model
    SimpleSessionDeserializer:
      type: object
      properties:
        close-at:
          description: ''
          type: string
          format: date-time
        close-at-ext:
          description: ''
          type: string
          format: date-time
        instrument-collection:
          description: ''
          type: string
        open-at:
          description: ''
          type: string
          format: date-time
        start-at:
          description: ''
          type: string
          format: date-time
      description: SimpleSessionDeserializer model