Nightwatch Stocks API

The Stocks API from Nightwatch — 23 operation(s) for stocks.

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 23

GET /v1/stocks/company-profile/{ticker} Company fundamentals and reference profile (on-demand materialization) #
GET /v1/stocks/dividends/{ticker} Dividend history for one ticker (on-demand materialization) #
GET /v1/stocks/info/{ticker} Reference metadata for one ticker (on-demand materialization) #
GET /v1/stocks/listings Full active US listing directory (canonical active universe) #
GET /v1/stocks/lit-trades-by-ticker/{ticker} Recent lit-exchange prints for one ticker (on-demand materialization) #
GET /v1/stocks/lit-trades-recent Most recent market-wide lit-exchange stock prints #
GET /v1/stocks/index-ohlc/{ticker} Latest session OHLC for a cash index (on-demand materialization) #
GET /v1/stocks/index-price-now/{ticker} Latest cash index price #
GET /v1/stocks/market-ohlc-today Current session OHLC across stocks #
GET /v1/stocks/last-trade/{ticker} Latest stock trade #
GET /v1/stocks/nbbo-history/{ticker} Historical stock best bids and offers #
GET /v1/stocks/prints/{ticker} Historical stock trades #
GET /v1/stocks/at-time/{ticker} Stock trade and quote at a point in time #
GET /v1/stocks/index-price-ticks/{ticker} Historical index price updates #
GET /v1/stocks/index-at-time/{ticker} Index price at a point in time #
GET /v1/stocks/bars/{ticker} Historical OHLC bars for one stock or index at 1m or 1d (on-demand… #
GET /v1/stocks/ohlc/{ticker} OHLC candles for one ticker at a chosen candle size (on-demand materialization) #
GET /v1/stocks/quote/{ticker} Latest NBBO quote for a single stock ticker (on-demand materialization) #
GET /v1/stocks/sector-tickers Tickers in a given sector (on-demand materialization) #
GET /v1/stocks/splits/{ticker} Stock split history for one ticker (on-demand materialization) #
GET /v1/stocks/stock-state/{ticker} Latest stock state for one ticker (on-demand materialization) #
GET /v1/stocks/technical-indicator/{ticker} Technical indicator time series for one ticker (on-demand materialization) #
GET /v1/stocks/ticker-exchanges Ticker-to-exchange directory (raw vendor list, includes delisted symbols) #

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-stocks-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-stocks-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: GEX Heatmap Data Stocks 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: Stocks
paths:
  /v1/stocks/company-profile/{ticker}:
    get:
      operationId: stocks.company_profile
      summary: Company fundamentals and reference profile (on-demand materialization)
      security:
      - bearerAuth: []
      parameters:
      - name: ticker
        in: path
        required: true
        schema:
          type: string
          pattern: ^[A-Z][A-Z0-9]*(\.[A-Z0-9]+)*$
      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:
      - Stocks
  /v1/stocks/dividends/{ticker}:
    get:
      operationId: stocks.dividends
      summary: Dividend history for one ticker (on-demand materialization)
      security:
      - bearerAuth: []
      parameters:
      - name: ticker
        in: path
        required: true
        schema:
          type: string
          pattern: ^[A-Z][A-Z0-9]*(\.[A-Z0-9]+)*$
      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:
      - Stocks
  /v1/stocks/info/{ticker}:
    get:
      operationId: stocks.info
      summary: Reference metadata for one ticker (on-demand materialization)
      security:
      - bearerAuth: []
      parameters:
      - name: ticker
        in: path
        required: true
        schema:
          type: string
          pattern: ^[A-Z][A-Z0-9]*(\.[A-Z0-9]+)*$
      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:
      - Stocks
  /v1/stocks/listings:
    get:
      operationId: stocks.listings
      summary: Full active US listing directory (canonical active universe)
      security:
      - bearerAuth: []
      parameters: []
      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:
      - Stocks
  /v1/stocks/lit-trades-by-ticker/{ticker}:
    get:
      operationId: stocks.lit_trades_by_ticker
      summary: Recent lit-exchange prints for one ticker (on-demand materialization)
      security:
      - bearerAuth: []
      parameters:
      - name: ticker
        in: path
        required: true
        schema:
          type: string
          pattern: ^[A-Z][A-Z0-9]*(\.[A-Z0-9]+)*$
      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:
      - Stocks
  /v1/stocks/lit-trades-recent:
    get:
      operationId: stocks.lit_trades_recent
      summary: Most recent market-wide lit-exchange stock prints
      security:
      - bearerAuth: []
      parameters: []
      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:
      - Stocks
  /v1/stocks/index-ohlc/{ticker}:
    get:
      operationId: stocks.index_ohlc
      summary: Latest session OHLC for a cash index (on-demand materialization)
      security:
      - bearerAuth: []
      parameters:
      - name: ticker
        in: path
        required: true
        schema:
          type: string
          pattern: ^[A-Z][A-Z0-9]*(\.[A-Z0-9]+)*$
      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:
      - Stocks
  /v1/stocks/index-price-now/{ticker}:
    get:
      operationId: stocks.index_price_now
      summary: Latest cash index price
      security:
      - bearerAuth: []
      parameters:
      - name: ticker
        in: path
        required: true
        schema:
          type: string
          pattern: ^[A-Z][A-Z0-9]*(\.[A-Z0-9]+)*$
      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:
      - Stocks
  /v1/stocks/market-ohlc-today:
    get:
      operationId: stocks.market_ohlc_today
      summary: Current session OHLC across stocks
      security:
      - bearerAuth: []
      parameters:
      - name: date
        in: query
        required: false
        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: paginated object 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:
      - Stocks
  /v1/stocks/last-trade/{ticker}:
    get:
      operationId: stocks.last_trade
      summary: Latest stock trade
      security:
      - bearerAuth: []
      parameters:
      - name: ticker
        in: path
        required: true
        schema:
          type: string
          pattern: ^[A-Z][A-Z0-9]*(\.[A-Z0-9]+)*$
      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:
      - Stocks
  /v1/stocks/nbbo-history/{ticker}:
    get:
      operationId: stocks.nbbo_history
      summary: Historical stock best bids and offers
      security:
      - bearerAuth: []
      parameters:
      - name: ticker
        in: path
        required: true
        schema:
          type: string
          pattern: ^[A-Z][A-Z0-9]*(\.[A-Z0-9]+)*$
      - name: date
        in: query
        required: true
        schema:
          type: string
          format: date
      - name: start_time
        in: query
        required: true
        schema:
          type: string
      - name: end_time
        in: query
        required: true
        schema:
          type: string
      - name: limit
        in: query
        required: false
        schema:
          type: integer
      - name: cursor
        in: query
        required: false
        schema:
          type: string
      responses:
        '200':
          description: paginated object 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:
      - Stocks
  /v1/stocks/prints/{ticker}:
    get:
      operationId: stocks.prints
      summary: Historical stock trades
      security:
      - bearerAuth: []
      parameters:
      - name: ticker
        in: path
        required: true
        schema:
          type: string
          pattern: ^[A-Z][A-Z0-9]*(\.[A-Z0-9]+)*$
      - name: date
        in: query
        required: true
        schema:
          type: string
          format: date
      - name: start_time
        in: query
        required: true
        schema:
          type: string
      - name: end_time
        in: query
        required: true
        schema:
          type: string
      - name: limit
        in: query
        required: false
        schema:
          type: integer
      - name: cursor
        in: query
        required: false
        schema:
          type: string
      responses:
        '200':
          description: paginated object 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:
      - Stocks
  /v1/stocks/at-time/{ticker}:
    get:
      operationId: stocks.at_time
      summary: Stock trade and quote at a point in time
      security:
      - bearerAuth: []
      parameters:
      - name: ticker
        in: path
        required: true
        schema:
          type: string
          pattern: ^[A-Z][A-Z0-9]*(\.[A-Z0-9]+)*$
      - name: date
        in: query
        required: true
        schema:
          type: string
          format: date
      - name: time
        in: query
        required: true
        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:
      - Stocks
  /v1/stocks/index-price-ticks/{ticker}:
    get:
      operationId: stocks.index_price_ticks
      summary: Historical index price updates
      security:
      - bearerAuth: []
      parameters:
      - name: ticker
        in: path
        required: true
        schema:
          type: string
          pattern: ^[A-Z][A-Z0-9]*(\.[A-Z0-9]+)*$
      - name: date
        in: query
        required: true
        schema:
          type: string
          format: date
      - name: start_time
        in: query
        required: true
        schema:
          type: string
      - name: end_time
        in: query
        required: true
        schema:
          type: string
      - name: limit
        in: query
        required: false
        schema:
          type: integer
      - name: cursor
        in: query
        required: false
        schema:
          type: string
      responses:
        '200':
          description: paginated object 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:
      - Stocks
  /v1/stocks/index-at-time/{ticker}:
    get:
      operationId: stocks.index_at_time
      summary: Index price at a point in time
      security:
      - bearerAuth: []
      parameters:
      - name: ticker
        in: path
        required: true
        schema:
          type: string
          pattern: ^[A-Z][A-Z0-9]*(\.[A-Z0-9]+)*$
      - name: date
        in: query
        required: true
        schema:
          type: string
          format: date
      - name: time
        in: query
        required: true
        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:
      - Stocks
  /v1/stocks/bars/{ticker}:
    get:
      operationId: stocks.bars
      summary: Historical OHLC bars for one stock or index at 1m or 1d (on-demand…
      security:
      - bearerAuth: []
      parameters:
      - name: ticker
        in: path
        required: true
        schema:
          type: string
          pattern: ^[A-Z][A-Z0-9]*(\.[A-Z0-9]+)*$
      - name: interval
        in: query
        required: true
        schema:
          type: string
          enum:
          - 1m
          - 1d
      - name: from
        in: query
        required: true
        schema:
          type: string
          format: date
      - name: to
        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: paginated object 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:
      - Stocks
  /v1/stocks/ohlc/{ticker}:
    get:
      operationId: stocks.ohlc
      summary: OHLC candles for one ticker at a chosen candle size (on-demand materialization)
      security:
      - bearerAuth: []
      parameters:
      - name: ticker
        in: path
        required: true
        schema:
          type: string
          pattern: ^[A-Z][A-Z0-9]*(\.[A-Z0-9]+)*$
      - name: candle_size
        in: query
        required: true
        schema:
          type: string
          enum:
          - 1m
          - 5m
          - 10m
          - 15m
          - 30m
          - 1h
          - 4h
          - 1d
          - 1w
      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:
      - Stocks
  /v1/stocks/quote/{ticker}:
    get:
      operationId: stocks.quote
      summary: Latest NBBO quote for a single stock ticker (on-demand materialization)
      security:
      - bearerAuth: []
      parameters:
      - name: ticker
        in: path
        required: true
        schema:
          type: string
          pattern: ^[A-Z][A-Z0-9]*(\.[A-Z0-9]+)*$
      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:
      - Stocks
  /v1/stocks/sector-tickers:
    get:
      operationId: stocks.sector_tickers
      summary: Tickers in a given sector (on-demand materialization)
      security:
      - bearerAuth: []
      parameters:
      - name: sector
        in: query
        required: true
        schema:
          type: string
          enum:
          - Basic Materials
          - Communication Services
          - Consumer Cyclical
          - Consumer Defensive
          - Energy
          - Financial Services
          - Healthcare
          - Industrials
          - Real Estate
          - Technology
          - Utilities
      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:
      - Stocks
  /v1/stocks/splits/{ticker}:
    get:
      operationId: stocks.splits
      summary: Stock split history for one ticker (on-demand materialization)
      security:
      - bearerAuth: []
      parameters:
      - name: ticker
        in: path
        required: true
        schema:
          type: string
          pattern: ^[A-Z][A-Z0-9]*(\.[A-Z0-9]+)*$
      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:
      - Stocks
  /v1/stocks/stock-state/{ticker}:
    get:
      operationId: stocks.stock_state
      summary: Latest stock state for one ticker (on-demand materialization)
      security:
      - bearerAuth: []
      parameters:
      - name: ticker
        in: path
        required: true
        schema:
          type: string
          pattern: ^[A-Z][A-Z0-9]*(\.[A-Z0-9]+)*$
      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:
      - Stocks
  /v1/stocks/technical-indicator/{ticker}:
    get:
      operationId: stocks.technical_indicator
      summary: Technical indicator time series for one ticker (on-demand materialization)
      security:
      - bearerAuth: []
      parameters:
      - name: ticker
        in: path
        required: true
        schema:
          type: string
          pattern: ^[A-Z][A-Z0-9]*(\.[A-Z0-9]+)*$
      - name: function
        in: query
        required: true
        schema:
          type: string
          enum:
          - AD
          - ADOSC
          - ADX
          - ADXR
          - APO
          - AROON
          - AROONOSC
          - ATR
          - BBANDS
          - BOP
          - CCI
          - CMO
          - DEMA
          - DX
          - EMA
          - HT_DCPERIOD
          - HT_DCPHASE
          - HT_PHASOR
          - HT_SINE
          - HT_TRENDLINE
          - HT_TRENDMODE
          - KAMA
          - MACD
          - MACDEXT
          - MAMA
          - MFI
          - MIDPOINT
          - MIDPRICE
          - MINUS_DI
          - MINUS_DM
          - MOM
          - NATR
          - OBV
          - PLUS_DI
          - PLUS_DM
          - PPO
          - ROC
          - ROCR
          - RSI
          - SAR
          - SMA
          - STOCH
          - STOCHF
          - STOCHRSI
          - T3
          - TEMA
          - TRANGE
          - TRIMA
          - TRIX
          - ULTOSC
          - VWAP
          - WILLR
          - WMA
      - name: interval
        in: query
        required: false
        schema:
          type: string
          enum:
          - 1min
          - 5min
          - 15min
          - 30min
          - 60min
          - daily
          - weekly
          - monthly
      - name: series_type
        in: query
        required: false
        schema:
          type: string
          enum:
          - close
          - open
          - high
          - low
      - name: time_period
        in: query
        required: false
        schema:
          type: integer
      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:
      - Stocks
  /v1/stocks/ticker-exchanges:
    get:
      operationId: stocks.ticker_exchanges
      summary: Ticker-to-exchange directory (raw vendor list, includes delisted symbols)
      security:
      - bearerAuth: []
      parameters: []
      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:
      - Stocks
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