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

# getVolume

Get total trading volume across all Zyfai accounts, optionally filtered by asset type.

## Signature

```typescript theme={null}
getVolume(assetType?: "usdc" | "eth"): Promise<VolumeResponse>
```

## Parameters

| Parameter   | Type     | Required | Description                                                      |
| ----------- | -------- | -------- | ---------------------------------------------------------------- |
| `assetType` | `string` | ❌        | Asset to get volume for: `"usdc"` or `"eth"` (default: `"usdc"`) |

## Returns

Total volume in USD for the specified asset

## Return Type

```typescript theme={null}
interface VolumeResponse {
  success: boolean;
  volumeInUSD: string;
}
```

## Example

```typescript theme={null}
// Get USDC volume (default)
const usdcVolume = await sdk.getVolume();
console.log("USDC Volume:", usdcVolume.volumeInUSD);

// Get ETH/WETH volume
const ethVolume = await sdk.getVolume("eth");
console.log("ETH Volume:", ethVolume.volumeInUSD);
```
