Changelog
Source:NEWS.md
cryptoQuotes 1.3.1
Improvements
Charting
- The
chart()
-function now has properlight
-theme available that isn’t the defaultplotly
-values. - The charts now displays date ranges as a subtitles.
- The
bollinger_bands()
-function now accepts acolor
-argument. These can be passed asHexadecimal
-colors or as is,"blue"
for example. - A new main chart function has been introduced.
line()
which is a univariate price chart based on either open, high, low or close prices.
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 onrlang
.
Note: we are generally moving away from
rlang
,purrr
andtidyverse
in general. We are, however, keeping thetidyverse
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.
Breaking Changes
- The
get_FGIndex()
- andget_fgindex()
-function now returns columns in lower case.
Bugfixes
- Fixed a bug where
get_fgindex()
where labelled asdeprecated
- Fixed a bug in the
limitations
-article where the desired number of observations werent compatible with thekraken
-exchange. - Fixed a warning in the
get_lsratio()
-function withsource = "binance"
- Fixed a bug in the
lsr()
-indicator which broke thechart()
-function when included.
cryptoQuotes 1.3.0
CRAN release: 2024-03-12
Improvements
General function improvements
get_lsratio
andgetLSratio()
supportskraken
andbybit
assource
available_
-functions are more adaptive to the calling 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.
Charting
- The
charts
now has adark
andlight
theme. Its passed into theoptions = list(dark = TRUE)
of thechart()
-function. - The
charts
are now more color deficiency compliant, and thedeficiency
parameter inoptions = list(deficiency = TRUE)
now applies to allchart
-elements - The
charts
are now constructed without%>%
and, should, be more intuitive to navigate in. See example below,
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
dates
passed toget_*
-functions assumed the dates were given inUTC
, and were retrieved asUTC
. These have now been changed; all functions now usesSys.timezone()
asdefault
upon request and retrieval.
cryptoQuotes 1.2.1
CRAN release: 2024-01-08
cryptoQuotes 1.2.0
All
from
andto
arguments are now more flexible, and supports passingSys.Date()
andSys.time()
directly into theget
-functions.getQuote()
now returns up to 100 pips preceding the specifiedto
date, whenfrom = NULL
. It returns 100 pips, or up toSys.Date()
, from the specifiedfrom
date.
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,
-
getFGIndex()
which returns the daily Fear and Greed Index. -
addFGIndex()
which adds the Fear and Greed Index as a subplot to price charts. -
getLSRatio()
which returns the long-short ratio with varying granularity. Contributor has been credited. -
addLSRatio()
which adds the long-short ratio as a subplot to price charts.
cryptoQuotes 1.1.0
Frontend
getQuote()
now returns up to 100 pips when to
and from
is NULL