getPrices: Morningstar Commodities API multiple calls

View source: R/morningstar.R

getPricesR Documentation

Morningstar Commodities API multiple calls

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. character

contracts

Symbols vector. character

from

From date yyyy-mm-dd. character

iuser

Morningstar user name as character - sourced locally in examples. character

ipassword

Morningstar user password as character - sourced locally in examples. character

Value

wide data frame. tibble

Author(s)

Philippe Cote

Examples

## Not run: 
getPrices(
  feed = "CME_NymexFutures_EOD", contracts = c("@CL0Z", "@CL1F", "@CL21H", "@CL21Z"),
  from = "2020-01-01", iuser = username, ipassword = password
)

## End(Not run)


RTL documentation built on Oct. 21, 2023, 1:06 a.m.