Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Spark total supplied and borrowed metrics #4396

Merged
merged 1 commit into from
Sep 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
120 changes: 120 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 @@ -5491,6 +5491,126 @@
"data_type": "timeseries",
"docs_links": ["https://academy.santiment.net/metrics/lending-and-borrowing-protocols/spark"]
},
{
"human_readable_name": "Spark total supplied",
"name": "spark_total_supplied",
"metric": "spark_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/spark"]
},
{
"human_readable_name": "Spark total supplied in USD",
"name": "spark_total_supplied_usd",
"metric": "spark_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/spark"]
},
{
"human_readable_name": "Spark total borrowed",
"name": "spark_total_borrowed",
"metric": "spark_total_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/spark"]
},
{
"human_readable_name": "Spark total borrowed in USD",
"name": "spark_total_borrowed_usd",
"metric": "spark_total_borrowed_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/spark"]
},
{
"human_readable_name": "Spark protocol total supplied in USD",
"name": "spark_protocol_total_supplied_usd",
"metric": "spark_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/spark"]
},
{
"human_readable_name": "Spark protocol total borrowed in USD",
"name": "spark_protocol_total_borrowed_usd",
"metric": "spark_total_protocol_borrowed_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/spark"]
},
{
"human_readable_name": "Spark supply APY",
"name": "spark_supply_apy",
Expand Down
6 changes: 6 additions & 0 deletions test/sanbase/billing/metric_access_level_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -1577,6 +1577,12 @@ defmodule Sanbase.Billing.MetricAccessLevelTest do
"spark_total_liquidations_usd",
"spark_total_new_debt_usd",
"spark_total_repayments_usd",
"spark_total_supplied",
"spark_total_supplied_usd",
"spark_total_borrowed",
"spark_total_borrowed_usd",
"spark_protocol_total_supplied_usd",
"spark_protocol_total_borrowed_usd",
"spark_supply_apy",
"spark_borrow_apy",
"spark_active_addresses",
Expand Down