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

# Aftermarket Prices

> Returns the latest extended-hours (aftermarket) trade and quote for one or more companies. Each record includes the last aftermarket trade (price, size, timestamp) and quote (best bid/ask price and size, cumulative volume, timestamp).



## OpenAPI

````yaml /api-rest/openapi/openapi_structured_data.json post /v1/price/aftermarket/query
openapi: 3.1.0
info:
  title: Bigdata Structured Data API
  description: Bigdata API documentation
  version: 1.0.0
servers:
  - url: https://api.bigdata.com/
security:
  - ApiKeyAuth: []
tags:
  - name: Market Data
    description: >-
      Market data endpoints including intraday prices, daily prices, price
      changes, and real-time quotes
  - name: Analyst Estimates
    description: >-
      Analyst estimates and ratings including analyst ratings, estimates, target
      prices, and earnings surprises
  - name: Financials & Ratios
    description: >-
      Financial statements and ratios including balance sheet, income statement,
      cash flow statement, key metrics TTM, and company ratios TTM
  - name: Company & Events
    description: >-
      Company information and events including company profile and events
      calendar
  - name: Fund Holdings
    description: >-
      Institutional fund holdings from SEC 13F filings including fund holdings
      and stock fund holdings
  - name: Knowledge Graph
    description: Corporate ownership and hierarchy data.
paths:
  /v1/price/aftermarket/query:
    post:
      tags:
        - Market Data
      summary: Aftermarket Prices
      description: >-
        Returns the latest extended-hours (aftermarket) trade and quote for one
        or more companies. Each record includes the last aftermarket trade
        (price, size, timestamp) and quote (best bid/ask price and size,
        cumulative volume, timestamp).
      operationId: query_aftermarket_v1_price_aftermarket_query_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AftermarketQuery'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AftermarketResponse'
components:
  schemas:
    AftermarketQuery:
      properties:
        identifier:
          $ref: '#/components/schemas/Identifier'
          description: >-
            Object specifying which identifier you are using to request the
            latest extended-hours (aftermarket) trade and quote. You must supply
            one type and its corresponding value, or a list of values.
          examples:
            - type: rp_entity_id
              value: 4A6F00
      type: object
      required:
        - identifier
      title: AftermarketQuery
    AftermarketResponse:
      properties:
        results:
          items:
            $ref: '#/components/schemas/AftermarketRecord'
          type: array
          title: Results
          description: The main data result
        errors:
          anyOf:
            - items:
                $ref: '#/components/schemas/ErrorDetail'
              type: array
            - type: 'null'
          title: Errors
        metadata:
          anyOf:
            - $ref: '#/components/schemas/Metadata'
            - type: 'null'
      type: object
      required:
        - results
      title: AftermarketResponse
      description: Company aftermarket trades & quotes response model.
    Identifier:
      properties:
        type:
          $ref: '#/components/schemas/IdentifierType'
          description: >-
            The identifier namespace. Currently only `rp_entity_id` is
            supported.
          default: rp_entity_id
          examples:
            - rp_entity_id
        value:
          anyOf:
            - type: string
            - items:
                type: string
              type: array
          title: Value
          description: >-
            Bigdata uses the RavenPack Entity identifier (RP_Entity_ID) to
            uniquely reference entities such as companies. This identifier is a
            6-character alphanumeric code (letters and numbers only). Example:
            Alphabet Inc. (`4A6F00`)
          examples:
            - 4A6F00
      type: object
      required:
        - type
        - value
      title: Identifier
    AftermarketRecord:
      properties:
        rp_entity_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Rp Entity Id
          description: RavenPack internal entity identifier.
          examples:
            - 4A6F00
            - D8442A
        target_identifier_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Target Identifier Id
          description: The target identifier provided in the request, e.g., stock symbol.
          examples:
            - GOOGL
            - AAPL
        trade:
          anyOf:
            - $ref: '#/components/schemas/AftermarketTrade'
            - type: 'null'
          description: The latest extended-hours trade.
        quote:
          anyOf:
            - $ref: '#/components/schemas/AftermarketQuote'
            - type: 'null'
          description: The latest extended-hours quote.
      type: object
      required:
        - rp_entity_id
        - target_identifier_id
      title: AftermarketRecord
      description: Latest extended-hours trade and quote for a single entity.
    ErrorDetail:
      properties:
        message:
          anyOf:
            - type: string
            - type: 'null'
          title: Message
      type: object
      title: ErrorDetail
    Metadata:
      properties:
        request_id:
          type: string
          title: Request Id
        timestamp:
          type: string
          title: Timestamp
      type: object
      required:
        - request_id
      title: Metadata
    IdentifierType:
      type: string
      enum:
        - rp_entity_id
      title: IdentifierType
      default: rp_entity_id
    AftermarketTrade:
      properties:
        price:
          anyOf:
            - type: number
            - type: 'null'
          title: Price
          description: The last extended-hours trade price.
          examples:
            - 245.79
        trade_size:
          anyOf:
            - type: integer
            - type: 'null'
          title: Trade Size
          description: The size (number of shares) of the last extended-hours trade.
          examples:
            - 100
        timestamp:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Timestamp
          description: The time of the last extended-hours trade (UTC).
          examples:
            - '2025-09-25T23:59:00'
      type: object
      title: AftermarketTrade
      description: Latest extended-hours (aftermarket) trade.
    AftermarketQuote:
      properties:
        bid_price:
          anyOf:
            - type: number
            - type: 'null'
          title: Bid Price
          description: The best extended-hours bid price.
          examples:
            - 245.5
        bid_size:
          anyOf:
            - type: integer
            - type: 'null'
          title: Bid Size
          description: The size available at the best bid.
          examples:
            - 200
        ask_price:
          anyOf:
            - type: number
            - type: 'null'
          title: Ask Price
          description: The best extended-hours ask price.
          examples:
            - 245.9
        ask_size:
          anyOf:
            - type: integer
            - type: 'null'
          title: Ask Size
          description: The size available at the best ask.
          examples:
            - 150
        volume:
          anyOf:
            - type: integer
            - type: 'null'
          title: Volume
          description: The cumulative extended-hours volume.
          examples:
            - 1250000
        timestamp:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Timestamp
          description: The time of the last extended-hours quote (UTC).
          examples:
            - '2025-09-25T23:59:00'
      type: object
      title: AftermarketQuote
      description: Latest extended-hours (aftermarket) quote.
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-KEY

````