LiquidOps Docs
Home
  • 👋Welcome to LiquidOps
  • 📜Protocol
    • Oracle
  • 🔐Security
    • Audits
  • ⚙️Developers
    • LiquidOps JS
      • Installation & quickstart
      • Token data
      • Utility functions
      • oToken data functions
      • Protocol data functions
      • Lending
      • Borrowing
      • Liquidations
      • Retrieving transactions
  • Additional links
    • Send feedback
    • Linktree
  • Social media
    • X
    • Discord
    • GitHub
Powered by GitBook
On this page

Was this helpful?

Edit on GitHub
  1. Developers
  2. LiquidOps JS

oToken data functions

Get APR for a token

const getAPR = await client.getAPR({
  token: "QAR",
});

Get balances

const getBalances = await client.getBalances({
  token: "QAR",
});

Get exchange rate

const getExchangeRate = await client.getExchangeRate({
  token: "QAR",
});

Get global position

const getGlobalPosition = await client.getGlobalPosition({
  walletAddress: "psh5nUh3VF22Pr8LeoV1K2blRNOOnoVH0BbZ85yRick"
});

Get token info

const getInfo = await client.getInfo({
  token: "QAR",
});

Get position for a address

const getPosition = await client.getPosition({
  token: "QAR",
  recipient: "psh5nUh3VF22Pr8LeoV1K2blRNOOnoVH0BbZ85yRick",
});
PreviousUtility functionsNextProtocol data functions

Last updated 2 months ago

Was this helpful?

⚙️