Learn R Programming

{cryptoQuotes}: Open access to cryptocurrency market data

:information_source: About

{cryptoQuotes} is a high-level API client for accessing public market data endpoints on major cryptocurrency exchanges. It supports open, high, low, close and volume (OHLC-V) data and a variety of sentiment indicators; the market data is high quality and can be retrieved in intervals ranging from seconds to months. All the market data is accessed and processed without relying on crawlers, or API keys, ensuring an open, and reliable, access for researchers, traders and students alike. There are currently 9 supported cryptocurrency exchanges,

All data is returned as {xts}-objects which enables seamless interaction with with {quantmod} and {TTR}, for developing and evaluating trading strategies or general purpose cryptocurrency market analysis with a historical or temporal perspective.

:information_source: Overview

{cryptoQuotes} has two main features; retrieving cryptocurrency market data, and charting. The market data consists of OHLC-V data and sentiment indicators; including, but not limited to, cryptocurrency fear and greed index, long-short ratio and open interest. All market data is retrieved using the family of get_*-functions. To get a full overview of the package and functionality please see the documentation via {pkgdown}.

[!WARNING]

Given the nature of crypotcurrency data and general legislative restrictions, some exchanges may not work in your geolocation.

Below is a quick overview of the package and basic usage examples on retrieving and charting Bitcoin (BTC) OHLC-V and long-short ratio in 30 minute intervals.

:information_source: Cryptocurrency market data

OHLC-V

All supported exchanges and markets are listed in the table below, alongside the available range of intervals available from the respective exchanges,

Get USDT denominated Bitcoin (BTC) on the spot market from Binance in 30m-intervals using the get_quote()-function,

## BTC OHLC prices
## from Binance spot market
## in 30 minute intervals
BTC <- cryptoQuotes::get_quote(
  ticker   = 'BTCUSDT',
  source   = 'binance',
  futures  = FALSE,
  interval = '30m',
  from     = Sys.Date() - 2
)

Sentiment indicators

The sentiment indicators available in {cryptoQuotes} can be divided in two; derived indicators and market indicators. The former is calculated based on, for example, the price actions such as the Moving Average Convergence Divergence (MACD) indicator. The latter are public indicators such as the long-short ratio or fear and greed index; these are retrieved using the family of get_*-functions, while the derived indicators can be created using, for example, {TTR}.

In this overview we are focusing on market indicators made public by the cryptocurrency exchanges. For a full overview of sentiment indicators please refer to the documentation via {pkgdown}. All supported market indicators by exchange are listed in the table below,

Copy Link

Version

Install

install.packages('cryptoQuotes')

Monthly Downloads

687

Version

1.3.4

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Serkan Korkmaz

Last Published

February 15th, 2026

Functions in cryptoQuotes (1.3.4)

bollinger_bands

Add Bollinger Bands to the chart
flatten

flatten nested lists
get_fgindex

Get the daily Fear and Greed Index in the cryptocurrency market
fetch

Fetch time-based API-endpoint responses
fgi

Chart the Fear and Greed Index
get_quote

Get the Open, High, Low, Close and Volume data on a cryptocurrency pair
hma

Add Hull Moving Average (HMA) to the chart
kline

Candlestick Chart
is.date

Check if values are valid dates
get_openinterest

Get the open interest on perpetual futures contracts
get_mktcap

Get the global market capitalization
evwma

Add Elastic Volume-Weighted Moving Average (EVWMA) to the chart
vwap

Add Volume-Weighted Moving Average (VWAP) to the chart
wma

Add Weighted Moving Average (WMA) to the chart
ema

Add Exponentially-Weighted Moving Average (EMA) to the chart
write_xts

Read and Write xts-objects
get_lsratio

Get the long to short ratio of a cryptocurrency pair
lsr

Chart the long-short ratio
get_fundingrate

Get the funding rate on futures contracts
macd

Chart the Moving Average Convergence Divergence (MACD) indicator
zlema

Add Zero Lag Exponential Moving Average (ZLEMA) to the chart
ohlc

OHLC Barchart
pline

Line Chart
rsi

Chart the Relative Strength Index (RSI)
split_window

split xts object iteratively in lists of desired intervals
remove_bound

remove upper and lower bounds from an XTS object
sma

Add Simple Moving Average (SMA) indicators to the chart
smi

Chart the Stochastic Momentum Index (SMI)
volume

Chart the trading volume
BTC

USDT Denominated Bitcoin (BTCUSDT) Weekly Intervals
alma

Add Arnaud Legoux Moving Average (ALMA) to the chart
available_intervals

Get available intervals
available_exchanges

Get available exchanges
donchian_channel

Add Donchian Channels to the chart
calibrate_window

calibrate the time window of a list of xts objects
available_tickers

Get actively traded cryptocurrency pairs
dema

Add Double Exponential Moving Average (DEMA) to the chart
FGIndex

Fear and Greed Index (FGI) values for the cryptocurrency market in daily intervals
default_dates

Get the minimum and maximum date range
DOGE

USDT Denominated DOGECOIN (DOGEUSDT) 1-Minute Intervals
add_event

Add eventlines to the chart
cryptoQuotes-package

cryptoQuotes: Open Access to Cryptocurrency Market Data, Sentiment Indicators and Interactive Charts
GET

GET-requests
assert

Assert truthfulness of conditions before evaluation
convert_date

Convert dates passed to UNIX
ATOM

USDT Denominated ATOM (ATOMUSDT) 15-Minute Intervals
chart_layout

Create a list of layout elements on subcharts
chart

Build an interactive financial chart