[R-SIG-Finance] FinancialInstrument functions output / side effect variables

G See gsee000 at gmail.com
Fri Aug 24 18:44:25 CEST 2012

Hi Doug,

You can use getInstrument to see the instruments


  stock("SPY", currency("USD"))

Please take a look at the files in the demo directory

You'll also probably be interested in ?buildHierarchy

build_series_symbols does nothing but return a character vector and it
does not store it anywhere and it does not create any instruments. (I
personally use future_id from the twsInstrument package to serve the
purpose of build_series_symbols)


On Fri, Aug 24, 2012 at 11:37 AM, Doug Edmunds <dougedmunds at gmail.com> wrote:
> How can I see what the names of variables and what is being stored
> in them when running functions in the FinancialInstrument package?  I am
> using R-Studio.
> For example, running:
>> currency("USD")
> outputs this to the console window:
> [1] "USD"
> but gives me no clue as to where that value is being
> stored or how to access it.
> Similarly, reading a tutorial such as:
> http://blog.fosstrading.com/2011/07/creating-financial-instrument-metadata.html,
> it says:
> "build_series_symbols returns a vector of series symbols that we could use
> to request data or create future_series instruments."
> But what is the name of the vector?  Where is it stored?
> Thanks.
> _______________________________________________
> R-SIG-Finance at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-sig-finance
> -- Subscriber-posting only. If you want to post, subscribe first.
> -- Also note that this is not the r-help list where general R questions
> should go.

More information about the R-SIG-Finance mailing list