Get the funding rate on a cryptocurrency pair from
the available_exchanges() in any actively
traded available_tickers() on the futures markets.
Arguments
- ticker
A character-vector of length 1. See
available_tickers()for available tickers.- source
A character-vector of length 1.
binanceby default. Seeavailable_exchanges()for available exchanges.- 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.
See also
Other get-functions:
get_fgindex(),
get_lsratio(),
get_mktcap(),
get_openinterest(),
get_quote()
Examples
if (FALSE) { # \dontrun{
# script start;
# 1) check available
# exchanges for funding rates
cryptoQuotes::available_exchanges(
type = "fundingrate"
)
# 2) get BTC funding rate
# for the last 7 days
tail(
BTC <- cryptoQuotes::get_fundingrate(
ticker = "BTCUSDT",
source = "binance",
from = Sys.Date() - 7
)
)
# script end;
} # }
