| TDIConnection | R Documentation |
'TDIConnection' class is a generic and abstract R6 class, that wraps an object of class 'TDIDriver' with the connection parameters. Its purpose is to provide the capabilities to connect with the API. Each API extends this class to implement the API specific capabilities.
TDI::baseTDI -> TDIConnection
driverAn object of class 'TDIDriver'.
conn_argsList with connection parameters.
endpointsList with available API endpoints.
valuesList collection with valid parameter values.
new()Initialize the API connection for the sub-class. This class is abstract and cannot be instantiated.
TDIConnection$new(driver, conn_args, endpoints, values)
driverAn object of class 'TDIDriver'.
conn_argsList with connection parameters.
endpointsList with available API endpoints.
valuesList with allowed values for parameter(s).
An object of class 'TDIConnection'.
getInstrument()Interface method to be implemented by sub-class.
TDIConnection$getInstrument(symbol)
symbolSymbol to identify the instrument.
A list with the calling arguments.
getChart()Interface method to be implemented by sub-class.
TDIConnection$getChart( symbol, range = NULL, from = NULL, to = NULL, interval = NULL )
symbolSymbol to identify the instrument.
rangeOptional period range.
fromOptional start date of period.
toOptional end date of period.
intervalOptional interval.
A list with the calling arguments.
getCashFlow()Interface method to be implemented by sub-class.
TDIConnection$getCashFlow(symbol)
symbolSymbol to identify the instrument.
A list with the calling arguments.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.