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 getLabelBasedMetricOwners API #3882

Merged
merged 1 commit into from
Aug 3, 2023

Conversation

IvanIvanoff
Copy link
Member

@IvanIvanoff IvanIvanoff commented Aug 3, 2023

Changes

For all label-based metrics, the owner column holds the exchange name. This API is used to fetch the owners (exchanges) that a given metric is computed for.

The API also optionally accepts a slug parameter.

{
  getLabelBasedMetricOwners(metric: "exchange_open_interest")
}
{
  "data": {
    "getLabelBasedMetricOwners": [
      "binance",
      "bybit",
      "cryptodotcom",
      "okex",
      "kraken",
      "bitfinex",
      "btcex",
      "bitmex",
      "crosstower"
    ]
  }
}

Ticket

Checklist:

  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation
  • I have tried to find clearer solution before commenting hard-to-understand parts of code
  • I have added tests that prove my fix is effective or that my feature works

@IvanIvanoff IvanIvanoff force-pushed the add-intraday-metrics-exchanges branch from f8cab0e to c6717de Compare August 3, 2023 13:23
lib/sanbase/clickhouse/exchanges/exchanges.ex Outdated Show resolved Hide resolved
@IvanIvanoff IvanIvanoff force-pushed the add-intraday-metrics-exchanges branch from c6717de to 7fd2189 Compare August 3, 2023 13:36
@IvanIvanoff IvanIvanoff merged commit 3dc834d into master Aug 3, 2023
1 check passed
@delete-merged-branch delete-merged-branch bot deleted the add-intraday-metrics-exchanges branch August 3, 2023 13:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants