Skip to content

crypto2 3.0.1

Latest

Choose a tag to compare

@sstoeckl sstoeckl released this 06 Nov 11:00
  • cg_history() and cg_history_by_id() take close, volume and market cap
    from CoinGecko's website chart data for every quote currency. CoinGecko's
    CSV export, previously used for USD, now redirects to a file covering one
    year only, so it is no longer used. A USD history now takes two requests
    per coin instead of one; coverage and values are unchanged.
  • crypto_history() no longer loses data around holes in CMC's data. CMC
    answers each request with the 400 data points before its end and, if one
    of them is missing, with nothing or only the part before the hole; a single
    missing hour (e.g. 2020-02-12 00:00 UTC, for all coins) thus dropped up to
    about 16 days of hourly data. Requests are now laid out exactly 400 points
    apart, such a request is narrowed down to the hole, and the missing periods
    are reported in a warning and in attr(result, "gaps").
  • crypto_history() no longer returns duplicate rows. They appeared at the
    last request of a download, and at every request for requestLimit below
    400 or for intervals other than "1h" and "1d". requestLimit above
    400 is now reduced to 400 instead of silently leaving gaps.
  • crypto_history() puts data points that CMC labels with the time of the
    point before them back at their own time. The hourly 2022-10-01 01:00 UTC
    point of all coins came labelled 00:00, so 00:00 appeared twice and
    01:00 was missing.