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

# Get Market Data

> Retrieves market data including volatility and average daily volume for an entity.



## OpenAPI

````yaml get /v1/entities/{entity_id}/market_data
openapi: 3.0.1
info:
  title: REST API
  description: >-
    The Coinbase Prime REST API provides programmatic access to trading,
    custody, staking, market data, and account management functionality.
  version: '0.1'
servers:
  - url: https://api.prime.coinbase.com/
security: []
tags:
  - name: PrimeRESTAPI
paths:
  /v1/entities/{entity_id}/market_data:
    get:
      tags:
        - Financing
      summary: Get Market Data
      description: >-
        Retrieves market data including volatility and average daily volume for
        an entity.
      operationId: PrimeRESTAPI_GetMarketData
      parameters:
        - name: entity_id
          in: path
          description: Prime Entity ID
          required: true
          schema:
            type: string
        - name: cursor
          in: query
          description: Cursor for pagination
          schema:
            type: string
        - name: limit
          in: query
          description: Number of results to return per page
          schema:
            type: integer
            format: int32
        - name: sort_direction
          in: query
          description: Sort direction for results
          schema:
            type: string
            default: DESC
            enum:
              - DESC
              - ASC
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/coinbase.public_rest_api.GetMarketDataResponse
components:
  schemas:
    coinbase.public_rest_api.GetMarketDataResponse:
      type: object
      properties:
        market_data:
          type: array
          description: List of market data entries
          items:
            $ref: '#/components/schemas/coinbase.public_rest_api.MarketData'
        pagination:
          $ref: '#/components/schemas/coinbase.public_rest_api.PaginatedResponse'
    coinbase.public_rest_api.MarketData:
      type: object
      properties:
        symbol:
          type: string
          description: Base asset symbol (e.g., BTC, ETH, SOL)
          example: BTC
        vol_5d:
          type: string
          description: >-
            Daily historical volatility over trailing 5 days (decimal, e.g.,
            0.65 = 65%)
          example: '0.65'
        vol_30d:
          type: string
          description: >-
            Daily historical volatility over trailing 30 days (decimal, e.g.,
            0.65 = 65%)
          example: '0.65'
        vol_90d:
          type: string
          description: >-
            Daily historical volatility over trailing 90 days (decimal, e.g.,
            0.65 = 65%)
          example: '0.65'
        adv_30d:
          type: string
          description: Average daily trading volume over trailing 30 days (USD)
          example: '1234567.89'
        weighted_vol:
          type: string
          description: >-
            Weighted blend of the most recent vol_5d and the max vol_5d over
            last 30 days into a single volatility measure (decimal).
          example: '0.0345'
    coinbase.public_rest_api.PaginatedResponse:
      required:
        - has_next
        - next_cursor
        - sort_direction
      type: object
      properties:
        next_cursor:
          type: string
          description: Cursor to navigate to next page
        sort_direction:
          $ref: '#/components/schemas/coinbase.public_rest_api.SortDirection'
        has_next:
          type: boolean
          description: >-
            A boolean value indicating whether there are more items to paginate
            through
    coinbase.public_rest_api.SortDirection:
      type: string
      default: DESC
      enum:
        - DESC
        - ASC

````