Polygon · Arazzo Workflow

Polygon Crypto Daily Comparison

Version 1.0.0

Check market status, snapshot a crypto pair, and read its daily open/close.

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

Provider

polygon

Workflows

crypto-daily-comparison
Compare a crypto pair's live snapshot against a fixed daily open/close.
Checks market status, reads the crypto pair snapshot, and reads the pair's daily open/close for a specific date.
3 steps inputs: date, from, ticker, to outputs: currencies, dailyClose, dailyOpen, day
1
checkMarketStatus
Get the current trading status, including the crypto currencies market, to establish overall market context.
2
getSnapshot
Read the live snapshot for the crypto ticker to capture its current day session and last trade.
3
getDailyOpenClose
Read the open and close for the crypto pair on the requested date so the live snapshot can be compared against a fixed session.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Polygon Crypto Daily Comparison
  summary: Check market status, snapshot a crypto pair, and read its daily open/close.
  description: >-
    A crypto daily-comparison flow that frames a pair's session against
    overall market context. The workflow checks the current market status,
    reads the crypto pair's live snapshot to capture its day session, and
    reads the pair's open/close for a specific date so the live snapshot can
    be compared against a fixed historical 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
- name: snapshotsApi
  url: ../openapi/polygon-snapshots-api-openapi.yml
  type: openapi
workflows:
- workflowId: crypto-daily-comparison
  summary: Compare a crypto pair's live snapshot against a fixed daily open/close.
  description: >-
    Checks market status, reads the crypto pair snapshot, and reads the
    pair's daily open/close for a specific date.
  inputs:
    type: object
    required:
    - ticker
    - from
    - to
    - date
    properties:
      ticker:
        type: string
        description: Crypto ticker symbol for the snapshot (e.g. X:BTCUSD).
      from:
        type: string
        description: Source currency of the pair for the daily open/close (e.g. BTC).
      to:
        type: string
        description: Target currency of the pair for the daily open/close (e.g. USD).
      date:
        type: string
        description: The date for the daily open/close read (YYYY-MM-DD).
  steps:
  - stepId: checkMarketStatus
    description: >-
      Get the current trading status, including the crypto currencies
      market, to establish overall market context.
    operationId: getCurrentMarketStatus
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      currencies: $response.body#/currencies
      serverTime: $response.body#/serverTime
  - stepId: getSnapshot
    description: >-
      Read the live snapshot for the crypto ticker to capture its current
      day session and last trade.
    operationId: getCryptoSnapshotForTicker
    parameters:
    - name: ticker
      in: path
      value: $inputs.ticker
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      day: $response.body#/ticker/day
      lastTrade: $response.body#/ticker/lastTrade
  - stepId: getDailyOpenClose
    description: >-
      Read the open and close for the crypto pair on the requested date so
      the live snapshot can be compared against a fixed session.
    operationId: getCryptoDailyOpenClose
    parameters:
    - name: from
      in: path
      value: $inputs.from
    - name: to
      in: path
      value: $inputs.to
    - name: date
      in: path
      value: $inputs.date
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      open: $response.body#/open
      close: $response.body#/close
  outputs:
    currencies: $steps.checkMarketStatus.outputs.currencies
    day: $steps.getSnapshot.outputs.day
    dailyOpen: $steps.getDailyOpenClose.outputs.open
    dailyClose: $steps.getDailyOpenClose.outputs.close

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-crypto-daily-comparison-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.