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

# Lending Asset Summary Metrics

> This API provides aggregated insights into the asset markets across various lending protocols.



## OpenAPI

````yaml get /lending/{protocolId}/assets/{assetId}/metrics/summary
openapi: 3.1.0
info:
  title: Defi API
  version: '2'
servers:
  - url: https://api.amberdata.com/defi
security:
  - sec0: []
paths:
  /lending/{protocolId}/assets/{assetId}/metrics/summary:
    get:
      summary: Lending Asset Summary Metrics
      description: >-
        This API provides aggregated insights into the asset markets across
        various lending protocols.
      operationId: lending-asset-summary-metrics
      parameters:
        - name: protocolId
          in: path
          schema:
            type: string
            enum:
              - aavev2
              - aavev3
              - compoundv2
              - makerdao
            default: aavev3
          required: true
        - name: startDate
          in: query
          description: >-
            **[Optional]** Payload only includes data after this date
            (inclusive).<BR>**[Formats]** `seconds | milliseconds |
            iso8601`<BR>**[Examples]** `1578531600 | 1578531600000 |
            2020-09-01T01:00:00`
          schema:
            type: string
            format: date-time
        - name: endDate
          in: query
          description: >-
            **[Optional]** Payload only includes data before this date
            (exclusive).<BR>**[Formats]** `seconds | milliseconds |
            iso8601`<BR>**[Examples]** `1578531600 | 1578531600000 |
            2020-09-01T01:00:00`
          schema:
            type: string
            format: date-time
        - name: timeFormat
          in: query
          description: '**[Optional]** Time format of the timestamps in the return payload.'
          schema:
            type: string
            enum:
              - milliseconds
              - ms
              - iso
              - iso8601
              - hr
              - human_readable
            default: hr
        - name: x-amberdata-blockchain-id
          in: header
          description: >-
            **[Optional]** The id of the blockchain for which you want data
            from. Defaults to `ethereum-mainnet` if not specified. Use the
            [Information
            Protocols](https://docs.amberdata.io/reference/defi-lending-information-protocols)
            API to view the supported protocol and blockchain id combinations.
          schema:
            type: string
            enum:
              - ethereum-mainnet
              - avalanche-mainnet
              - arbitrum-mainnet
              - optimism-mainnet
        - name: assetId
          in: path
          description: >-
            **[Examples]** `USDC | WETH`. The requested asset must exist on the
            specified protocol.
          schema:
            type: string
            default: WETH
          required: true
        - name: market
          in: query
          description: >-
            **[Optional]** Applies only when `protocolId = makerdao`. Get only
            the aggregate data for the specific asset market.
          schema:
            type: string
      responses:
        '200':
          description: '200'
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: integer
                    example: 200
                  title:
                    type: string
                    example: OK
                  description:
                    type: string
                    example: Successful request
                  payload:
                    type: object
                    properties:
                      data:
                        type: object
                        properties:
                          metrics:
                            type: array
                            items:
                              type: object
                              properties:
                                timestamp:
                                  type: string
                                  example: 2023-01-27 23:59:59 999
                                totalDepositedUSD:
                                  type: number
                                  example: 798407.1054579312
                                totalBorrowedUSD:
                                  type: number
                                  example: 693408.5213470148
                                cumulativeLiquidatedUSD:
                                  type: number
                                  example: 0
                                intervalDepositedUSD:
                                  type: number
                                  example: 802410.1450574565
                                intervalWithdrawnUSD:
                                  type: number
                                  example: 4025.045964467924
                                intervalRepaidUSD:
                                  type: number
                                  example: 28431.264610794253
                                intervalBorrowedUSD:
                                  type: number
                                  example: 721813.6375024171
                                intervalLiquidatedUSD:
                                  type: number
                                  example: 0
                                intervalFlashLoanedUSD:
                                  type: number
                                  example: 0
      deprecated: false
components:
  securitySchemes:
    sec0:
      type: apiKey
      in: header
      x-default: API_KEY
      name: x-api-key

````