Wrapper of the GraphQL based Santiment API.
First install the following R packages by hand.
install.packages(c("devtools", "roxygen2", "jsonlite", "tidyr", "testthat"))
library(devtools)
install_github("ropensci/ghql")
Download the tar.gz
file and run on the command line.
R CMD INSTALL sanapiwrapper_0.2.tar.gz
Alternatively, clone the repository and run the make file.
git clone https://github.com/josefansinger/sanapiwrapper.git
cd sanapiwrapper
make
library(sanapiwrapper)
metric <- santimentMetric('daily_active_addresses', 'ethereum', '2020-01-01', '2020-04-01')
Examples are listed in the documentation. Further tests are run during the build process.