sanpy icon indicating copy to clipboard operation
sanpy copied to clipboard

get twitter_followers on many slugs at once

Open marc-moreaux opened this issue 4 years ago • 1 comments

Hello,

I was searching for something similar to @phisanti for the same reasons as him. It appears that your solution (which I find great) seems to not be working for the metric "twitter_followers" would you have any insight on why ?

{
  getMetric(metric: "twitter_followers") {
    timeseriesDataPerSlug(
      selector: {slugs: [
        "ethereum",
        "bitcoin"
      ]},
      from: "utc_now-7d",
      to: "utc_now"
      interval: "1d"){
        datetime
        data {slug value}
      }
  }
}

Thank you very much :)

Originally posted by @marc-moreaux in https://github.com/santiment/sanpy/issues/135#issuecomment-978172398

marc-moreaux avatar Nov 24 '21 21:11 marc-moreaux

Yes timeseriesDataPerSlug is not implemented for twitter_followers metric. This metric has different internal implementation than most of our other metrics. We've started the migration and the new implementation so hopefully we will have it soon.

tspenov avatar Nov 25 '21 12:11 tspenov