Skip to main content
POST
YieldGetMarkets returns Yield markets with optional filters.

Overview

YieldGetMarkets returns DeFi markets available for deposit through Trails, including lending markets (Aave, Morpho) and yield vaults (Yearn, ERC-4626). Use this to power market selection UIs or discover marketId values for composable actions. The SDK’s useEarnMarkets hook wraps this endpoint with typed filters and caching — prefer it in React apps.

Request Parameters

All fields are optional.

Response

Returns payload containing an array of market objects. Each market includes:

Examples

List all markets on Base

Filter lending markets by protocol

Search for USDC markets

SDK alternative

In React, use the typed useEarnMarkets hook instead of calling this endpoint directly:

See also

Body

application/json
provider
string
chainId
string
type
string
sort
string
limit
number
offset
number

Response

OK

items
object[]
required

[]YieldMarket

total
number
required
offset
number
required
limit
number
required