[R-SIG-Finance] Installed quantstrat along with blotter and FinancialInstrument but seems I'm missing .instrument

G See gsee000 at gmail.com
Thu Jan 3 03:17:40 CET 2013


If you specifically want to use "get"

> get("USD", envir=FinancialInstrument:::.instrument)
primary_id :"USD"
currency   :"USD"
multiplier :1
tick_size  :0.01
identifiers: list()
type       :"currency"

or, I think this works too

> .instrument <- FinancialInstrument:::.instrument
> get("USD", envir=.instrument)
primary_id :"USD"
currency   :"USD"
multiplier :1
tick_size  :0.01
identifiers: list()
type       :"currency"

Garrett

On Wed, Jan 2, 2013 at 8:11 PM, G See <gsee000 at gmail.com> wrote:
>> getInstrument("USD")
> primary_id :"USD"
> currency   :"USD"
> multiplier :1
> tick_size  :0.01
> identifiers: list()
> type       :"currency"
>
> Please have a look at the demo directory of the package.
>
> Best,
> Garrett
>
> On Wed, Jan 2, 2013 at 8:08 PM, rquantnoob <kpomichowski at gmail.com> wrote:
>> First, thank you for taking your time to reply to my message.
>>
>> Here is the next step that perhaps will shed light on what's happening.
>>
>>> currency("USD")
>> [1] "USD"
>>
>>  > get("USD",envir=.instrument)
>> Error in get("USD", envir = .instrument) : object '.instrument' not found
>>
>>
>>
>>
>>
>> --
>> View this message in context: http://r.789695.n4.nabble.com/Installed-quantstrat-along-with-blotter-and-FinancialInstrument-but-seems-I-m-missing-instrument-tp4654469p4654475.html
>> Sent from the Rmetrics mailing list archive at Nabble.com.
>>
>> _______________________________________________
>> 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