DeFi Balance Sheets

/timeseries/defi-balance-sheets

The DeFi balance sheets endpoint has been released as a CM Labs project. Breaking changes may be introduced with minimal notice. Please exercise caution given the endpoint's experimental nature.

Coin Metrics collects various data from DeFi protocols and we serve this data in the form of DeFi balance sheets from our /timeseries/defi-balance-sheets API endpoint.

Protocol Coverage

The protocols covered in our DeFi balance sheets endpoint are listed below:

Endpoint Response

The /timeseries/defi-balance-sheets endpoint returns time series data for each DeFi protocol requested. The response is formatted as follows:

A sample of DeFi balance sheet data in json format is provided below.

{
  "data" : [ {
    "defi_protocol" : "protocol1",
    "block_height" : "15821368",
    "time" : "2022-10-25T00:00:00.000000000Z",
    "assets_total_usd" : "5206858775.8887",
    "assets_total_count" : "5",
    "liabilities_total_usd" : "5207569174.7343",
    "liabilities_total_count" : "4",
    "loans_lent_total_usd" : "1643900213.0442",
    "tvl_total_usd" : "3562958562.8445",
    "net_working_capital_usd" : "-1644610611.8898",
    "assets" : [ {
      "asset" : "asset1",
      "total_units" : "16642572.299665700155624691",
      "loans_lent_units" : "3034432.558303788296351088",
      "tvl_units" : "13608139.741361911859273603",
      "total_usd" : "9421036.866",
      "loans_lent_usd" : "1717733.3218",
      "tvl_usd" : "7703303.5442",
      "total_share" : "0.001809",
      "loans_lent_share" : "0.001045",
      "tvl_share" : "0.002162"
    }, {
      "asset" : "asset2",
      "total_units" : "3.451110208332495257",
      "tvl_units" : "3.451110208332495257"
    }, {
      "asset" : "asset3",
      "total_units" : "1745617.903650065714276",
      "tvl_units" : "1745617.903650065714276",
      "total_usd" : "148378761.035",
      "tvl_usd" : "148378761.035",
      "total_share" : "0.028497",
      "tvl_share" : "0.091645"
    }, {
      "asset" : "asset4",
      "total_units" : "82725.553558289864058706",
      "loans_lent_units" : "31738.572718926909253698",
      "tvl_units" : "50986.980839362954805008"
    }, {
      "asset" : "asset5",
      "total_units" : "924683.504980413732672045",
      "loans_lent_units" : "482347.607737316633044131",
      "tvl_units" : "442335.897243097099627914",
      "total_usd" : "1243286021.2045",
      "loans_lent_usd" : "648541944.1693",
      "tvl_usd" : "594744077.0352",
      "total_share" : "0.238779",
      "loans_lent_share" : "0.394514",
      "tvl_share" : "0.166924"
    } ],
    "liabilities" : [ {
      "asset" : "liability1",
      "total_units" : "16642568.377251250315561367",
      "total_usd" : "9421034.6455",
      "total_share" : "0.001809"
    }, {
      "asset" : "liability2",
      "total_units" : "3.451110208332495257"
    }, {
      "asset" : "liability3",
      "total_units" : "930352212.629909",
      "total_usd" : "930289317.7994",
      "total_share" : "0.298642"
    }, {
      "asset" : "liability4",
      "total_units" : "925062.111387555686554298",
      "total_usd" : "1243795077.6017",
      "total_share" : "0.238844"
    } ],
    "protocol_utilization_ratio" : "0.315676",
    "liquid_supply_ratio" : "0.684189",
    "current_ratio" : "0.684189",
    "debt_to_assets_ratio" : "1.000137"
  } ]
}

Last updated