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
    } ...
}

Last updated