intrCall: Generic Intrinio API call with multi-page results

Description Usage Arguments Value Examples

Description

Unless API call results fit into Intrinio limit, they are split into multiple pages. This function requests each page separately and combines results.

Usage

1
2
intrCall(endpoint, pageSize = "auto", startPage = 1, endPage = NULL,
  pageRecover = TRUE, outFormat = intrOptions()$outFormat, ...)

Arguments

endpoint

Name of an endpoint, such as 'companies', 'securities', 'indices', 'owners' or 'stock_exchanges'. See API documentation. May have a composite name, e.g. 'fundamentals/standardized'

startPage

A page to start loading from.

...

Any other named flags/queries to pass.

page_size

Page size for results. If set to 'auto' will use the largest size allowed for the endpoint. See Paging Limits or intrOptions()$maxPageSize

Value

a list with data.

Examples

1
2
3
intrCall('companies') # Pulls Master Data Feed (first page).
intrCall('companies', identifier = 'AAPL')
intrCall('fundamentals/standardized', identifier = 'AAPL', statement = 'income_statement', type = 'FY')

ksavin/intrinio documentation built on May 20, 2019, 7:03 p.m.