Skip to content

Commit

Permalink
Add Fraxlend total supplied and borrowed metrics to the API
Browse files Browse the repository at this point in the history
  • Loading branch information
filips121 committed Nov 6, 2024
1 parent 9c7ff0c commit 214b575
Show file tree
Hide file tree
Showing 2 changed files with 105 additions and 0 deletions.
100 changes: 100 additions & 0 deletions lib/sanbase/clickhouse/metric/metric_files/available_v2_metrics.json
Original file line number Diff line number Diff line change
Expand Up @@ -5211,6 +5211,106 @@
"data_type": "timeseries",
"docs_links": ["https://academy.santiment.net/metrics/lending-and-borrowing-protocols/fraxlend"]
},
{
"human_readable_name": "Fraxlend total supplied",
"name": "fraxlend_total_supplied",
"metric": "fraxlend_total_supplied",
"version": "2019-01-01",
"access": "restricted",
"selectors": [
"slug"
],
"min_plan": {
"SANAPI": "pro",
"SANBASE": "free"
},
"aggregation": "last",
"min_interval": "5m",
"table": "intraday_metrics",
"has_incomplete_data": false,
"data_type": "timeseries",
"docs_links": ["https://academy.santiment.net/metrics/lending-and-borrowing-protocols/fraxlend"]
},
{
"human_readable_name": "Fraxlend total supplied in USD",
"name": "fraxlend_total_supplied_usd",
"metric": "fraxlend_total_supplied_usd",
"version": "2019-01-01",
"access": "restricted",
"selectors": [
"slug"
],
"min_plan": {
"SANAPI": "pro",
"SANBASE": "free"
},
"aggregation": "last",
"min_interval": "5m",
"table": "intraday_metrics",
"has_incomplete_data": false,
"data_type": "timeseries",
"docs_links": ["https://academy.santiment.net/metrics/lending-and-borrowing-protocols/fraxlend"]
},
{
"human_readable_name": "Fraxlend total borrowed against collateral",
"name": "fraxlend_total_borrowed_against_collateral",
"metric": "fraxlend_total_borrowed_against_collateral",
"version": "2019-01-01",
"access": "restricted",
"selectors": [
"slug"
],
"min_plan": {
"SANAPI": "pro",
"SANBASE": "free"
},
"aggregation": "last",
"min_interval": "5m",
"table": "intraday_metrics",
"has_incomplete_data": false,
"data_type": "timeseries",
"docs_links": ["https://academy.santiment.net/metrics/lending-and-borrowing-protocols/fraxlend"]
},
{
"human_readable_name": "Fraxlend protocol total supplied in USD",
"name": "fraxlend_protocol_total_supplied_usd",
"metric": "fraxlend_total_protocol_supplied_usd",
"version": "2019-01-01",
"access": "restricted",
"selectors": [
"slug"
],
"min_plan": {
"SANAPI": "pro",
"SANBASE": "free"
},
"aggregation": "last",
"min_interval": "5m",
"table": "intraday_metrics",
"has_incomplete_data": false,
"data_type": "timeseries",
"docs_links": ["https://academy.santiment.net/metrics/lending-and-borrowing-protocols/fraxlend"]
},
{
"human_readable_name": "Fraxlend protocol total borrowed",
"name": "fraxlend_protocol_total_borrowed",
"metric": "fraxlend_total_protocol_borrowed",
"version": "2019-01-01",
"access": "restricted",
"selectors": [
"slug"
],
"min_plan": {
"SANAPI": "pro",
"SANBASE": "free"
},
"aggregation": "last",
"min_interval": "5m",
"table": "intraday_metrics",
"has_incomplete_data": false,
"data_type": "timeseries",
"docs_links": ["https://academy.santiment.net/metrics/lending-and-borrowing-protocols/fraxlend"]
},
{
"human_readable_name": "Fraxlend borrow APY",
"name": "fraxlend_borrow_apy",
Expand Down
5 changes: 5 additions & 0 deletions test/sanbase/billing/metric_access_level_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -1586,6 +1586,11 @@ defmodule Sanbase.Billing.MetricAccessLevelTest do
"fraxlend_total_liquidations_usd",
"fraxlend_total_new_debt_usd",
"fraxlend_total_repayments_usd",
"fraxlend_total_supplied",
"fraxlend_total_supplied_usd",
"fraxlend_total_borrowed_against_collateral",
"fraxlend_protocol_total_supplied_usd",
"fraxlend_protocol_total_borrowed",
"fraxlend_borrow_apy",
"fraxlend_active_addresses",
# Spark metrics
Expand Down

0 comments on commit 214b575

Please sign in to comment.