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

# Yields intradiarios

> Obtener datos intradiarios de rendimiento de un bono específico

<Note>
  Obtiene los datos yields intradiarios de un bono específico.
</Note>

## Parámetros

<ParamField path="symbol" type="string" required>
  Ticker del bono (ej., "AL30").
</ParamField>

## Ejemplo de Solicitud

<RequestExample>
  ```bash cURL theme={null}
  curl -X GET "https://api.doctacapital.com.ar/api/v1/bonds/yields/AL30/intraday" \
    -H "Authorization: Bearer YOUR_ACCESS_TOKEN"
  ```
</RequestExample>

## Respuesta Exitosa

<ResponseField name="ticker" type="string">
  Ticker del bono solicitado (ej., "AL30").
</ResponseField>

<ResponseField name="data" type="array">
  Serie de datos intradiarios de rendimiento.
</ResponseField>

<ResponseField name="data[].tir" type="number">
  Tasa Interna de Retorno (TIR) expresada como decimal.
</ResponseField>

<ResponseField name="data[].tna" type="number">
  Tasa Nominal Anual (TNA) expresada como decimal.
</ResponseField>

<ResponseField name="data[].tna_30_360" type="number">
  Tasa Nominal Anual calculada con base 30/360 expresada como decimal.
</ResponseField>

<ResponseField name="data[].tem" type="number">
  Tasa Efectiva Mensual (TEM) expresada como decimal.
</ResponseField>

<ResponseField name="data[].duration" type="number">
  Duración del bono en años.
</ResponseField>

<ResponseField name="data[].dtm" type="integer">
  Días hasta el vencimiento (Days to Maturity).
</ResponseField>

<ResponseField name="data[].margen" type="number | null">
  Margen del bono. Puede ser null.
</ResponseField>

<ResponseField name="metadata" type="object">
  Metadatos de la respuesta.
</ResponseField>

<ResponseField name="metadata.total_records" type="integer">
  Número total de registros intradiarios disponibles.
</ResponseField>

<ResponseField name="metadata.sub_asset_class" type="string">
  Subclase de activo del bono (ej., "HARD\_DOLLAR").
</ResponseField>

## Ejemplo de Respuesta Exitosa

<ResponseExample>
  ```json Success theme={null}
  {
    "ticker": "AL30",
    "data": [
      {
        "tir": 0.09887070513854544,
        "tna": 0.1177734104315629,
        "tna_30_360": 0.09465437970685375,
        "tem": 0.007887864975571146,
        "duration": 2.107751399163522,
        "dtm": 1663,
        "margen": null
      }
    ],
    "metadata": {
      "total_records": 1,
      "sub_asset_class": "HARD_DOLLAR"
    }
  }
  ```
</ResponseExample>


## OpenAPI

````yaml GET /api/v1/bonds/yields/{symbol}/intraday
openapi: 3.1.0
info:
  title: API de Docta
  description: >-
    API de mercado argentino: bonos (instrumentos, cashflows, curvas/yields) y
    FCI (screener, series, performance, comparaciones y analytics de industria).
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://api.doctacapital.com.ar
security: []
paths:
  /api/v1/bonds/yields/{symbol}/intraday:
    get:
      tags:
        - Bonds
      description: Obtener datos intradiarios de rendimiento de un bono específico
      parameters:
        - name: symbol
          in: path
          description: El símbolo del bono
          required: true
          schema:
            type: string
          example: AL30
      responses:
        '200':
          description: Datos intradiarios obtenidos exitosamente
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IntradayYieldsPricesResponse'
        '401':
          description: No autorizado - token de acceso inválido o faltante
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                type: /errors/authentication-required
                title: Authorization header missing
                status: 401
                detail: Authorization header missing
                correlation_id: d6e20e07-0580-4e2d-9480-00a68c1ae493
        '404':
          description: Ticker no encontrado
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                type: /errors/not-found
                title: Resource not found
                status: 404
                detail: Ticker not found
        '500':
          description: Error interno del servidor
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                type: /errors/internal-server-error
                title: Internal server error
                status: 500
                detail: Internal server error
                correlation_id: 6cd1fd05-63e9-4863-832f-d873e58e9d67
      security:
        - bearerAuth: []
components:
  schemas:
    IntradayYieldsPricesResponse:
      type: object
      properties:
        ticker:
          type: string
        data:
          type: array
          items: 9e541e06-5c1f-43c2-ac21-4c2041837c9b
        metadata: b9dc3154-a283-401d-81a6-05f9cb4832b0
      required:
        - ticker
        - data
        - metadata
    Error:
      required:
        - type
        - title
        - status
        - detail
        - correlation_id
      type: object
      properties:
        type:
          description: El identificador del tipo de error
          type: string
          example: /errors/authentication-required
        title:
          description: Una breve descripción del error
          type: string
          example: Invalid client credentials
        status:
          description: El código de estado HTTP
          type: integer
          example: 401
        detail:
          description: Una descripción detallada del error
          type: string
          example: Invalid client credentials
        correlation_id:
          description: Un identificador único para rastrear esta solicitud de error
          type: string
          format: uuid
          example: 2eb07802-94de-468a-b70f-75a49f3e9516
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````