riingo_crypto_quote {riingo} | R Documentation |
Quote and Top of Book data for a given cryptocurrency
Description
Tiingo provides TOP (top of book) bid and ask quotes for cryptocurrencies. Note that this cannot be historically queried.
Usage
riingo_crypto_quote(
ticker,
exchanges = NULL,
convert_currency = NULL,
raw = FALSE
)
Arguments
ticker |
One or more cryptocurrency tickers.
Specified as |
exchanges |
If you would like to limit the query to a subset of exchanges,
pass a comma-separated list of exchanges to select. Example) |
convert_currency |
This parameter will convert the return data into another
fx rate. For example if querying |
raw |
If |
Details
At the end of the day, the, askPrice
, bidSize
, bidPrice
, askSize
,
and lastSize
fields may be NA
. This is normal.
Examples
## Not run:
riingo_crypto_quote("btcusd")
# The raw data can provide more insight into each individual exchange
riingo_crypto_quote("btcusd", raw = TRUE)
## End(Not run)