cryptoQuotes 1.3.1

General

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

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 :pray:

Improvements

New features

Usage

chart(
  ticker = BTC,
  main   = kline(),
  indicator = list(
    donchian_channel()
  ),
  sub = list(
    smi()
  )
)

Expanded Support

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

Usage

chart(
  ticker = BTC,
  main   = pline(price = "close"),
  indicator = list(
    bollinger_bands(
    color = "steelblue"
  )
  ),
  sub = list(
    volume()
  ),
  options = list(
    dark = FALSE
  )
)

Documentation

Backend Changes

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

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

Breaking Changes

Bugfixes

cryptoQuotes 1.3.0

Improvements

General function improvements

## charting the klines
## with indicators as
## subcharts
available_exchanges(type = 'ohlc')

Now returns all available exhanges that supports Open, High, Low and Close market data. The type-argument can be changed to, for example, lsratio to get all available exchanges that supports Long to Shorts ratios. Similar changes have been made to remaining available_-functions.

Error-handling

All get_*- and available_*-functions are now more robust to API and input errors.

Default Returning

Charting

## charting the klines
## with indicators as
## subcharts
chart(
  ticker     = BTC,
  main       = kline(),
  sub        = list(
    volume()
  ),
  indicator = list(
    bollinger_bands(),
    sma(),
    alma()
  ),
  options = list(
    dark       = TRUE,
    deficiency = FALSE
  )
)

Exchange Support

The following exchanges have been added to list of exchanges available,

New features

Usage

## get funding rate
tail(
  get_fundingrate(
    ticker = "BTCUSDT",
    source = "binance"
  )
)
#>                     funding_rate
#> 2024-05-30 02:00:00   0.00010000
#> 2024-05-30 10:00:00   0.00010000
#> 2024-05-30 18:00:00   0.00010000
#> 2024-05-31 02:00:00   0.00014599
#> 2024-05-31 10:00:00   0.00012268
#> 2024-05-31 18:00:00   0.00010000

Usage

## get funding rate
tail(
  get_openinterest(
    ticker = "BTCUSDT",
    source = "binance"
  )
)
#>                     open_interest
#> 2024-05-26 02:00:00      72347.36
#> 2024-05-27 02:00:00      71077.10
#> 2024-05-28 02:00:00      71580.71
#> 2024-05-29 02:00:00      71880.38
#> 2024-05-30 02:00:00      76232.59
#> 2024-05-31 02:00:00      74250.55

Breaking Changes

Charting

API Calls

Warning

As the cryptoQuotes-package has moved to the tidyverse style guide, the getFoo-functions are now deprecated. These will be permanently deleted, and removed from the cryptoQuotes-package, at version 1.4.0!

cryptoQuotes 1.2.1

Minor Updates

Bugfixes

cryptoQuotes 1.2.0

The getQuote()-function can now be used as follows;

## Specifying from
## date only;
##
## Returns 10 pips
getQuote(
 ticker   = 'BTCUSDT',
 interval = '1d'
 from     = as.character(Sys.Date() - 10)
 )

## Specifying to
## date only;
##
## Returns 100 pips
getQuote(
 ticker   = 'BTCUSDT',
 interval = '1d'
 to     = as.character(Sys.Date())
 )

Market Sentiment

Four new functions are added,

Convinience functions added

Three new convinience functions are added applicable to some situations,

cryptoQuotes 1.1.0

Frontend

getQuote() now returns up to 100 pips when to and from is NULL

Backend

Future releases

In the next release, three more exchanges will be supported.

Known bugs

The returned quotes are in local timezone, this is an unintentional feature and will be fixed in a bugfix.

cryptoQuotes 1.0.0