structs {rib} | R Documentation |
The data structures used by the API are implemented as R named lists, possibly nested. Templates filled with default values are defined within the package. In order to instantiate them, no elaborate contructor is required but a simple copy will do.
Still, helper functions are available for Contract
and Order
.
ComboLeg
Contract
DeltaNeutralContract
ExecutionFilter
Order
ScannerSubscription
SoftDollarTier
WshEventData
stock <- Contract
stock$symbol <- "GOOG"
stock$secType <- "STK"
stock$exchange <- "SMART"
stock$currency <- "USD"