Learn R Programming

RTL (version 0.1.3)

getPrices: getPrices

Description

Multiple Morningstar API calls using getPrice functions. Refer to `getPrices()` for list of currently supported data feeds.

Usage

getPrices(
  feed = "CME_NymexFutures_EOD",
  contracts = c("CL9Z", "CL0F", "CL0M"),
  from = "2019-01-01",
  iuser = "x@xyz.com",
  ipassword = "pass"
)

Arguments

feed

Morningstar Feed Table

contracts

Symbols vector

from

From date as character string

iuser

Morningstar user name as character - sourced locally in examples.

ipassword

Morningstar user password as character - sourced locally in examples.

Value

wide data frame

Examples

Run this code
# NOT RUN {
getPrices(feed="CME_NymexFutures_EOD",contracts=c("CL9Z","CL0F","CL0M"),
from="2019-08-26",iuser = username, ipassword = password)
# }

Run the code above in your browser using DataLab