This library provides access to recent, and historical, crypto prices from various centralized exchanges using a high level unified API. It supports perpetual futures and spot markets, with varying time intervals.
In this vignette, we will show how the ATOMUSDT
-pair can
be retrieved from Binance and Kucoin for the futures and spot market,
and how these prices can plotted with the most common charts and
indicators
## get OHLC data
## from binance futures
## market with daily pips
ATOMUSDT <- cryptoQuotes::getQuote(
ticker = 'ATOMUSDTM',
source = 'binance',
futures = TRUE,
interval = '15m',
from = '2023-10-01',
to = '2023-10-02'
)
The USDT denominated ATOM, can be charted directly via the
chart
-function, for a quick overview.
## get OHLC data
## from Kucoin futures
## market with daily pips
ATOMUSDT <- cryptoQuotes::getQuote(
ticker = 'ATOM-USDT',
source = 'kucoin',
futures = FALSE,
interval = '15m',
from = '2023-10-01',
to = '2023-10-02'
)
The USDT denominated ATOM, can be charted directly via the
chart
-function, for a quick overview.