---
title: "Get Markets"
method: GET
path: "/defi/v1/yieldaggregator/getmarkets"
tags: ["yieldaggregator"]
---

# Get Markets

`GET /defi/v1/yieldaggregator/getmarkets`

## Request

- Base URL: `https://svc.blockdaemon.com`
- URL: `https://svc.blockdaemon.com/defi/v1/yieldaggregator/getmarkets`
- Auth: API key in header `X-API-Key`

Retrieves a comprehensive list of yield markets (e.g., Pendle Finance) with identifiers, expiry dates, asset addresses, and token addresses (PT, YT, SY). This data helps users discover active markets, assess liquidity opportunities, and optimize yield strategies across supported networks.

> 💡 
**Compute Unit Value:** `25` (Fixed)

## Query parameters

- `yieldAggregatorId` '5200' | '5201' | '5202' | '5203' | '5204': The unique ID to specify the yield aggregator for queries or transactions.
- `includeInactive` boolean: A flag indicating whether to include inactive yield markets in the response. Set this parameter to true to return both active and inactive markets; if omitted, only active markets will be returned.

## Response `200`

Successful response

- object
  - `status` integer
  - `msg` string
  - `data` object

---

[API](https://skmtc.dev/blockdaemon/apis/blockdaemon-defi-api.md) - [All operations](https://skmtc.dev/blockdaemon/apis/blockdaemon-defi-api/llms.txt) - [OpenAPI document](https://skmtc.dev/blockdaemon/apis/blockdaemon-defi-api/revisions/ec053b7c8041?raw)
