> ## Documentation Index
> Fetch the complete documentation index at: https://docs.skylit.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Intraday chart bars for a ticker

> Returns time-bucketed bars aggregating options activity for the
underlying (call/put volume + premium, P/C ratio, bid/ask
execution split) plus the underlying stock price at each
boundary. Backed by the same intraday rollup tables that power
the chart modal in the Skylit UI.

**Field naming.** This endpoint returns `snake_case` keys
(passed through from the internal intraday store). All other
`/v1/underlying/*` endpoints use `camelCase`. A future revision
will reconcile this; encode against `UnderlyingChartBar` for now.




## OpenAPI

````yaml /flowseeker-openapi.yaml get /v1/underlying/{ticker}/chart
openapi: 3.1.0
info:
  title: Flowseeker — Skylit Public API
  version: 1.0.0
  summary: Real-time and historical options-flow analytics as a public HTTP API.
  description: >
    Flowseeker exposes Skylit's real-time options-flow scoring stack — Flow

    Score, FlowBonus, VWF/SDF/FIR aggregates, sector rotation, and market

    breadth — as a versioned public HTTP API. Data is sourced from Databento

    OPRA + ThetaData with sub-second freshness during market hours.


    **Authentication.** Send your Skylit API key as a bearer token:

        Authorization: Bearer fs_live_<key>

    (`X-API-Key: fs_live_<key>` is also accepted.) Your rate limit and monthly

    quota are determined by your account plan.


    **Rate limits & quotas.** Per-minute limits are enforced by the Skylit

    gateway and surfaced on every response via `X-RateLimit-Limit`,

    `X-RateLimit-Remaining`, and `X-RateLimit-Reset`. `429` includes

    `Retry-After`; quota exhaustion returns `403` with `code: QUOTA_EXCEEDED`.


    **Credits & billing.** Every `/v1/*` data request debits a fixed number of

    **credits** from your account's shared Skylit balance (the same balance used

    across all Skylit public APIs). Each chargeable response carries

    `X-Credits-Remaining: <balance>`. The credit is charged before the request

    is served, so a `5xx` still bills. Cost is priced by server-side work and

    data volume returned:


    | Tier | Credits | Routes |

    |------|--------:|--------|

    | Light | 1 | single-key reads, ratios, scores, discovery/search lists,
    expirations, rvol, per-contract bull/bear, the flow feed |

    | Medium | 3 | charts, full chains, by-strike matrix,
    momentum/baseline/strikes, tide, aggregate, sweeps, market, sector,
    market-breadth, chain bull/bear, unusual-volume/oi screeners |

    | Heavy | 5 | trade feeds (`/trades`), history (`/history`,
    `historical-compare`), bulk endpoints |


    `/v1/openapi.json` is free. When you run out of credits the API returns

    `402` `insufficient_credits`; a suspended account returns `403`

    `account_suspended`; a transient billing-store error returns `503`

    `credit_check_failed` (safe to retry). These billing codes are lowercase

    (`insufficient_credits`, `account_suspended`, `credit_check_failed`) — the

    platform-wide convention for credit errors.


    **Response envelope.** All success responses share one shape:

        { "data": <payload>, "meta": { "timestamp": "...", "requestId": "..." } }

    All errors share one shape:

        { "error": { "code": "NOT_FOUND", "message": "..." } }

    Field names are camelCase throughout. Codes are stable, machine-readable

    `SCREAMING_SNAKE_CASE` strings — the message text may evolve.


    **Freshness.** Endpoints with a `timeframe` parameter (e.g.
    `/v1/flow/{ticker}`)

    return data through the last completed bucket. Intra-bucket fills land on
    the

    next request. The cumulative `/v1/flow/market-breadth` and aggregate scoring

    endpoints update at most once per second.
servers:
  - url: https://flow-api.skylit.ai
    description: Production
  - url: https://d2kehby0dtx1a6.cloudfront.net
    description: Staging (subject to wipes; do not use for billing-relevant work)
security:
  - bearerApiKey: []
tags:
  - name: Flow
    description: Per-ticker flow feed, aggregate scoring, baselines, and momentum.
  - name: Sweeps
    description: Aggregated multi-exchange sweeps and sweep-only feeds.
  - name: Sector
    description: Sector- and industry-level flow rollups.
  - name: Market
    description: >-
      Market-wide overview, breadth, advance/decline, sector rotation, and
      net-premium tide.
  - name: Analytics
    description: >
      Standalone analytics endpoints — Vol/OI accumulation, moneyness
      segmentation,

      and timeframe-aggregated sentiment scores.
  - name: Ratios
    description: |
      Bid/ask/mid distribution analyses at chain and contract granularity, plus
      call/put-aware bull/bear pressure breakdowns.
  - name: Scoring
    description: Per-trade scoring, sentiment, and intent classification.
  - name: Underlying
    description: |
      Ticker-level discovery and analytics — top tickers by flow,
      bulk stats, intraday chart bars, raw enriched trades, strike /
      expiration distributions, option chain, and historical rollups.
  - name: Contract
    description: |
      Per-contract discovery and analytics — top contracts by flow,
      unusual volume / OI scans, contract stats, intraday chart bars,
      raw enriched trades, and historical rollups.
  - name: Meta
    description: API metadata (this OpenAPI document, etc.).
