fintxt_live_intensities_portfolio: Retrieve live news intensities for a portfolio of company...

Description Usage Arguments Value See Also Examples

View source: R/functions.R

Description

Retrieve live news intensities for a language, a date and a company's Reuters Instrument Code. Note that you need to supply a valid api token.

Usage

1
2
3
fintxt_live_intensities_portfolio(type = c("companies", "commodities"),
  language = c("total", "english", "french", "russian", "arabic", "german"),
  identifiers, weights)

Arguments

type

either one of 'companies' or 'commodities'

language

Filter news intensity values by language. See the '/languages' endpoint for allowed values.

identifiers

RIC codes for the companies for which you want to query news intensity values or names of commodities for which you want to query news intensity values. See documentation for supported commodities. Note that you cannot mix companies and commodities

weights

Weight of each company/commodity in your portfolio in decimal format. Should sum to 1, but the API will still return news intensities if this is not the case. See example section.

Value

List containing API results

See Also

See the documentation at <https://fintxt.github.io/documentation/index.html>

Examples

1
2
3
4
5
6
7
## Not run: 
# historic portfolio endpoint
identifiers = c("TRI.TO", "IBM.N", "RRD.N", "SPGI.N", "INTU.OQ", "RELN.AS", "WLSNc.AS", "REL.L"),
weights = c(0.3, 0.1,0.05,0.05, 0.2,0.1,0.1,0.1)
fintxt_live_intensities_portfolio("companies", "english", identifiers, weights)

## End(Not run)

FinTxt/FinTxtClient documentation built on July 26, 2018, 2:40 p.m.