IntrinioStockAPI (version 0.0.1)

intrinio_fetch: Fetch Intrinio Data

Description

This function takes an Intrinio API endpoint URL, API username, and API password as inputs and return a dataframe with the requested data. Remember to enter your own API username and password from https://intrinio.com/account:

Usage

intrinio_fetch(url, api_username, api_password)

Arguments

url

The Intrinio API Endpoint URL to call i.e. api.intrinio.com/prices?ticker=AAPL

api_username

Your API username, available at https://intrinio.com/account

api_password

Your API password, available at https://intrinio.com/account

Value

A data frame

Examples

Run this code
# NOT RUN {
api_username <- "[YOUR API USERNAME]"
api_password <- "[YOUR API PASSWORD]"
aapl_prices <- intrinio_fetch("api.intrinio.com/prices?ticker=AAPL", api_username, api_password)
# }

Run the code above in your browser using DataCamp Workspace