cryptoQuotes 1.3.0
Improvements
General function improvements
-
get_lsratioandgetLSratio()supportskrakenandbybitassource -
available_-functions are more adaptive to the callling environments
## 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
quotesandfear and greed indexnow returns200rows instead of100
Charting
- The
chartsnow has adarkandlighttheme. Its passed into theoptions = list(dark = TRUE)of thechart()-function. - The
chartsare now more color deficiency compliant, and thedeficiencyparameter inoptions = list(deficiency = TRUE)now applies to allchart-elements - The
chartsare now constructed without%>%and, should, be more intuitive to navigate in. See example below,
## charting the klines
## with indicators as
## subcharts
chart(
ticker = BTCUSDT,
main = kline(),
sub = list(
volume(),
macd()
),
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,
- ByBit
New features
- Funding rates
## get funding rate
get_fundingrate(
ticker = "BTCUSDT",
source = "binance"
)- Open interest
## get open interest
get_openinterest(
ticker = "BTCUSDT",
source = "binance"
)Breaking Changes
Charting
- All the
charting-functions have been reworked without backwards compatibility, orlifecycle::deprecated()-warnings. Thecharting-functions were, and still is, in anexperimental-stage.
API Calls
- All
datespassed toget_*-functions assumed the dates were given inUTC, and were retrieved asUTC. These have now been changed; all functions now usesSys.timezone()asdefaultupon request and retrieval.
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!