news: Get News Data

View source: R/news.R

newsR Documentation

Get News Data

Description

Retrieves news data for a specific stock symbol from the Limex API. The API token is retrieved from an environment variable 'LIMEX_API_TOKEN'.

Usage

news(symbol = "AAPL", from = "2010-01-01", to = Sys.Date())

Arguments

symbol

The stock symbol for which news data is requested.

from

The start date for the data retrieval in 'YYYY-MM-DD' format.

to

The end date for the data retrieval in 'YYYY-MM-DD' format.

Value

A data frame containing the news data if successful, NULL otherwise.

Examples

## Not run: 
  news_data <- news(symbol = "BRX", from = "2023-11-27", to = "2023-11-28")

## End(Not run)

limexhub documentation built on June 22, 2024, 6:58 p.m.

Related to news in limexhub...