Description Usage Arguments Value Author(s) See Also Examples
Remove any local copies of a twsContract so that
getContract
will be forced to reqContractDetails
1 | rmContract(x, env = .GlobalEnv)
|
x |
character name of a Symbol. Can also be an xts object. (See Details) |
env |
environment that holds (non-required) xts data. |
called for side-effect
Garrett See
getContract
, setSymbolLookup
,
twsInstrument
, instrument_attr
1 2 3 4 5 6 7 8 9 10 | ## Not run:
define_stocks("SPY")
getContract("SPY") # == getInstrument("SPY")$IB
rmContract("SPY")
instrument_attr("SPY", "src", list(src="IBrokers", Contract=getContract("SPY")))
getContract("SPY") # == getSymbolLookup()[["SPY"]]$Contract
rmContract("SPY")
getContract("SPY") #has to look it up with reqContractDetails
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.