Version 1.3.2

General

Improvements

Read and Write xts-objects

Charting

Static set to FALSE (Default Palette)
# static = FALSE
chart(
  ticker  = BTC,
  main    = kline(),
    indicator = line(
    sma(n = 7),
    sma(n = 14),
    sma(n = 21)
  ),
  options = list(
    static = FALSE,
    palette = "hawaii"
  ) 
)
Static set to TRUE (“Set 3” palette)
# static = TRUE
chart(
  ticker  = BTC,
  main    = kline(),
  indicator = line(
    sma(n = 7),
    sma(n = 14),
    sma(n = 21)
  ),
  options = list(
    static  = TRUE,
    palette = "Set 3"
  ) 
)

Supported Exchanges (Issue #14)

{cryptoQuotes} now supports the following exchanges:

Breaking Changes

Bugfixes

Charting

Quotes

These intervals have been removed as they have either been discontinued, or were non-existent.

Version 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-11-02 10:00:00      2394.876
#> 2024-11-02 11:00:00      2389.595
#> 2024-11-02 12:00:00      2396.225
#> 2024-11-02 13:00:00      2403.175
#> 2024-11-02 14:00:00      2418.193
#> 2024-11-02 15:00:00      2398.648

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

Version 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-10-31 17:00:00 1.730390e+12
#> 2024-11-01 01:00:00 1.730419e+12
#> 2024-11-01 09:00:00 1.730448e+12
#> 2024-11-01 17:00:00 1.730477e+12
#> 2024-11-02 01:00:00 1.730506e+12
#> 2024-11-02 09:00:00 1.730534e+12
Usage
## get funding rate
tail(
  get_openinterest(
    ticker = "BTCUSDT",
    source = "binance"
  )
)
#>                     open_interest
#> 2024-10-28 01:00:00      82206.35
#> 2024-10-29 01:00:00      89115.04
#> 2024-10-30 01:00:00      90242.98
#> 2024-10-31 01:00:00      89315.49
#> 2024-11-01 01:00:00      89544.93
#> 2024-11-02 01:00:00      84087.60

Breaking Changes

Charting

API Calls

Warning

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

Version 1.2.1

Minor Updates

Bugfixes

Version 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,

Version 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.

Version 1.0.0