> ## 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 the ticker snapshot

> Returns the last trade and the best bid and ask for an instrument. Requires MARKET_DATA permission.



## OpenAPI

````yaml /api-reference/derivatives-predictions-api/rest-api/cpm-spec.json get /api/ticker/{instrument_id}
openapi: 3.0.3
info:
  title: CPM Public REST API
  version: 0.1.0
servers:
  - url: https://api.example.com
    variables: {}
security:
  - auth_api_key: []
  - auth_timestamp: []
  - auth_passphrase: []
  - auth_signature: []
paths:
  /api/ticker/{instrument_id}:
    get:
      tags:
        - MarketData
      summary: Get the ticker snapshot
      description: >-
        Returns the last trade and the best bid and ask for an instrument.
        Requires MARKET_DATA permission.
      operationId: getTicker
      parameters:
        - name: instrument_id
          in: path
          description: Instrument ID.
          required: true
          deprecated: false
          allowEmptyValue: false
          schema:
            type: string
      responses:
        '200':
          description: Ticker snapshot
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TickerResponse'
      deprecated: false
      security: []
components:
  schemas:
    TickerResponse:
      type: object
      additionalProperties: false
      properties:
        instrument_id:
          type: string
          description: Instrument id, as a canonical decimal string.
          example: '598471892347'
        last_trade_price:
          type: string
          description: >-
            Price of the most recent trade per YES contract in USDC, as a
            decimal string. Null before the instrument's first trade.
          example: '0.590000'
        last_trade_qty:
          type: string
          description: >-
            Quantity of the most recent trade in contracts, as a decimal string.
            Null before the instrument's first trade.
          example: '10.00'
        best_bid:
          type: string
          description: >-
            Highest resting bid price for the YES contract, as a decimal string,
            or null when there are no bids.
          example: '0.590000'
        best_ask:
          type: string
          description: >-
            Lowest resting ask price for the YES contract, as a decimal string,
            or null when there are no asks.
          example: '0.600000'
        last_trade_timestamp_ns:
          type: integer
          format: int64
          description: >-
            Time of the most recent trade, in nanoseconds since the Unix epoch.
            Null before the instrument's first trade.
          example: 1795812345678000000
  securitySchemes:
    auth_api_key:
      name: CB-ACCESS-KEY
      description: The API key string for the request
      in: header
      type: apiKey
    auth_timestamp:
      name: CB-ACCESS-TIMESTAMP
      description: The request timestamp (epoch seconds)
      in: header
      type: apiKey
    auth_passphrase:
      name: CB-ACCESS-PASSPHRASE
      description: The passphrase for the API key
      in: header
      type: apiKey
    auth_signature:
      name: CB-ACCESS-SIGN
      description: HMAC SHA-256 signature over TIMESTAMP + METHOD + REQUEST_PATH + BODY
      in: header
      type: apiKey

````