Join the 80,000 other DTN customers who enjoy the fastest, most reliable data available. There is no better value than DTN!

(Move your cursor to this area to pause scrolling)




"If you are serious about your trading I would not rely on IB data for serious daytrading. Took me a while to justify the cost of IQ Feed and in the end, it's just a 2 point stop on ES. Better safe than sorry" - Comment from Public Forum
"I noticed that ******* quotes locked up shortly after the interest rate announcement yesterday while yours stayed stable." - Comment from Ron in Utah
"Everything is working great ! Very impressive client. The news refreshes better and is more pertinent than the ******* feed I paid $ 100/month for. I Also like the charts a lot." - Comment from Leon
"I am very happy I changed. I love the product, but more so I am thrilled with Tech Support. You are knowledgeable, polite, pleasant and professional." - Comment from Pat
"I just wanted to say how happy I am with your service. I was able to download the API docs last week and I was able to replicate Interactive Brokers historical bar queries and realtime bar queries over the weekend. That was about one of the fastest integrations that I've ever done and it works perfectly!!!!" - Comment from Jason via Email
"I use IQ Feed, Great stuff as far as data analysis information, storage and retrieval is concerned." - Comment from Public Forum
"Thank you so much - awesome feed, awesome service!" - Comment from Greg via Email
"My broker in Davenport suggested I give you a try as he uses your service and says its the best." - Comment from Bill via RT Chat
"Version 4.0.0.2 has been working well for me and I appreciate that it is now a much tighter client to work with. I feel I can go to press with my own application and rely on a stable platform" - Comment from David in IA.
"Thanks for following up with me. You guys do a great job in tech support." - Comment from Phelps
Home  Search  Register  Login  Recent Posts

Information on DTN's Industries:
DTN Oil & Gas | DTN Trading | DTN Agriculture | DTN Weather
Follow DTNMarkets on Twitter
DTN.IQ/IQFeed on Twitter
DTN News and Analysis on Twitter
»Forums Index »Archive (2017 and earlier) »IQFeed Developer Support »Questions regarding option chain requesting
Author Topic: Questions regarding option chain requesting (7 messages, Page 1 of 1)

homie70
-Interested User-
Posts: 9
Joined: Aug 12, 2018


Posted: Aug 12, 2018 03:02 AM          Msg. 1 of 7
Hi,

I just started to get used to the IQfeed API.

Regarding the retrieving of option chains for an index or equities, respectively, I have some questions:

1. How am I able to get options chains for following years. E.g. when I try to get SPX option chain data buy using the command (CEO,SPX.XO,pc,ABCDEFGHIJKLMNOPQRSTUVWX,,1,2,1,0\r\n),
I just get data for 2018 option chains. And in the documentation I cannot see that there would be a field for YEAR (as it is a parameter in the future option chain request)

2. In the documentation for option chains, there is an example for the ticker GOOG (former Alphabet ticker) which I do not understand, because in the example result in the documentation does not show a strike?

Help is appreciated.

altmany
-Interested User-
Posts: 73
Joined: Jul 30, 2018

IQML - IQFeed-MATLAB connector


Posted: Aug 12, 2018 03:34 AM          Msg. 2 of 7
@homie70 - welcome to IQFeed!

1. IQFeed currently only reports option contracts for the next several months.
Note that while the documentation says that NearMonths should be 1-4, in reality IQFeed reports contracts further in the future, based on the specified [Near Months] parameter. In my experiments today, I received a June 2019 contract when I specified NearMonths=8, but perhaps on other dates you could receive contracts even 9-10 months ahead. In any case, a value that is too large is silently ignored. For example, specifying 99 is the same as specifying 8...
Note that IQFeed officially documents NearMonths of just 1-4 - the undocumented functionality of supporting larger NearMonths values (which is excellent) might change in the future.

2. The doc-page for the CEO command (http://www.iqfeed.net/dev/api/docs/OptionChainsviaTCPIP.cfm) is indeed misleading, but in reality IQFeed returns valid results. Here's what I get by running the example in the doc-page - as you can see, the strike price is indeed included:

=> CEO,GOOG,pc,,1
<= GOOG1817H1000,GOOG1817H1005,GOOG1817H1010,GOOG1817H1015,GOOG1817H1020, ...

Hopefully some day DTN will amend the doc-page for both of these points.

Note that I am not a DTN employee and this is not an official answer.

- Yair
IQML - IQFeed-Matlab connector
https://UndocumentedMatlab.com/IQML

homie70
-Interested User-
Posts: 9
Joined: Aug 12, 2018


Posted: Aug 14, 2018 12:29 PM          Msg. 3 of 7
@altmany

Thx for the welcome!
And even more thx for the very helpful reply.

1. Thanks to your suggestion, I could get finally a somehow satisfying option chain request for expirations further out in the future (SPX till Sep 2019).

2. I kindly ask the DTN support to replace the mentioned GOOG option chain request example in the documentation with an output that is correct and makes sense...

Cheers

DTN_Tim Walter
-DTN Guru-
Posts: 1238
Joined: Apr 25, 2006


Posted: Aug 14, 2018 12:36 PM          Msg. 4 of 7
I'll take a look at it today.

Sorry for the confusion it caused and thanks for the assist Altmany.

Tim

DTN_Tim Walter
-DTN Guru-
Posts: 1238
Joined: Apr 25, 2006


Posted: Aug 16, 2018 08:52 AM          Msg. 5 of 7
Just wanted to mention that I did get all of the option request and update messages updated.

Thanks again for pointing it out.

Tim

altmany
-Interested User-
Posts: 73
Joined: Jul 30, 2018

IQML - IQFeed-MATLAB connector


Posted: Aug 16, 2018 09:57 AM          Msg. 6 of 7
Thanks for updating the doc page with the updated response messages Tim.

Could you also please comment regarding the NearMonths issue? i.e. is the fact that in practice values higher than 4 (as high as 30 for SPX for example) work an unsupported feature that should not be relied on, or perhaps it only works in certain exchanges/secTypes/accounts, etc.?

Note: I am not a DTN employee; my post reflects my personal opinion and not necessarily DTN's

- Yair
IQML - IQFeed-Matlab connector
https://UndocumentedMatlab.com/IQML

DTN_Tim Walter
-DTN Guru-
Posts: 1238
Joined: Apr 25, 2006


Posted: Aug 16, 2018 10:06 AM          Msg. 7 of 7
Sure thing,

We won't break it intentionally at this point, so I think you are ok to use it, but that functionality was not internally tested I don't think previously, so take it with a grain of salt is all.

We are looking at how we could add better handling of these requests in the future, as I was doing a review of the page and requests I found several points that I think we can do better and have escalated those concerns accordingly.

Tim
 

 

Time: Thu May 2, 2024 5:25 PM CFBB v1.2.0 9 ms.
© AderSoftware 2002-2003