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

# getAsyncOpportunities

Get yieldmaxxing yield opportunities: the pools reachable only with the
[`"yieldmaxxing"`](https://docs.zyf.ai/docs/sdk/technical-reference#strategies) strategy. This
superset includes the conservative and aggressive pools plus protocols whose
withdrawals are **asynchronous**: Ipor and Superform cannot be exited on
demand, so leaving one of their pools takes roughly a day (Ipor) or three
(Superform).

## Signature

```typescript theme={null}
getAsyncOpportunities(chainId?: number, asset?: string, status?: "live" | "not_live"): Promise<OpportunitiesResponse>
```

## Parameters

| Parameter | Type | Required | Description |
| - | - | - | - |
| `chainId` | `number` | ❌ | Optional chain ID filter |
| `asset` | `string` | ❌ | Optional asset filter (e.g. `"USDC"`, `"WETH"`) |
| `status` | `"live" \| "not_live"` | ❌ | Optional pool status filter |

## Returns

List of yieldmaxxing opportunities.

## Return Type

```typescript theme={null}
interface OpportunitiesResponse {
  success: boolean;
  chainId?: number;
  strategyType: 'conservative' | 'aggressive' | 'yieldmaxxing';
  data: Opportunity[];
}
```

## Example

```typescript theme={null}
const opportunities = await sdk.getAsyncOpportunities(8453);
opportunities.data
  .filter((o) => o.status === "live")
  .forEach((o) => {
    console.log(`${o.protocolName} - ${o.poolName}: ${o.apy}% APY`);
  });
```

## Notes

* Enabling these pools for a user means setting `strategy: "yieldmaxxing"` via [updateUserProfile](https://docs.zyf.ai/docs/sdk/api/update-user-details.md)
* Once funds sit in an async pool, exiting is a two-step protocol flow the agent runs on the user's behalf. Track it via [getPortfolio](https://docs.zyf.ai/docs/sdk/api/get-portfolio.md#computing-the-total-balance).
* Funds in flight are **not** included in `portfolioByAssetType`; read [Computing the total balance](https://docs.zyf.ai/docs/sdk/api/get-portfolio.md#computing-the-total-balance) before displaying a balance
* For the lower tiers, see [getConservativeOpportunities](https://docs.zyf.ai/docs/sdk/api/get-conservative-opportunities.md) and [getAggressiveOpportunities](https://docs.zyf.ai/docs/sdk/api/get-aggressive-opportunities.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.