get_news: Get cryptocurrency news items.

Description Usage Arguments Value References Examples

View source: R/public_api.R

Description

get_news returns news items and URLs from news providers that can be found with get_news_providers.

Usage

1
2
get_news(feeds, ts = Sys.time(), lang = "EN", sign = FALSE,
  app_name = NULL)

Arguments

feeds

character. One or more news providers to query. News providers can be found with get_news_providers.

ts

character or POSIXct or POSIXt. Timestamp to pull news for. Defaults to Sys.time().

lang

character. Code for the language to return results in. Defaults to 'EN' for English.

sign

logical. Should the server sign the response? Defaults to FALSE.

app_name

character. Name of app to be passed in API request. Defaults to NULL.

Value

A tibble containing news items and URLs from selected providers for the specified time stamp.

References

https://min-api.cryptocompare.com

Examples

1
2
3
4
## Not run: 
get_news(c("cryptocompare", "cnn"))

## End(Not run)

blairj09/cryptor documentation built on May 23, 2019, 7:32 a.m.