EikonGetNewsStory: Return a single news story corresponding to the identifier...

View source: R/EikonNews.R

EikonGetNewsStoryR Documentation

Return a single news story corresponding to the identifier provided in story_id

Description

Return a single news story corresponding to the identifier provided in story_id

Usage

EikonGetNewsStory(
  EikonObject = EikonConnect(),
  story_id = NULL,
  raw_output = FALSE,
  debug = FALSE,
  renderHTML = FALSE
)

Arguments

EikonObject

Connection Object result from EikonConnect()

story_id

The story id. The story id is a field you will find in every headline you retrieved with the legacy get_news_headlines

raw_output

boolean if TRUE provide only the raw downloaded info from Eikon

debug

boolean if TRUE prints out the python call to the console

renderHTML

boolean if TRUE renders HTML output file for use in website defaults to FALSE

Value

data.frame

Examples

## Not run: 
 EikonJson <- RefinitivJsonConnect()
 headlines <- EikonGetNewsHeadlines(EikonObject = EikonJson
                                   , query = "R:MSFT.O", count = 2)
 stories <- EikonGetNewsStory(story_id = headlines$storyId
 , EikonObject = EikonJson)


## End(Not run)

## Not run: 
  Eikon <- Refinitiv::EikonConnect()
  story_id <- "urn:newsml:newswire.refinitiv.com:20230829:nRTVm1b2r:5"
  stories_RD <- EikonGetNewsStory(story_id = story_id
  , EikonObject = Eikon, debug = TRUE, raw_output  = FALSE)

  EikonJson <- RefinitivJsonConnect()
  stories_JSON <- EikonGetNewsStory(story_id = story_id
  , EikonObject = EikonJson, debug = TRUE, raw_output  = FALSE)

 identical(stories_RD, stories_JSON)

## End(Not run)

GreenGrassBlueOcean/RefinitivR documentation built on June 9, 2025, 6:47 p.m.