> ## 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"`](/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](/docs/sdk/api/update-user-details)
* 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](/docs/sdk/api/get-portfolio#computing-the-total-balance)
* Funds in flight are **not** included in `portfolioByAssetType`; read [Computing the total balance](/docs/sdk/api/get-portfolio#computing-the-total-balance) before displaying a balance
* For the lower tiers, see [getConservativeOpportunities](/docs/sdk/api/get-conservative-opportunities) and [getAggressiveOpportunities](/docs/sdk/api/get-aggressive-opportunities)
