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",
});

Last updated

Was this helpful?