Nightwatch Flow API

The Flow API from Nightwatch — 11 operation(s) for flow.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 11

GET /v1/flow/trades Filtered Flow aggregate history; by default every aggregate (orders and… #
GET /v1/flow/contracts/lookup Resolve one OCC contract symbol into its normalized contract identity and… #
GET /v1/flow/tickers/{ticker}/contract-options Option-contract directory for one required expiration, paged up to 200… #
GET /v1/flow/tickers/{ticker}/boards Ticker option sentiment and five ranked contract boards. ET dates use YYYY-MM-DD #
GET /v1/flow/tickers/{ticker}/overview Ticker Flow summary and ranked contracts over one or seven trading sessions. #
GET /v1/flow/tickers/{ticker}/chain Ticker Flow contract-day chain, paged at up to 100 rows. ET dates use YYYY-MM-DD #
GET /v1/flow/contracts/{contract_symbol}/bars Intraday contract or net-premium bars for one option contract, paged at up to… #
GET /v1/flow/contracts/{contract_symbol}/bucket Flow aggregates for one contract in an exact five-minute bucket, paged at up to… #
GET /v1/flow/contracts/{contract_symbol}/history Up to 30 trading sessions of contract-day Flow history, back from… #
GET /v1/flow/tickers/{ticker}/bars Intraday call and put premium bars for a product ticker. ET dates use YYYY-MM-DD #
GET /v1/flow/tickers/{ticker}/bucket Bounded ticker bucket view: both cohort summaries, one cohort top-contract… #

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/yehangshe-com:yehangshe-com-flow-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

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

OpenAPI Specification

yehangshe-com-flow-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: GEX Heatmap Data Flow API
  version: 0.4.0-operation-ids
  description: Dealer MVP scope. 数据集端点 paths 由 dataset registry 派生;Dealer GEX / Heatmap 数据集随 P2 注册后自动出现。
servers:
- url: https://api.yehangshe.com
  description: production
tags:
- name: Flow
paths:
  /v1/flow/trades:
    get:
      operationId: flow.trades
      summary: Filtered Flow aggregate history; by default every aggregate (orders and…
      security:
      - bearerAuth: []
      parameters:
      - name: session_date
        in: query
        required: false
        schema:
          type: string
          format: date
      - name: kind
        in: query
        required: false
        schema:
          type: string
          enum:
          - order
          - package
          - all
      - name: tickers
        in: query
        required: false
        schema:
          type: string
      - name: contract_symbols
        in: query
        required: false
        schema:
          type: string
      - name: expirations
        in: query
        required: false
        schema:
          type: string
      - name: rights
        in: query
        required: false
        schema:
          type: string
      - name: sides
        in: query
        required: false
        schema:
          type: string
      - name: strategies
        in: query
        required: false
        schema:
          type: string
      - name: min_premium_usd
        in: query
        required: false
        schema:
          type: number
      - name: max_premium_usd
        in: query
        required: false
        schema:
          type: number
      - name: min_contracts
        in: query
        required: false
        schema:
          type: integer
      - name: max_contracts
        in: query
        required: false
        schema:
          type: integer
      - name: sort_by
        in: query
        required: false
        schema:
          type: string
          enum:
          - occurredAt
          - premiumCents
          - contracts
      - name: direction
        in: query
        required: false
        schema:
          type: string
          enum:
          - asc
          - desc
      - name: limit
        in: query
        required: false
        schema:
          type: integer
      - name: cursor
        in: query
        required: false
        schema:
          type: string
      responses:
        '200':
          description: list payload with next_cursor
        '400':
          $ref: '#/components/responses/ValidationError'
        '401':
          $ref: '#/components/responses/AuthenticationError'
        '402':
          $ref: '#/components/responses/SubscriptionPaused'
        '403':
          $ref: '#/components/responses/ScopeInsufficient'
        '429':
          $ref: '#/components/responses/RateLimited'
      tags:
      - Flow
  /v1/flow/contracts/lookup:
    get:
      operationId: flow.contract_lookup
      summary: Resolve one OCC contract symbol into its normalized contract identity and…
      security:
      - bearerAuth: []
      parameters:
      - name: contract_symbol
        in: query
        required: true
        schema:
          type: string
      - name: session_date
        in: query
        required: false
        schema:
          type: string
          format: date
      responses:
        '200':
          description: list payload with next_cursor
        '400':
          $ref: '#/components/responses/ValidationError'
        '401':
          $ref: '#/components/responses/AuthenticationError'
        '402':
          $ref: '#/components/responses/SubscriptionPaused'
        '403':
          $ref: '#/components/responses/ScopeInsufficient'
        '429':
          $ref: '#/components/responses/RateLimited'
      tags:
      - Flow
  /v1/flow/tickers/{ticker}/contract-options:
    get:
      operationId: flow.contract_options
      summary: Option-contract directory for one required expiration, paged up to 200…
      security:
      - bearerAuth: []
      parameters:
      - name: ticker
        in: path
        required: true
        schema:
          type: string
          pattern: ^[A-Z][A-Z0-9]*(\.[A-Z0-9]+)*$
      - name: session_date
        in: query
        required: false
        schema:
          type: string
          format: date
      - name: root
        in: query
        required: false
        schema:
          type: string
      - name: expiration
        in: query
        required: true
        schema:
          type: string
          format: date
      - name: limit
        in: query
        required: false
        schema:
          type: integer
      - name: cursor
        in: query
        required: false
        schema:
          type: string
      responses:
        '200':
          description: list payload with next_cursor
        '400':
          $ref: '#/components/responses/ValidationError'
        '401':
          $ref: '#/components/responses/AuthenticationError'
        '402':
          $ref: '#/components/responses/SubscriptionPaused'
        '403':
          $ref: '#/components/responses/ScopeInsufficient'
        '429':
          $ref: '#/components/responses/RateLimited'
      tags:
      - Flow
  /v1/flow/tickers/{ticker}/boards:
    get:
      operationId: flow.ticker_boards
      summary: Ticker option sentiment and five ranked contract boards. ET dates use YYYY-MM-DD
      security:
      - bearerAuth: []
      parameters:
      - name: ticker
        in: path
        required: true
        schema:
          type: string
          pattern: ^[A-Z][A-Z0-9]*(\.[A-Z0-9]+)*$
      - name: session_date
        in: query
        required: false
        schema:
          type: string
          format: date
      - name: root
        in: query
        required: false
        schema:
          type: string
      responses:
        '200':
          description: object payload
        '400':
          $ref: '#/components/responses/ValidationError'
        '401':
          $ref: '#/components/responses/AuthenticationError'
        '402':
          $ref: '#/components/responses/SubscriptionPaused'
        '403':
          $ref: '#/components/responses/ScopeInsufficient'
        '429':
          $ref: '#/components/responses/RateLimited'
      tags:
      - Flow
  /v1/flow/tickers/{ticker}/overview:
    get:
      operationId: flow.ticker_overview
      summary: Ticker Flow summary and ranked contracts over one or seven trading sessions.
      security:
      - bearerAuth: []
      parameters:
      - name: ticker
        in: path
        required: true
        schema:
          type: string
          pattern: ^[A-Z][A-Z0-9]*(\.[A-Z0-9]+)*$
      - name: session_date
        in: query
        required: false
        schema:
          type: string
          format: date
      - name: window
        in: query
        required: false
        schema:
          type: string
          enum:
          - 1d
          - 7d
      - name: single_leg_only
        in: query
        required: false
        schema:
          type: string
          enum:
          - 'true'
          - 'false'
      responses:
        '200':
          description: object payload
        '400':
          $ref: '#/components/responses/ValidationError'
        '401':
          $ref: '#/components/responses/AuthenticationError'
        '402':
          $ref: '#/components/responses/SubscriptionPaused'
        '403':
          $ref: '#/components/responses/ScopeInsufficient'
        '429':
          $ref: '#/components/responses/RateLimited'
      tags:
      - Flow
  /v1/flow/tickers/{ticker}/chain:
    get:
      operationId: flow.ticker_chain
      summary: Ticker Flow contract-day chain, paged at up to 100 rows. ET dates use YYYY-MM-DD
      security:
      - bearerAuth: []
      parameters:
      - name: ticker
        in: path
        required: true
        schema:
          type: string
          pattern: ^[A-Z][A-Z0-9]*(\.[A-Z0-9]+)*$
      - name: session_date
        in: query
        required: false
        schema:
          type: string
          format: date
      - name: root
        in: query
        required: false
        schema:
          type: string
      - name: limit
        in: query
        required: false
        schema:
          type: integer
      - name: cursor
        in: query
        required: false
        schema:
          type: string
      responses:
        '200':
          description: list payload with next_cursor
        '400':
          $ref: '#/components/responses/ValidationError'
        '401':
          $ref: '#/components/responses/AuthenticationError'
        '402':
          $ref: '#/components/responses/SubscriptionPaused'
        '403':
          $ref: '#/components/responses/ScopeInsufficient'
        '429':
          $ref: '#/components/responses/RateLimited'
      tags:
      - Flow
  /v1/flow/contracts/{contract_symbol}/bars:
    get:
      operationId: flow.contract_bars
      summary: Intraday contract or net-premium bars for one option contract, paged at up to…
      security:
      - bearerAuth: []
      parameters:
      - name: contract_symbol
        in: path
        required: true
        schema:
          type: string
      - name: session_date
        in: query
        required: false
        schema:
          type: string
          format: date
      - name: series
        in: query
        required: false
        schema:
          type: string
          enum:
          - contract
          - premium
      - name: limit
        in: query
        required: false
        schema:
          type: integer
      - name: cursor
        in: query
        required: false
        schema:
          type: string
      responses:
        '200':
          description: list payload with next_cursor
        '400':
          $ref: '#/components/responses/ValidationError'
        '401':
          $ref: '#/components/responses/AuthenticationError'
        '402':
          $ref: '#/components/responses/SubscriptionPaused'
        '403':
          $ref: '#/components/responses/ScopeInsufficient'
        '429':
          $ref: '#/components/responses/RateLimited'
      tags:
      - Flow
  /v1/flow/contracts/{contract_symbol}/bucket:
    get:
      operationId: flow.contract_bucket
      summary: Flow aggregates for one contract in an exact five-minute bucket, paged at up to…
      security:
      - bearerAuth: []
      parameters:
      - name: contract_symbol
        in: path
        required: true
        schema:
          type: string
      - name: session_date
        in: query
        required: false
        schema:
          type: string
          format: date
      - name: bucket_start_micros
        in: query
        required: true
        schema:
          type: integer
      - name: limit
        in: query
        required: false
        schema:
          type: integer
      - name: cursor
        in: query
        required: false
        schema:
          type: string
      responses:
        '200':
          description: object payload
        '400':
          $ref: '#/components/responses/ValidationError'
        '401':
          $ref: '#/components/responses/AuthenticationError'
        '402':
          $ref: '#/components/responses/SubscriptionPaused'
        '403':
          $ref: '#/components/responses/ScopeInsufficient'
        '429':
          $ref: '#/components/responses/RateLimited'
      tags:
      - Flow
  /v1/flow/contracts/{contract_symbol}/history:
    get:
      operationId: flow.contract_history
      summary: Up to 30 trading sessions of contract-day Flow history, back from…
      security:
      - bearerAuth: []
      parameters:
      - name: contract_symbol
        in: path
        required: true
        schema:
          type: string
      - name: end_session_date
        in: query
        required: false
        schema:
          type: string
          format: date
      - name: limit
        in: query
        required: false
        schema:
          type: integer
      - name: include_current
        in: query
        required: false
        schema:
          type: string
          enum:
          - 'true'
          - 'false'
      - name: coverage
        in: query
        required: false
        schema:
          type: string
          enum:
          - contiguous
      responses:
        '200':
          description: list payload with next_cursor
        '400':
          $ref: '#/components/responses/ValidationError'
        '401':
          $ref: '#/components/responses/AuthenticationError'
        '402':
          $ref: '#/components/responses/SubscriptionPaused'
        '403':
          $ref: '#/components/responses/ScopeInsufficient'
        '429':
          $ref: '#/components/responses/RateLimited'
      tags:
      - Flow
  /v1/flow/tickers/{ticker}/bars:
    get:
      operationId: flow.ticker_bars
      summary: Intraday call and put premium bars for a product ticker. ET dates use YYYY-MM-DD
      security:
      - bearerAuth: []
      parameters:
      - name: ticker
        in: path
        required: true
        schema:
          type: string
          pattern: ^[A-Z][A-Z0-9]*(\.[A-Z0-9]+)*$
      - name: session_date
        in: query
        required: false
        schema:
          type: string
          format: date
      responses:
        '200':
          description: list payload with next_cursor
        '400':
          $ref: '#/components/responses/ValidationError'
        '401':
          $ref: '#/components/responses/AuthenticationError'
        '402':
          $ref: '#/components/responses/SubscriptionPaused'
        '403':
          $ref: '#/components/responses/ScopeInsufficient'
        '429':
          $ref: '#/components/responses/RateLimited'
      tags:
      - Flow
  /v1/flow/tickers/{ticker}/bucket:
    get:
      operationId: flow.ticker_bucket
      summary: 'Bounded ticker bucket view: both cohort summaries, one cohort top-contract…'
      security:
      - bearerAuth: []
      parameters:
      - name: ticker
        in: path
        required: true
        schema:
          type: string
          pattern: ^[A-Z][A-Z0-9]*(\.[A-Z0-9]+)*$
      - name: session_date
        in: query
        required: false
        schema:
          type: string
          format: date
      - name: window
        in: query
        required: true
        schema:
          type: string
          enum:
          - day
          - 1m
          - 5m
          - 15m
          - 30m
          - 60m
      - name: bucket_start_micros
        in: query
        required: false
        schema:
          type: integer
      - name: section
        in: query
        required: false
        schema:
          type: string
          enum:
          - summary
          - top_contracts
          - trades
      - name: cohort
        in: query
        required: false
        schema:
          type: string
          enum:
          - rest
          - zero_dte
      - name: limit
        in: query
        required: false
        schema:
          type: integer
      - name: cursor
        in: query
        required: false
        schema:
          type: string
      responses:
        '200':
          description: object payload
        '400':
          $ref: '#/components/responses/ValidationError'
        '401':
          $ref: '#/components/responses/AuthenticationError'
        '402':
          $ref: '#/components/responses/SubscriptionPaused'
        '403':
          $ref: '#/components/responses/ScopeInsufficient'
        '429':
          $ref: '#/components/responses/RateLimited'
      tags:
      - Flow
components:
  responses:
    AuthenticationError:
      description: authentication error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
    SubscriptionPaused:
      description: subscription paused
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
    ScopeInsufficient:
      description: scope insufficient, dataset access not enabled, or plan tier required
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
    ValidationError:
      description: validation error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
    RateLimited:
      description: rate limited or quota exhausted
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
  schemas:
    ErrorEnvelope:
      type: object
      additionalProperties: false
      required:
      - error
      properties:
        error:
          type: object
          required:
          - code
          - tags
          - message
          - docs_url
          - request_id
          properties:
            code:
              type: string
            tags:
              type: array
              items:
                type: string
            message:
              type: string
            docs_url:
              type: string
              format: uri
            request_id:
              type:
              - string
              - 'null'
            hint:
              type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API key