Giter Club home page Giter Club logo

geckor's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

geckor's Issues

`coin_history_range()` fails due to missing values in the retrieved data

When running

bitcoin <- coin_history_range(coin_id = "bitcoin",
                              vs_currency = "usd",
                              from = as.POSIXct("2016-01-01 00:00:00", tz = "UTC"),
                              to = as.POSIXct("2019-08-24 00:00:00", tz = "UTC"))

an error occurs:

Error: Can't recycle `..1` (size 1332) to match `..3` (size 1331).

This is due to a missing value in the retrieved data, a situation that is not treated gracefully and needs to be fixed.

missing market_cap and zero total_volume

On 2017-04-02, market_cap is missing for bitcoin and ethereum. Also, when total_volume is zero, how is the price determined?

crypto_top5 <- coin_history(c("bitcoin", "ethereum", "binancecoin", "ripple", "cardano"), 
                            vs_currency = "usd", days = "max")

Function ping()

A utility function to check the current status of the API.

Adjust tests and examples to the current API rate limit

Problem: The number of calls to the free version of the CoinGecko API has recently been significantly reduced: from ca. 50 calls/min to only 10-30 calls/min. This causes tests and examples in the documentation to fail (at build time) with the HTTP status of 429. Another reason why tests started failing on CRAN is because CRAN changed their policy towards the \donttest command in documentation - by default, examples that are wrapped in \donttest are in fact tested.

Solution: Use the @examplesIf in documentation (instead of the standard @examples), in combination with a non-public function that checks if the API rate is exceeded. Also, update the documentation accordingly (i.e. warn the users about the very limited number of calls they can now make with the free version of the API).

Querying Token Address

Is there a way to pull token address information from any of the endpoints (free or subscription-based)?

Ex) given coin_id (yogi) what is its contract address?

historical daily ohlc data of all coins

Thank you for this great package. Is there a way to obtain the historical daily ohlc data of all coins? I divided the 13,253 coins supported by CoinGecko into many subsamples with each containing 30 coins and then used the function coin_history_ohlc to get the data in a for loop. This approach failed with an error message saying too many requests.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.