As the title, I know we can use quantmod
package to get stock prices, but how can we retrieve commodity prices like Gold, Oil or Aggs?
Asked
Active
Viewed 2,719 times
2

Curious Baby
- 23
- 1
- 5
1 Answers
2
Use Quandl
package, here are some examples
Gold <- Quandl("LBMA/GOLD")
WTI <- Quandl("CHRIS/CME_CL1")
Corn <- Quandl("CHRIS/CME_C1")
You can go to their website for more information.
This is the page you can get ticker information.

Arthur
- 398
- 6
- 20
-
Is there a way to bulk download all commodity prices (Metal, energy etc.) ? I went through Quandl but couldn't find a single source that contains everything – nba2020 Jan 06 '20 at 13:53