Skip to main content

getVolume

Get total trading volume across all Zyfai accounts.

Signature

getVolume(): Promise<VolumeResponse>

Returns

Total volume in USD

Return Type

interface VolumeResponse {
success: boolean;
volumeInUSD: string;
}

Example

const volume = await sdk.getVolume();
console.log("Total Volume:", volume.volumeInUSD);