Skip to content

cryptoQuotes 1.3.1

Latest
Compare
Choose a tag to compare
@serkor1 serkor1 released this 31 May 21:25

General

NOTE: With this update the package is no longer considered
experimental.

  • Removed deprecated functions getQuote()-, getFGIndex()- and
    getLSRatio()-functions.

  • Removed decprecated functions availableExchanges()-,
    availableIntervals()- and availableTickers()-functions.

These functions were planned to be deleted in 1.4.0 - however, we have
decided to aim for an JOSS- and rOpenSci-subscription which requires
some degree of stability. Hence the deletion of these function at
1.3.0.

We expect 1.4.0 to be released after rOpenSci-submission and
acceptance 🙏

Improvements

New features

  • smi()-function, a subchart-indicator built on the
    TTR::SMI()-function.
  • donchian_channel()-function, a main chart-indicator built on the
    TTR::DonchianChannel()-function
Usage
chart(
  ticker = BTC,
  main   = kline(),
  indicator = list(
    donchian_channel()
  ),
  sub = list(
    smi()
  )
)

Expanded Support

  • get_openinterest() is now supported by kraken
Usage
tail(
  get_openinterest(
    ticker   = "PF_XBTUSD",
    interval = "1h",
    source   = "kraken"
  )
)
#>                     open_interest
#> 2024-05-31 15:00:00      3013.342
#> 2024-05-31 16:00:00      2957.343
#> 2024-05-31 17:00:00      2960.819
#> 2024-05-31 18:00:00      2954.668
#> 2024-05-31 19:00:00      2983.686
#> 2024-05-31 20:00:00      2996.449

Charting

  • The chart()-function now has proper light-theme available that
    isn’t the default plotly-values.
  • The charts now displays date ranges as a subtitles.
  • The bollinger_bands()-function now accepts a color-argument. These
    can be passed as Hexadecimal-colors or as is, "blue" for example.
  • A new main chart function has been introduced. pline() which is a
    univariate price chart based on either open, high, low or close
    prices.
Usage
chart(
  ticker = BTC,
  main   = pline(price = "close"),
  indicator = list(
    bollinger_bands(
    color = "steelblue"
  )
  ),
  sub = list(
    volume()
  ),
  options = list(
    dark = FALSE
  )
)

Documentation

  • The documentation has been extensively reworked. This is includes, but
    not limited to, sample outputs for all get_*-functions.

Backend Changes

  • The chart()-functions no longer depend on rlang.

Note: we are generally moving away from rlang, purrr and
tidyverse in general. We are, however, keeping the tidyverse
styleguide.

  • Removed dependency on conflicted-package.

Prior to version 1.3.0 the get*-functions were following the syntax
of quantmod closely, and this goes for the function naming too. With
the adoption of the tidyverse style guide, there is no conflicts that
needs to be resolved on stable- and experimental-functions.

New developper tools

  • pull()-function
  • var_ly()-function
  • build()-function

Breaking Changes

  • The get_fgindex()-function now returns columns in lower case.

Bugfixes

  • Fixed a bug where get_fgindex() where labelled as deprecated
  • Fixed a bug in the limitations-article where the desired number of
    observations werent compatible with the kraken-exchange.
  • Fixed a warning in the get_lsratio()-function with
    source = "binance"
  • Fixed a bug in the lsr()-indicator which broke the
    chart()-function when included.
  • Fixed a bug in the get_quote()-function where if to = NULL and
    from != NULL the returned quote would be filtered according to
    UTC and not Sys.timezone()
  • Fixed a bug in the chart()-function where the inferred intervals
    would be incorrect for leap years, and months different from 30 days.