getCurve: 'getCurve'

Description Usage Arguments Value Current Feeds Supported Author(s) Examples

View source: R/morningstar.R

Description

Returns forward curves from Morningstar API. See below for current feeds supported. You need your own credentials with Morningstar.

Usage

1
2
3
4
5
6
7
8
getCurve(
  feed = "Crb_Futures_Price_Volume_And_Open_Interest",
  contract = "CL",
  date = "2020-08-10",
  fields = c("Open, High, Low, Close"),
  iuser = "x@xyz.com",
  ipassword = "pass"
)

Arguments

feed

Morningstar Feed Table e.g "Crb_Futures_Price_Volume_And_Open_Interest".

contract

Morningstar contract root e.g. "CL" for CME WTI and "BG" for ICE Brent.

date

From date as character string.

fields

Defaults to c("Open, High, Low, Close").

iuser

Morningstar user name as character - sourced locally in examples.

ipassword

Morningstar user password as character - sourced locally in examples.

Value

wide data frame

Current Feeds Supported

Author(s)

Philippe Cote

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Not run: 
# CME WTI Futures
getCurve(feed = "Crb_Futures_Price_Volume_And_Open_Interest",contract = "CL",
date = "2020-07-13",fields = c("Open, High, Low, Close"),
iuser = "x@xyz.com", ipassword = "pass")

getCurve(feed = "Crb_Futures_Price_Volume_And_Open_Interest",contract = "BG",
date = "2020-07-13",fields = c("Open, High, Low, Close"),
iuser = "x@xyz.com", ipassword = "pass")

## End(Not run)

RTL documentation built on June 12, 2021, 5:06 p.m.