fintxt_historic_intensities_portfolio: Retrieve historic news intensities for a portfolio of company...

Description Usage Arguments Value See Also Examples

Description

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

Usage

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

Arguments

type

either one of 'companies' or 'commodities'

language

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

date

Filter news intensity values by date.

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_historic_intensities_portfolio("companies", "english", "18-06-2018", identifiers, weights)

## End(Not run)

FinTxt/FinTxtClient documentation built on May 8, 2019, 12:58 a.m.