coinmarketcapr | get Cryptocurrencies Market Cap Prices from Coin | Cryptocurrency library
kandi X-RAY | coinmarketcapr Summary
kandi X-RAY | coinmarketcapr Summary
The goal of coinmarketcapr is to help R developers and Data Scientists to extract and monitor price and market cap of various Cryptocurrencies from 'CoinMarketCap' that lists many leading cryptocurrencies along with their price, 24h trade volume, market cap and much more in USD and other currencies. For more info, check Coinmarketcap API.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of coinmarketcapr
coinmarketcapr Key Features
coinmarketcapr Examples and Code Snippets
library(coinmarketcapr)
#get the global market cap details and assign it to a dataframe
all_coins <- get_marketcap_ticker_all()
> head(all_coins)
id name symbol rank price_usd price_btc X24h_volume_usd market_cap_usd
1
library(coinmarketcapr)
#get the global market cap details and assign it to a dataframe
latest_marketcap <- get_global_marketcap('EUR')
> latest_marketcap
total_market_cap_usd total_24h_volume_usd bitcoin_percentage_of_market_cap active_cur
install.packages("coinmarketcapr")
# install.packages("devtools")
devtools::install_github("amrrs/coinmarketcapr")
Community Discussions
Trending Discussions on coinmarketcapr
QUESTION
I've made a R-Shiny app which runs on a linux server. All the data which I need is coming from a website using API and the library(coinmarketcapr).
The app retrieves the latest data every 5 minutes and saves it in a csv-file on the server.
But now I have the problem that every time I reload the page, the app retrieves the new data and I always have duplicate values in my time series.
I work with the ReactiveTimer, set to 5 minutes.
Is there a possibility that the ReactiveTimer checks the time of the last entry in the csv-file and compares it with the current system time? If the time in the csv-file should be 5 minutes or older than the system time, he should execute the code, otherwise not.
I also wanted to ask if anyone knows if you can run a shiny app without having it open in the browser, i. e. the code is constantly running and collecting data?
EDIT:
App on: http://srv-lab-t-416.zhaw.ch/shiny/Crypto10/
R-Code:
...ANSWER
Answered 2017-Nov-10 at 08:36I solved the problem by using cronR. All the math an API functions now were made in a separate file and the shiny app only collects the data and displays it.
So now, I don't have to use the ReactiveTimer anymore.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install coinmarketcapr
coinmarketcapr can be loaded just like any other R-package with library(coinmarketcapr). Note: coinmarketcapr package requires an active internet connection. If you're trying this behind a Firewall, you might get: Error in open.connection(con, "rb") : Timeout was reached. To resolve this error, please refer this link: Configuring R to Use an HTTP or HTTPS Proxy.
get_global_marketcap
get_crypto_listings or previously get_marketcap_ticker_all
plot_top_currencies
get_valid_currencies
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page