Get Yield Recommendations - Wallet API
Get Yield Recommendations - Get the missing yield for your tokens and DeFi positions.
Get Yield Recommendations - [Value: 210420CU]
Get the missing yield for your tokens and DeFi positions. The endpoint provides historical rewards and compares them to potential earnings.
POST https://lb.drpc.live/lambda/{key}/v1/wallets/{address}/recommendations
Use cases
- Discover yield opportunities for wallet assets
- Optimize portfolio allocation for higher returns
- Build DeFi recommendation engines
Constraints
- For holdings (not DeFi), current rewards are 0.
- Current rewards are separated from balances.
- Recommendations are customized per client. If you’re a Web3 wallet or dApp, let us know, and we’ll provide filtered recommendations for your app.
Unlock Access to 100+ chains
Boost your app's speed and reliability with dRPC - get your access API key
Language
Request
Examples
curl --request POST \
--url https://lb.drpc.live/lambda/{key}/v1/wallets/{address}/recommendations \
--header 'accept: application/json' \
--header 'content-type: application/json' \
Response
200
{
"data": [
{
"asset": "string",
"protocol": "string",
"chain_name": "string",
"interval": 0,
"amount_lost_usd": 0,
"recommendation": [
{
"protocol": "Aave",
"protocol_url": "https://app.aave.com",
"protocol_icon_url": "https://static.lambda.p2p.org/protocols/aave-pool-v3.png",
"expected_apr": 0.05
},
{
"protocol": "Morpho",
"protocol_url": "https://app.morpho.org/ethereum/earn",
"protocol_icon_url": "https://static.lambda.p2p.org/protocols/morpho-blue.png",
"expected_apr": 0.04
}
],
"details": [
{
"start": "2025-03-01T00:00:00Z",
"end": "2025-03-08T00:00:00Z",
"usd_from": 11,
"usd_to": 11.3,
"rewards_usd": 0.3,
"recommendation": [
{
"protocol": "AAVE V3",
"usd_to": 11.5,
"potential_rewards_usd": 0.5
},
{
"protocol": "MORPHO",
"usd_to": 11.4,
"potential_rewards_usd": 0.4
}
]
}
]
}
]
}Path params
keystring
[Required] Your dRPC API key
addressstring
[Required] Wallet address
Query params
Request params
array of objects
periodnetworth_period
Period of time
vaultsarray
Vaults filter that will be used to calculate recommendations. Default: none
granularitystring
Granularity. Default: day.
- month - null
- week - null
- day - null
- hour - null
- five_minutes - null
- any - null
Response
200
Response params
object
dataarray
[Required] List of yield optimization opportunities.
object
assetstring
[Required] Token symbol being analyzed.
protocolstring
[Required] Current protocol holding the asset.
chain_namestring
[Required] Chain name.
intervalinteger
[Required] Length of the interval in milliseconds.
amount_lost_usdnumber
[Required] Total unrealized reward difference.
recommendationarray
[Required] List of alternate protocols and APRs that could have been more profitable.
object
protocolstring
[Required] Protocol name being recommended.
protocol_urlstring
Link to the recommended protocol's website.
protocol_icon_urlstring
Link to the protocol's icon.
vaultstring
Vault of the protocol.
expected_aprnumber
[Required] Expected annual percentage rate (APR) for this protocol.
detailsarray
[Required] Detailed interval-level performance and per-protocol simulations.
object
startstring
[Required] Start of the interval in ISO 8601 format.
endstring
[Required] End of the interval in ISO 8601 format.
usd_fromnumber
[Required] USD value at the start of the interval.
usd_tonumber
[Required] USD value at the end of the interval.
rewards_usdnumber
[Required] Actual rewards earned.
recommendationarray
[Required] Per-protocol simulated results for the same time range.
object
protocolstring
[Required] Name of the protocol used for the simulation.
usd_tonumber
[Required] Simulated future value in USD if funds were moved to this protocol.
vaultstring
Vault of the protocol.
potential_rewards_usdnumber
[Required] Difference between simulated and actual rewards in USD over the interval.