Returns oil storage data from Genscape API.You need your own credentials. Refer to API documentation for argument values. https://developer.genscape.com/docs/services/oil-storage/operations/StorageVolumeByOwnerGet
getGenscapeStorageOil(
feed = "owner-volumes",
regions = "Canada",
products = "Crude",
revision = "revised",
limit = 5000,
offset = 0,
startDate = "2011-01-01",
endDate = as.character(Sys.Date()),
apikey = "yourapikey"
)
wide data frame tibble
"owner-volumes" DEFAULT or "tank-volumes". character
See API webpage. Multiple values separated by commas e.g. "Canada, Cushing"). character
See API webpage. Multiple values separated by commas e.g. "Crude, JetFuel"). character
See API webpage. character
See API webpage. Max 5000. numeric
See API webpage. numeric
"yyyy-mm-dd". character
"yyyy-mm-dd". character
Your API key as a character string. character
Philippe Cote
if (FALSE) {
# where yourapikey = "yourapikey".
getGenscapeStorageOil(
feed = "owner-volumes", regions = "Canada", products = "Crude",
revision = "revised", limit = 5000, offset = 0,
startDate = "2011-01-01", endDate = "2020-11-01", apikey = yourapikey
)
}
Run the code above in your browser using DataLab