getGenscapePipeOil | R Documentation |
Returns oil pipeline flows in barrels per day data from Genscape API.You need your own credentials. Refer to API documentation for argument values. It is assumed if you use this function that you know the pipelines you need to extract to build supply demand balances. Use the online API to identify the pipeline IDs. https://developer.genscape.com/docs/services/oil-transportation/operations/GetPipelineFlowValuesV2/
getGenscapePipeOil(
frequency = "daily",
regions = "Canada",
pipelineIDs = c(97),
revision = "revised",
limit = 5000,
offset = 0,
startDate = "2015-01-01",
endDate = as.character(Sys.Date()),
apikey = "yourapikey"
)
frequency |
"daily" DEFAULT. |
regions |
See API webpage. Multiple values separated by commas e.g. "Canada", "GulfCoast"). |
pipelineIDs |
See API webpage. c(98,54...) for specific pipes. |
revision |
See API webpage. |
limit |
See API webpage. Max 5000. |
offset |
See API webpage. |
startDate |
"yyyy-mm-dd". |
endDate |
"yyyy-mm-dd". |
apikey |
Your API key. |
wide data frame. tibble
Philippe Cote
## Not run:
getGenscapePipeOil(
frequency = "daily", regions = "Canada", pipelineIDs = c(97),
revision = "revised", limit = 5000, offset = 0,
startDate = "2015-01-01", endDate = as.character(Sys.Date()),
apikey = "yourapikey"
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.