register.data.source {rtsdata} | R Documentation |
Data Sources
Description
List available data sources and Register new ones
Usage
register.data.source(
src = "yahoo",
data = ds.getSymbol.yahoo,
storage = ds.storage.file.rdata(),
functionality = ds.functionality.default(),
overwrite = TRUE
)
data.sources()
Arguments
src |
data source name, defaults to 'yahoo' |
data |
data source to download historical data, function must take Symbol, from, to parameters, defaults to ds.getSymbol.yahoo |
storage |
storage model configuration, defaults to ds.storage.file.rdata(src) |
functionality |
functionality configuration, defaults to ds.functionality.default() |
overwrite |
flag to overwrite data source if already registered in the list of plugins, defaults to True |
Value
None
Examples
# register data source to generate fake stock data for use in rtsdata examples
register.data.source(src = 'sample', data = ds.getSymbol.fake.stock.data)
# print allregistered data sources
names(data.sources())
[Package rtsdata version 0.1.4 Index]