santiment / san-sdk

Code samples for working with Santiment's API and libraries
https://academy.santiment.net
MIT License
22 stars 13 forks source link

availableSince fails #23

Closed josefansinger closed 4 years ago

josefansinger commented 4 years ago

According to this the dev_activity metric is available for bitcoin. But the availableSince call fails with Internal server error.

{
    getMetric(metric:"dev_activity") {
      availableSince(slug: "bitcoin")
    }
}
josefansinger commented 4 years ago

Same for social_volume_total and bitcoin or ethereum.

IvanIvanoff commented 4 years ago

Around 1 hour ago we had to replace some AWS nodes because they were in a bad state. Both metrics seem to work now image image

josefansinger commented 4 years ago

Yep, working again. Thanks for the quick reply @IvanIvanoff.

josefansinger commented 4 years ago
Screenshot 2020-03-06 at 11 13 39

Still not stable. Sorry.

IvanIvanoff commented 4 years ago

The issue is fixed here: https://github.com/santiment/sanbase2/pull/1822 The fix will be shipped to production today.

One note for the social availableSince - it is not as precise as the other on-chain/price/dev data. Best we can do is to return the first datetime for which we have data in a given source (telegram/reddit/etc.)

First mention of the project should not be taken into account in my opinion - many crypto projects have a commonly (or not so) used word in their ticker/name/slug - san, data, link, dash, etc. etc.

josefansinger commented 4 years ago

@IvanIvanoff Thank you. I will test availableSince next week.

josefansinger commented 4 years ago

I tried to get social_volume_total for ethereum for 2015-08-07 to 2020-03-06. But get only 2016-06-10 to 2018-07-06. My API key was upgraded to Pro (according to Max).

Why this limitation? Even in the GraphiQL interface I get more recent data.

josefansinger commented 4 years ago

@IvanIvanoff Just a suggestion: Can you please return a datapoint for each of the dates in the time frame from to to? If no data are available or the data plan does not allow access, please return NA. That would avoid post-processing from the client side and I would not need availableSince at all.

IvanIvanoff commented 4 years ago

Can you please return a datapoint for each of the dates in the time frame from to to? I've been requesting the same behavior from the team implementing the social metrics.

cc @ipranovich any advances on the problem?

ipranovich commented 4 years ago

@IvanIvanoff it has to be fixed from python api side. Preparing PR for it right now.

josefansinger commented 4 years ago

@ipranovich FYI, I access the GraphQL API via ghql from R not Python. Thanks for addressing this issue!

IvanIvanoff commented 4 years ago

python api side here means the internal python service for which the graphql API is a proxy to, nothing in the client code should change (your R code)

IvanIvanoff commented 4 years ago

availableSince API no longer returns errors.

I tried to get social_volume_total for ethereum for 2015-08-07 to 2020-03-06. But get only 2016-06-10 to 2018-07-06. My API key was upgraded to Pro (according to Max).

Why this limitation? Even in the GraphiQL interface, I get more recent data.

The reason is that the API currently does not return a data point for each of the dates in the time frame from to to (as you requested). This leads to all sources returned data to not be of equal length and they're not properly combined.

josefansinger commented 4 years ago

@IvanIvanoff Thanks for the availableSince fix.