| get_mktcap | R Documentation |
The get_mktcap()-functions returns the global cryptocurrency market capitalization.
get_mktcap(
interval = "1d",
from = NULL,
to = NULL,
altcoin = FALSE,
reported = FALSE
)
interval |
A character-vector of length 1. |
from |
An optional character-, date- or POSIXct-vector of length 1. NULL by default. |
to |
An optional character-, date- or POSIXct-vector of length 1. NULL by default. |
altcoin |
A logical-vector of length 1. FALSE by default. Returns altcoin market capitalization if TRUE |
reported |
A logical-vector of length 1. FALSE by default. Returns reported volume if TRUE. |
Values passed to from`` or tomust be coercible by [as.Date()], or [as.POSIXct()], with a format of either"%Y-%m-%d"or"%Y-%m-%d %H:%M:%S"'. By default all dates are passed and
returned with Sys.timezone().
If only from is provided 200 pips are returned up to Sys.time().
If only to is provided 200 pips up to the specified date is returned.
An <[xts]>-object containing,
index |
<POSIXct> The time-index |
marketcap |
<numeric> Market capitalization |
volume |
<numeric> Trading volume |
Serkan Korkmaz
Other get-functions:
get_fgindex(),
get_fundingrate(),
get_lsratio(),
get_openinterest()
## Not run:
# script start;
# get quote on
# BTCUSDT pair from
# Binance in 30m
# intervals from the
# last 24 hours
tail(
BTC <- cryptoQuotes::get_quote(
ticker = 'BTCUSDT',
source = 'binance',
interval = '30m',
futures = FALSE,
from = Sys.Date() - 1
)
)
# script end;
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.