IntrinioStockAPI v0.0.1

0

Monthly downloads

0th

Percentile

Wrapper for the 'Intrinio Stock API'

Download financial data from the free 'Intrinio Stock API' (<https://intrinio.com/>). 'Intrinio' offers a REST API which provides financial markets data including intra-day stock prices, historical stock prices, technical indicators, company fundamentals, and more. Complete documentation for the 'Intrinio Stock API' is available here: <https://intrinio.com/documentation/api/>. To access the 'Intrinio Stock API', simply create a free account <https://intrinio.com/>.

Readme

Intrinio Stock API

Introduction

Intrinio offers a free API to access near real time and historical stock market prices and data.

This package wraps the Intrinio API for R so that the response data is easy to use.

Installation

This package can be installed via CRAN install.packages("IntrinioStockAPI").

To install the Github version, use devtools::install_github("intrinio/r-sdk").

Usage

Get Your Intrinio API Credentials

First, create an account for the Intrinio Stock API

Load the Library

library(IntrinioStockAPI)

Fetch Stock Price Data

For example, let's grab daily prices for the Apple Security...

api_username <- "[YOUR API USERNAME]"
api_password <- "[YOUR API PASSWORD]"
intrinio_api_endpoint_url <- "api.intrinio.com/prices?ticker=AAPL"

apple_prices <- intrinio_fetch(intrinio_api_endpoint_url, api_username, api_password)

The intrinio_fetch function returns a data frame which can then be easily plotted as follows:

plot(apple_prices$data.close)

The intrinio_fetch function works for all Intrinio API endpoints. For example, the Executive Compensation API endpoint can be used as follows:

api_username <- "[YOUR API USERNAME]"
api_password <- "[YOUR API PASSWORD]"
intrinio_api_endpoint_url <- "api.intrinio.com/executives/compensations?identifier=@COOK_49578&company=AAPL"

tim_cook_comp <- intrinio_fetch(intrinio_api_endpoint_url, api_username, api_password)
plot(tim_cook_comp$data.total_summary/1000)

Take Your Analysis Further

Full documentation for the Intrinio Financial Data API is available at https://intrinio.com/documentation/api

Functions in IntrinioStockAPI

Name Description
IntrinioStockAPI IntrinioStockAPI - Wrapper for the Intrinio Financial Markets Data and Stock API
intrinio_fetch Fetch Intrinio Data
No Results!

Last month downloads

Details

License MIT + file LICENSE
Encoding UTF-8
LazyData true
URL https://github.com/intrinio/r-sdk
RoxygenNote 6.1.0
NeedsCompilation no
Packaged 2018-10-01 16:14:15 UTC; kgmiller
Repository CRAN
Date/Publication 2018-10-08 18:50:07 UTC

Include our badge in your README

[![Rdoc](http://www.rdocumentation.org/badges/version/IntrinioStockAPI)](http://www.rdocumentation.org/packages/IntrinioStockAPI)