paths:
  /v1/underlying/{ticker}/chart:
    get:
      tags:
        - Underlying
      summary: Intraday chart bars for a ticker
      description: |
        Returns time-bucketed bars aggregating options activity for the
        underlying (call/put volume + premium, P/C ratio, bid/ask
        execution split) plus the underlying stock price at each
        boundary. Backed by the same intraday rollup tables that power
        the chart modal in the Skylit UI.

        **Field naming.** This endpoint returns `snake_case` keys
        (passed through from the internal intraday store). All other
        `/v1/underlying/*` endpoints use `camelCase`. A future revision
        will reconcile this; encode against `UnderlyingChartBar` for now.
      operationId: getUnderlyingChart
      parameters:
        - $ref: '#/components/parameters/Ticker'
        - in: query
          name: interval
          required: true
          description: Trailing window covered by the bars (e.g. `1D`, `7D`, `30D`).
          schema:
            type: string
            example: 1D
        - in: query
          name: bucket
          required: true
          description: Bucket size — `1min`, `5min`, `15min`, `30min`, or `1d`.
          schema:
            type: string
            enum:
              - 1min
              - 5min
              - 15min
              - 30min
              - 1d
      responses:
        '200':
          description: Intraday chart bars (snake_case).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UnderlyingChartSuccess'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '402':
          $ref: '#/components/responses/InsufficientCredits'
        '429':
          $ref: '#/components/responses/RateLimited'
components:
  parameters:
    Ticker:
      name: ticker
      in: path
      required: true
      description: Underlying ticker symbol (uppercase, e.g. `SPY`, `AAPL`).
      schema:
        type: string
        example: SPY
  schemas:
    UnderlyingChartSuccess:
      type: object
      required:
        - data
        - meta
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/UnderlyingChartBar'
        meta:
          $ref: '#/components/schemas/Meta'
    UnderlyingChartBar:
      type: object
      description: |
        One bucketed bar in the underlying-chart response. Each bar covers
        `[timestamp, timestamp_end)` in Unix UTC seconds. Note: this
        endpoint serves `snake_case` keys (passthrough from the internal
        intraday store).
      required:
        - timestamp
        - timestamp_end
        - call_volume
        - put_volume
        - candle_volume
        - call_premium
        - put_premium
        - candle_premium
        - stock_price
        - pc_ratio
        - chain_bid_pct
        - chain_ask_pct
      properties:
        timestamp:
          type: string
          description: >-
            Bucket start, Unix seconds (returned as a string for JS-precision
            safety).
          example: '1745418600'
        timestamp_end:
          type: string
          example: '1745418900'
        call_volume:
          type: integer
          minimum: 0
        put_volume:
          type: integer
          minimum: 0
        candle_volume:
          type: integer
          minimum: 0
          description: '`call_volume + put_volume`.'
        call_premium:
          type: number
          format: double
        put_premium:
          type: number
          format: double
        candle_premium:
          type: number
          format: double
        stock_price:
          type: number
          format: double
        pc_ratio:
          type: number
          format: double
          description: '`put_volume / call_volume` (0 when no calls).'
        avg_volume:
          type: number
          format: double
          description: >-
            30D baseline volume for this time-of-day slot. Omitted when
            insufficient history.
        avg_premium:
          type: number
          format: double
          description: 30D baseline premium for this time-of-day slot.
        chain_bid_pct:
          type: number
          format: double
          description: '% of bucket volume executed at/below the bid.'
        chain_ask_pct:
          type: number
          format: double
          description: '% of bucket volume executed at/above the ask.'
    Meta:
      type: object
      required:
        - timestamp
        - requestId
      properties:
        timestamp:
          type: string
          format: date-time
          description: Server-side timestamp the response was generated at.
        requestId:
          type: string
          description: Short opaque ID for log correlation.
          example: d7574836
    Error:
      type: object
      required:
        - error
      properties:
        error:
          type: object
          required:
            - code
            - message
          properties:
            code:
              type: string
              description: |
                Stable machine-readable error code. Common values:
                `BAD_REQUEST`, `UNAUTHORIZED`, `FORBIDDEN`, `NOT_FOUND`,
                `RATE_LIMITED`, `QUOTA_EXCEEDED`, `INTERNAL_ERROR`,
                `UNAVAILABLE`.
              example: NOT_FOUND
            message:
              type: string
              description: Human-readable explanation. Wording may evolve; key off `code`.
  responses:
    BadRequest:
      description: Request validation failed.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          examples:
            invalidParam:
              value:
                error:
                  code: BAD_REQUEST
                  message: >-
                    Invalid parameter 'timeframe': must be one of [1m, 5m, 15m,
                    1h, 4h, 1d, 1w, 1M]
    Unauthorized:
      description: Missing or invalid API key.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          examples:
            missingKey:
              value:
                error:
                  code: UNAUTHORIZED
                  message: Authentication required
    InsufficientCredits:
      description: >-
        The account's shared Skylit credit balance is lower than this route's
        cost. Top up to continue. Carries `X-Credits-Remaining: 0`.
      headers:
        X-Credits-Remaining:
          description: Remaining credit balance (0 on this response).
          schema:
            type: integer
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          examples:
            outOfCredits:
              value:
                error:
                  code: insufficient_credits
                  message: Out of credits. Top up to continue making requests.
    RateLimited:
      description: Per-minute rate limit exceeded.
      headers:
        Retry-After:
          schema:
            type: integer
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          examples:
            tooFast:
              value:
                error:
                  code: RATE_LIMITED
                  message: Rate limit of 100 req/min exceeded. Retry after 18s.
  securitySchemes:
    bearerApiKey:
      type: http
      scheme: bearer
      bearerFormat: fs_live_*
      description: |
        Skylit API key in the `Authorization` header
        (`Authorization: Bearer fs_live_<key>`). `X-API-Key` is also accepted.

````