vires.finance
  • Introduction
  • FAQ
    • Depositing and Earning
    • Borrowing
    • Account Health
    • Asset Parameters
    • vTokens
    • Deployed Contracts
    • ⓥ Governance
      • FAQ and User Guide
      • gVires Math
      • System parameters
  • KNOWLEDGEBASE
    • APY vs APR
    • How is Net APY calculated?
    • Liquidation Penalty
  • GUIDES
    • Lending and Borrowing Guide
    • Liquidators' Guide
    • Troubleshooting
    • API
  • Community Video Guides
  • Agreement
    • Terms of Use
    • Privacy policy
Powered by GitBook
On this page

Was this helpful?

  1. GUIDES

API

The easiest way to query rates and other information

Current rates

Returns current supply, current debt and the rates for supplying and borrowing

https://api.vires.finance/state

Example output:

{
  "height": 2890215,
  "markets": [
    {
      "name": "WAVES",
      "longName": "WAVES Asset",
      "address": "3P8G747fnB1DTQ4d5uD114vjAaeezCW4FaM",
      "totalSupply": 6326520.83785411,
      "totalSupplyUsd": 116344718.208137,
      "totalDebt": 222113.92171397,
      "totalDebtUsd": 4084675.020319,
      "supplyApy": 0.03672027038813552,
      "supplyViresApr": 0.005107641736909249,
      "borrowApr": 0.04443536741890213,
      "borrowViresApr": 0.007656959631076639
    },
    {
      "name": "USDN",
      "longName": "Neutrino USD",
      "address": "3PCwFXSq8vj8iKitA5zrrLRbuqehfmimpce",
      "totalSupply": 246090871.674766,
      "totalSupplyUsd": 246090871.674766,
      "totalDebt": 99231169.685799,
      "totalDebtUsd": 99231169.685799,
      "supplyApy": 0.11110019592047427,
      "supplyViresApr": 0.0056455215483197,
      "borrowApr": 0.1557670563404475,
      "borrowViresApr": 0.014000756255975062
    } ...
}
PreviousTroubleshootingNextTerms of Use

Last updated 3 years ago

Was this helpful?