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

# List curated Euler markets

> List curated Euler V2 credit markets for a chain.

Euler is permissionless, so credit borrow/repay identify a market by EVK vault
address. This returns the borrow markets from Euler's Governed Perspective (the
DAO-vetted vault set) -- each with the collateral vaults it accepts and their
LTVs -- so callers know which borrow_vault / collateral_vault to use.



## OpenAPI

````yaml /v2/combined_spec.json get /v2/credit/euler_markets
openapi: 3.1.0
info:
  title: Compass API
  description: Compass Labs DeFi API
  version: 0.0.1
servers:
  - url: https://api.compasslabs.ai
    description: Production server
security:
  - ApiKeyAuth: []
paths:
  /v2/credit/euler_markets:
    get:
      tags:
        - Credit
      summary: List curated Euler markets
      description: >-
        List curated Euler V2 credit markets for a chain.


        Euler is permissionless, so credit borrow/repay identify a market by EVK
        vault

        address. This returns the borrow markets from Euler's Governed
        Perspective (the

        DAO-vetted vault set) -- each with the collateral vaults it accepts and
        their

        LTVs -- so callers know which borrow_vault / collateral_vault to use.
      operationId: v2_credit_euler_markets
      parameters:
        - name: chain
          in: query
          required: true
          schema:
            type: string
            enum:
              - arbitrum
              - base
              - ethereum
              - tempo
            title: Chain
            default: ethereum
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EulerMarketsResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      x-codeSamples:
        - lang: python
          label: Python (SDK)
          source: |-
            from compass_api_sdk import CompassAPI, models


            with CompassAPI(
                api_key_auth="<YOUR_API_KEY_HERE>",
            ) as compass_api:

                res = compass_api.credit.credit_euler_markets(chain=models.V2CreditEulerMarketsChain.ETHEREUM)

                # Handle response
                print(res)
        - lang: typescript
          label: Typescript (SDK)
          source: |-
            import { CompassApiSDK } from "@compass-labs/api-sdk";

            const compassApiSDK = new CompassApiSDK({
              apiKeyAuth: "<YOUR_API_KEY_HERE>",
            });

            async function run() {
              const result = await compassApiSDK.credit.creditEulerMarkets({
                chain: "ethereum",
              });

              console.log(result);
            }

            run();
components:
  schemas:
    EulerMarketsResponse:
      properties:
        perspective:
          type: string
          title: Perspective
          description: >-
            Euler Governed Perspective contract the curated vault set was read
            from.
        markets:
          items:
            $ref: '#/components/schemas/EulerMarket'
          type: array
          title: Markets
          description: >-
            Curated borrow markets, each with its accepted collateral vaults and
            LTVs.
          default: []
          example:
            - asset: '0xdAC17F958D2ee523a2206206994597C13D831ec7'
              asset_decimals: 6
              asset_symbol: USDT
              collaterals:
                - asset: '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48'
                  asset_symbol: USDC
                  borrow_ltv: '94.0000000000'
                  liquidation_ltv: '96.0000000000'
                  vault: '0x797DD80692c3b2dAdabCe8e30C07fDE5307D48a9'
              vault: '0x313603FA690301b0CaeEf8069c065862f9162162'
              vault_symbol: eUSDT-2
      type: object
      required:
        - perspective
      title: EulerMarketsResponse
      description: Curated Euler V2 borrow markets, read from Euler's Governed Perspective.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    EulerMarket:
      properties:
        vault:
          type: string
          title: Vault
          description: EVK vault to borrow from (pass as borrow_vault when borrowing).
        vault_symbol:
          type: string
          title: Vault Symbol
          description: Symbol of the EVK vault (e.g. eUSDT-2).
        asset:
          type: string
          title: Asset
          description: Underlying asset this market lends and borrows.
        asset_symbol:
          type: string
          title: Asset Symbol
          description: Symbol of the borrowable asset (e.g. USDT).
        asset_decimals:
          type: integer
          title: Asset Decimals
          description: Decimals of the borrowable asset.
        collaterals:
          items:
            $ref: '#/components/schemas/EulerMarketCollateral'
          type: array
          title: Collaterals
          description: >-
            Collateral vaults this market accepts (those currently borrowable,
            LTV > 0), each with its LTVs.
          default: []
      additionalProperties: false
      type: object
      required:
        - vault
        - vault_symbol
        - asset
        - asset_symbol
        - asset_decimals
      title: EulerMarket
      description: >-
        An Euler V2 borrow market: a vault to borrow from + the collaterals it
        accepts.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
    EulerMarketCollateral:
      properties:
        vault:
          type: string
          title: Vault
          description: >-
            EVK collateral vault to supply into (pass as collateral_vault when
            borrowing).
        asset:
          type: string
          title: Asset
          description: Underlying asset of the collateral vault.
        asset_symbol:
          type: string
          title: Asset Symbol
          description: Symbol of the collateral's underlying asset (e.g. USDC).
        borrow_ltv:
          type: string
          title: Borrow Ltv
          description: >-
            Maximum loan-to-value when borrowing against this collateral, in
            percentage (e.g. 94 means 94%).
        liquidation_ltv:
          type: string
          title: Liquidation Ltv
          description: >-
            Loan-to-value at which this collateral is liquidated, in percentage
            (e.g. 96 means 96%).
      additionalProperties: false
      type: object
      required:
        - vault
        - asset
        - asset_symbol
        - borrow_ltv
        - liquidation_ltv
      title: EulerMarketCollateral
      description: >-
        A collateral vault an Euler borrow market accepts, with its
        loan-to-value.
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: >-
        Your Compass API Key. Get your key
        [here](https://www.compasslabs.ai/dashboard).

````