Tiingo provides TOP (top of book) bid and ask quotes for cryptocurrencies. Note that this cannot be historically queried.
riingo_crypto_quote( ticker, exchanges = NULL, convert_currency = NULL, raw = FALSE )
| 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 |
At the end of the day, the, askPrice, bidSize, bidPrice, askSize,
and lastSize fields may be NA. This is normal.
if (FALSE) { riingo_crypto_quote("btcusd") # The raw data can provide more insight into each individual exchange riingo_crypto_quote("btcusd", raw = TRUE) }