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

# Get price



## OpenAPI

````yaml /stocks/api-reference/openapi.json get /prices/{symbol}
openapi: 3.1.0
info:
  contact:
    email: support@daya.co
    name: API Support
  description: >-
    Public developer API for the Stocks by Daya product. X-API-Key
    authenticated. Market data, portfolio, balances, activity, order placement,
    and fiat withdrawals. All responses use the standard envelope: { success,
    message?, data?, error?, timestamp }.
  title: Daya Stocks Public API
  version: 1.0.0
servers:
  - url: https://api.daya.co/stocks/v1
    description: Production server
security:
  - ApiKeyAuth: []
paths:
  /prices/{symbol}:
    get:
      tags:
        - stocks-market-data
      summary: Get price
      operationId: getPricesBysymbol
      parameters:
        - description: Display symbol
          in: path
          name: symbol
          required: true
          schema:
            type: string
        - description: Quote asset (defaults to USD; NGN switches to the FX rate)
          in: query
          name: quote
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                allOf:
                  - $ref: >-
                      #/components/schemas/github_com_dayacoins_daya-stocks-service_pkg_response.Envelope
                  - properties:
                      data:
                        $ref: '#/components/schemas/internal_publicapi_v1.PublicPrice'
                    type: object
          description: Display price (never an execution price)
        '400':
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/github_com_dayacoins_daya-stocks-service_pkg_response.Envelope
          description: symbol required
        '404':
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/github_com_dayacoins_daya-stocks-service_pkg_response.Envelope
          description: Price not available
        '500':
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/github_com_dayacoins_daya-stocks-service_pkg_response.Envelope
          description: Failed to load price
components:
  schemas:
    github_com_dayacoins_daya-stocks-service_pkg_response.Envelope:
      properties:
        data: {}
        error:
          $ref: >-
            #/components/schemas/github_com_dayacoins_daya-stocks-service_pkg_response.ErrorData
        message:
          description: Message is an optional banner/toast string.
          type: string
        success:
          type: boolean
        timestamp:
          type: string
      type: object
    internal_publicapi_v1.PublicPrice:
      properties:
        change_24h_pct:
          example: '1.25'
          type: string
        price_usd:
          example: '189.50'
          type: string
        stale:
          example: false
          type: boolean
        symbol:
          example: AAPL
          type: string
        updated_at:
          example: '2026-01-15T10:30:00Z'
          type: string
      type: object
    github_com_dayacoins_daya-stocks-service_pkg_response.ErrorData:
      properties:
        code:
          type: string
        details: {}
        fields:
          additionalProperties:
            type: string
          type: object
        message:
          type: string
      type: object
  securitySchemes:
    ApiKeyAuth:
      description: >-
        Your Daya API key, sent in the X-API-Key header. Issue and scope keys in
        the Daya dashboard.
      in: header
      name: X-API-Key
      type: apiKey

````