santimentMetric: Get a metric from the Santiment GraphQL API.

Description Usage Arguments Details Value Examples

View source: R/sanapiwrapper.R

Description

Checks if the metric is available for the slug. If not, a constant vector is returned. Checks if the metric is available for this time window. For unavailable dates, zeros are returned.

Usage

1
2
3
4
5
6
7
8
santimentMetric(
  metric,
  slug,
  from = "2019-01-01",
  to = "2020-01-01",
  aggregation = "SUM",
  selector_option
)

Arguments

metric

Santiment metric

slug

project (e.g. ethereum, bitcoin, tezos ...)

from

start of the time window

to

end of the time window

aggregation

aggregation (SUM, AVG, MEDIAN, MIN, MAX, FIRST, LAST)

selector_option

optional string for selector field, for example "holdersCount:10" for "amount_in_top_holders" metric, see "selector: slug: "ethereum", holdersCount:10"

Details

https://neuro.santiment.net https://graphql.org

Value

table with columns (date, <metric>)

Examples

1
santimentMetric('dev_activity', 'ethereum')

josefansinger/sanapiwrapper documentation built on May 20, 2020, 10:15 a.m.