Skip to content

Commit e109053

Browse files
committed
dat
1 parent c3c69c9 commit e109053

7 files changed

Lines changed: 21 additions & 21 deletions

File tree

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Type: Package
22
Package: RTL
33
Title: Risk Tool Library - Trading, Risk, Analytics for Commodities
44
Version: 1.3.8
5-
Date: 2025-08-30
5+
Date: 2025-09-17
66
Authors@R: c(
77
person("Philippe", "Cote", , "pcote@ualberta.ca", role = c("aut", "cre")),
88
person("Nima", "Safaian", , "nima.safaian@gmail.com", role = "aut")

data-raw/DATASET.R

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -179,8 +179,8 @@ f <-
179179
contract = "CL",
180180
date = d,
181181
fields = c("Open, High, Low, Close"),
182-
iuser = mstar[[1]],
183-
ipassword = mstar[[2]]
182+
iuser = mm[[1]],
183+
ipassword = mm[[2]]
184184
) %>%
185185
dplyr::slice(1:12) %>%
186186
dplyr::select(-Open, -High, -Low)
@@ -199,8 +199,8 @@ fut <- RTL::getPrice(
199199
feed = "CME_NymexFutures_EOD",
200200
contract = "CL0M",
201201
from = "2019-01-01",
202-
iuser = mstar[[1]],
203-
ipassword = mstar[[2]]
202+
iuser = mm[[1]],
203+
ipassword = mm[[2]]
204204
)
205205
colnames(fut)[2] <- "fut"
206206

@@ -216,7 +216,7 @@ wtiSwap <- RTL::getPrices(
216216
feed = "CME_NymexFutures_EOD",
217217
contracts = c,
218218
from = "2019-08-26",
219-
iuser = mstar[[1]], ipassword = mstar[[2]]
219+
iuser = mm[[1]], ipassword = mm[[2]]
220220
)
221221

222222
usethis::use_data(wtiSwap, overwrite = T)
@@ -227,8 +227,8 @@ eurodollar <- RTL::getPrices(
227227
feed = "CME_CmeFutures_EOD",
228228
contracts = c("ED25Z"),
229229
from = "2019-01-01",
230-
iuser = mstar[[1]],
231-
ipassword = mstar[[2]]
230+
iuser = mm[[1]],
231+
ipassword = mm[[2]]
232232
) %>%
233233
tidyr::pivot_longer(-date, names_to = "series", values_to = "price")
234234

@@ -237,8 +237,8 @@ usethis::use_data(eurodollar, overwrite = T)
237237
## Sample energy futures datasets
238238
# df_fut <- readRDS("df_fut") ; usethis::use_data(df_fut, overwrite = T)
239239

240-
iuser <- mstar[["iuser"]]
241-
ipassword <- mstar[["ipassword"]]
240+
iuser <- mm[["iuser"]]
241+
ipassword <- mm[["ipassword"]]
242242
startdate <- "2004-01-01"
243243

244244
crude <- c(
@@ -255,8 +255,8 @@ crude <- RTL::getPrices(
255255
feed = "CME_NymexFutures_EOD_continuous",
256256
contracts = crude,
257257
from = startdate,
258-
iuser = mstar[[1]],
259-
ipassword = mstar[[2]]
258+
iuser = mm[[1]],
259+
ipassword = mm[[2]]
260260
) %>%
261261
pivot_longer(-date, names_to = "series", values_to = "value") %>%
262262
dplyr::mutate(series = stringr::str_replace_all(series, c("_0" = "", "_Month" = ""))) %>%
@@ -266,8 +266,8 @@ crudeICE <- RTL::getPrices(
266266
feed = "ICE_EuroFutures_continuous",
267267
contracts = crudeICE,
268268
from = startdate,
269-
iuser = mstar[[1]],
270-
ipassword = mstar[[2]]
269+
iuser = mm[[1]],
270+
ipassword = mm[[2]]
271271
) %>%
272272
pivot_longer(-date, names_to = "series", values_to = "value") %>%
273273
dplyr::mutate(series = stringr::str_replace_all(series, c("_0" = "", "_Month" = ""))) %>%
@@ -277,8 +277,8 @@ pdts <- RTL::getPrices(
277277
feed = "CME_NymexFutures_EOD_continuous",
278278
contracts = pdts,
279279
from = startdate,
280-
iuser = mstar[[1]],
281-
ipassword = mstar[[2]]
280+
iuser = mm[[1]],
281+
ipassword = mm[[2]]
282282
) %>%
283283
pivot_longer(-date, names_to = "series", values_to = "value") %>%
284284
dplyr::mutate(series = stringr::str_replace_all(series, c("_0" = "", "_Month" = ""))) %>%
@@ -300,8 +300,8 @@ alu <-
300300
feed = "CME_Comex_FuturesSettlement_EOD_continuous",
301301
contracts = alu,
302302
from = startdate,
303-
iuser = mstar[[1]],
304-
ipassword = mstar[[2]]
303+
iuser = mm[[1]],
304+
ipassword = mm[[2]]
305305
) %>%
306306
dplyr::rename_all(~ str_replace_all(., "_Month|_0", "")) %>%
307307
dplyr::mutate(across(dplyr::contains("AUP"), lbs2mt)) %>%
@@ -1194,8 +1194,8 @@ fxfwd$historical <-
11941194
feed = "Morningstar_FX_Forwards",
11951195
contracts = c("USDCAD 1Y", "USDCAD 5Y"),
11961196
from = fromDate,
1197-
iuser = mstar[[1]],
1198-
ipassword = mstar[[2]]
1197+
iuser = mm[[1]],
1198+
ipassword = mm[[2]]
11991199
)
12001200

12011201
rD <- rsDriver(browser = "firefox", chromever = NULL)
@@ -1246,7 +1246,7 @@ usethis::use_data(refineryLPdata, overwrite = T)
12461246
# Educational Dataset
12471247
tradeprocess <- RTL::getPrices(
12481248
feed = "CME_NymexFutures_EOD", contracts = c("@CL24H", "@HO24F", "@HO24H", "@LT24H"),
1249-
from = "2021-01-01", iuser = mstar[[1]], ipassword = mstar[[2]]
1249+
from = "2021-01-01", iuser = mm[[1]], ipassword = mm[[2]]
12501250
) %>% stats::na.omit()
12511251
usethis::use_data(tradeprocess, overwrite = T)
12521252

data-raw/fizdiffs.feather

2.81 KB
Binary file not shown.

data/dflong.rda

4.48 KB
Binary file not shown.

data/dfwide.rda

4.92 KB
Binary file not shown.

data/fizdiffs.rda

447 Bytes
Binary file not shown.

data/stocks.rda

838 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)