Skip to content

Commit

Permalink
Merge pull request #3983 from santiment/add-funding-rate-aggregated-m…
Browse files Browse the repository at this point in the history
…etrics-to-API

Add funding rate aggregated metrics to API
  • Loading branch information
antisaa authored Nov 20, 2023
2 parents a5a8a62 + 5627f4f commit 3d908ce
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4093,5 +4093,56 @@
"table": "intraday_metrics",
"has_incomplete_data": false,
"data_type": "timeseries"
},
{
"human_readable_name": "Funding Rates Aggregated by Exchange",
"name": "funding_rates_aggregated_by_exchange",
"metric": "funding_rates_aggregated_per_exchange",
"version": "2019-01-01",
"access": "restricted",
"selectors": ["slug", "owner", "label"],
"min_plan": {
"SANAPI": "pro",
"SANBASE": "free"
},
"aggregation": "last",
"min_interval": "5m",
"table": "intraday_label_based_metrics",
"has_incomplete_data": false,
"data_type": "timeseries"
},
{
"human_readable_name": "Funding Rates Aggregated by Settlement Currency",
"name": "funding_rates_aggregated_by_settlement_currency",
"metric": "funding_rates_aggregated_per_settlement_currency",
"version": "2019-01-01",
"access": "restricted",
"selectors": ["slug", "owner", "label"],
"min_plan": {
"SANAPI": "pro",
"SANBASE": "free"
},
"aggregation": "last",
"min_interval": "5m",
"table": "intraday_label_based_metrics",
"has_incomplete_data": false,
"data_type": "timeseries"
},
{
"human_readable_name": "Total Funding Rates Aggregated by Asset",
"name": "total_funding_rates_aggregated_per_asset",
"metric": "total_funding_rates_aggregated_per_asset",
"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"
}
]
3 changes: 3 additions & 0 deletions test/sanbase/billing/metric_access_level_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -728,6 +728,9 @@ defmodule Sanbase.Billing.MetricAccessLevelTest do
"exchange_open_interest",
"open_interest_per_settlement_currency",
"total_open_interest",
"funding_rates_aggregated_by_exchange",
"funding_rates_aggregated_by_settlement_currency",
"total_funding_rates_aggregated_per_asset",
# social metrics
"community_messages_count_telegram",
"community_messages_count_total",
Expand Down

0 comments on commit 3d908ce

Please sign in to comment.