-
-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Option Greeks #32
Comments
This works for me. eWrapper.data.Opt_Model <- function(n) { eW$tickOptionComputation <- function(curMsg, msg, timestamp, file, ...) return(eW) |
Thank you for the response. I'm having difficulty knowing what and where to input the option details. Can you please provide an example using a common stock and options contract? Again, thank you very much for your help. |
reqMktData(tws,OptionContract,eventWrapper=eWrapper.data.Opt_Model(1),CALLBACK = snapShot) This should work as long as you define an options contract. |
I've tried to apply this to VIX September 21 Call at strike 20 and receive an error.
Thank you. |
Sorry, you have to define the Snapshot function: snapShot <- function (twsCon, eWrapper, timestamp, file, playback = 1, ...){ |
Great! Thank you! |
It took me along time to figure it out! Now I am trying to get it to work in python. |
In case you haven't seen this: Good luck! |
In the TWS API for Python and other languages, I've found documentation on returning greek values for options. Is it possible to do this with the R API? Thank you for the package.
The text was updated successfully, but these errors were encountered: