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
driver
An object of class 'TDIDriver'.
conn_args
List with connection parameters.
endpoints
List with available API endpoints.
values
List 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)
driver
An object of class 'TDIDriver'.
conn_args
List with connection parameters.
endpoints
List with available API endpoints.
values
List with allowed values for parameter(s).
An object of class 'TDIConnection'.
getInstrument()
Interface method to be implemented by sub-class.
TDIConnection$getInstrument(symbol)
symbol
Symbol 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 )
symbol
Symbol to identify the instrument.
range
Optional period range.
from
Optional start date of period.
to
Optional end date of period.
interval
Optional interval.
A list with the calling arguments.
getCashFlow()
Interface method to be implemented by sub-class.
TDIConnection$getCashFlow(symbol)
symbol
Symbol 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.