Hi,
I am trying to implement a simple function to get the lastPrice field for
equities, futures...
My first attempt is:
reqMktData(tws,twsEquity(x$id,x$exchange),snapshot=T)$lastPrice
where x is an equity object having the 2 required fields: name and exchange.
This works randomly at best and is very slow (given that it is supposed to
be real time!)
So, I went through the pages where similar issues were reported; but there
is a lot of things that are not yet clear:
1- it seems, setting snapshot = T is wrong and slow. Why?
2- if we look at the API doc, it seems reqMktData is deprecated and
reqMktDataEx should be used instead; and the interface for reqMktDataEx is
very simple (no callback, no wrapper). Is there something similar in the
IBrokers package?
3- if we must go with callbacks and wrappers, is there any good pointer for
a tutorial on this?
3- I am trying to get the lastPrice for a french stock: I use
twsEquity("SAN","SBF"), but I get a msg like
2 1 200 No security definition has been
found for the request
I guess I don't specify well the stock Sanofi which has SBF as its main
exchange. Is there a pointer to the way IB symbols work?
Thanks a lot in advance
Johnny.
[[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.