Polygon · Arazzo Workflow

Polygon Market-Gated Stock Daily Snapshot

Version 1.0.0

Check current US market status, then pull a stock's daily open/close and previous close.

1 workflow 2 source APIs 1 provider
View Spec View on GitHub FinanceFintechMarket DataStocksOptionsForexCryptoIndicesFuturesWebSocketsReal-TimeHistoricalPublic APIsArazzoWorkflows

Provider

polygon

Workflows

market-gated-stock-daily
Gate a stock daily-snapshot read on the current market status.
Reads current market status, then chains the daily open/close and previous-close endpoints for a single stock ticker on a given date.
3 steps inputs: date, ticker outputs: close, marketStatus, previousClose
1
checkMarketStatus
Get the current trading status for US markets to establish whether the read reflects a live or closed session.
2
getDailyOpenClose
Read the open, close, high, and low for the stock ticker on the requested date.
3
getPreviousClose
Read the previous trading day's close so the requested day's values can be compared against the prior session.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Polygon Market-Gated Stock Daily Snapshot
  summary: Check current US market status, then pull a stock's daily open/close and previous close.
  description: >-
    A trading-desk readiness flow that establishes market context before
    reading a single stock's daily numbers. The workflow first checks the
    current US market status (open, closed, early or after hours), then
    reads the requested stock's daily open/close for a given date, and
    finally pulls its previous-close so the day's values can be compared
    against the prior session. Every step spells out its request inline so
    the flow can be read and executed without opening the underlying
    OpenAPI description.
  version: 1.0.0
sourceDescriptions:
- name: dailybarsApi
  url: ../openapi/polygon-dailybars-api-openapi.yml
  type: openapi
- name: marketsApi
  url: ../openapi/polygon-markets-api-openapi.yml
  type: openapi
workflows:
- workflowId: market-gated-stock-daily
  summary: Gate a stock daily-snapshot read on the current market status.
  description: >-
    Reads current market status, then chains the daily open/close and
    previous-close endpoints for a single stock ticker on a given date.
  inputs:
    type: object
    required:
    - ticker
    - date
    properties:
      ticker:
        type: string
        description: Case-sensitive stock ticker symbol (e.g. AAPL).
      date:
        type: string
        description: The date for the daily open/close read (YYYY-MM-DD).
  steps:
  - stepId: checkMarketStatus
    description: >-
      Get the current trading status for US markets to establish whether
      the read reflects a live or closed session.
    operationId: getCurrentMarketStatus
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      marketStatus: $response.body#/market
      serverTime: $response.body#/serverTime
      afterHours: $response.body#/afterHours
  - stepId: getDailyOpenClose
    description: >-
      Read the open, close, high, and low for the stock ticker on the
      requested date.
    operationId: getStocksDailyOpenClose
    parameters:
    - name: stocksTicker
      in: path
      value: $inputs.ticker
    - name: date
      in: path
      value: $inputs.date
    - name: adjusted
      in: query
      value: true
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      open: $response.body#/open
      close: $response.body#/close
      high: $response.body#/high
      low: $response.body#/low
      volume: $response.body#/volume
  - stepId: getPreviousClose
    description: >-
      Read the previous trading day's close so the requested day's values
      can be compared against the prior session.
    operationId: getStocksPreviousClose
    parameters:
    - name: stocksTicker
      in: path
      value: $inputs.ticker
    - name: adjusted
      in: query
      value: true
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      previousClose: $response.body#/results/0/c
  outputs:
    marketStatus: $steps.checkMarketStatus.outputs.marketStatus
    close: $steps.getDailyOpenClose.outputs.close
    previousClose: $steps.getPreviousClose.outputs.previousClose

Work with this as data

Every workflow 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 arazzo workflows

4 MCP tools reach this
  • find_arazzoBrowse and filter every workflow in the catalog.
  • 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 workflow
curl "https://apis.io/api/v1/arazzo/polygon-market-gated-stock-daily-workflow"
All arazzo workflows
curl "https://apis.io/api/v1/arazzo?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.