It came up in the round table discussion. The request is to provide a new virtual method in BrokerBase called GetOptionChain which would return the option chain if supported by the broker.
Rename
Question for those requesting it, once you have the chain, how would you use it?
I'm curious because we've already made it really easy to request a contract for the price and expiry you want with GetOptionsSymbol().
I'm curious because we've already made it really easy to request a contract for the price and expiry you want with GetOptionsSymbol().
Here's an example of how to get at the option chain for IB right now.
See code in Post #11 -
https://www.wealth-lab.com/Discussion/IB-returns-invalid-option-symbol-10465
Other providers will be similar.
See code in Post #11 -
https://www.wealth-lab.com/Discussion/IB-returns-invalid-option-symbol-10465
Other providers will be similar.
Your Response
Post
Edit Post
Login is required