Hello,

At the moment, I am switching from Python to R and I am trying to write some
simple code to price a portfolio, using Jeff Ryan's Ibrokers package. I
would like to have a field of class twsconn in one of my objects

setClass( "MktAsset",
  representation( IB.id = "character",
                          asset.type = "factor",
              ccy = "factor",
              IB.conn = "twsconn") )

but the system does not seem happy about it

Msg is

In .completeClassSlots(ClassDef, where) : undefined slot classes in
definition of "MktAsset": IB.connection(class "twsconn")

but when I ask the class of tws (initialized with tws <- twsConnect(), it
returns

[1] "twsconn" "environment"

I tried to go through the code to check for the existence of a class twsconn
but, I found nothing.

Can someone help?

Thanks a lot

        [[alternative HTML version deleted]]

_______________________________________________
[email protected] 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.

Reply via email to