Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.positions.finance/llms.txt

Use this file to discover all available pages before exploring further.

Get current supply and borrow APY for an asset.
const {depositApy, borrowApy} = await sdk.apy(usdcAddress);

console.log(`Supply APY: ${(depositApy * 100).toFixed(2)}%`);
console.log(`Borrow APY: ${(borrowApy * 100).toFixed(2)}%`);