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)




"You are much better than lawyers or the phone company because you answer the phone when I call! I just love your customer service." - Comment from Isreal
"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
"Its working FABULOUSLY for me!! Holy cow...there has been so much I've been missing lately, and with this feed and Linnsoft software...I'm in the game now." - Comment from Chris R.
"I noticed that ******* quotes locked up shortly after the interest rate announcement yesterday while yours stayed stable." - Comment from Ron in Utah
"The service is great, I see a noticeable improvement in my volume profiles over [broker]'s data feed" - Comment from Larry
"I am very pleased with the DTNIQ system for quotes and news." - Comment from Larry
"Previously I was using *******. IQFeed is WAY more economical, and for my charting needs is just as good, if not better." - Comment from Public Forum Post
"I am enjoying the feed very much - so superior to the broker provided feed I was previously using." - Comment from George
"I had always used ******* but for the past 2 weeks have been trying DTN IQFeed. Customer support has been extraordinary. They call just to make sure your problem hasn't recurred." - Comment from Public Forum
"I use IQ Feed, Great stuff as far as data analysis information, storage and retrieval is concerned." - Comment from Public Forum
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: Wed April 24, 2024 4:28 AM CFBB v1.2.0 9 ms.
© AderSoftware 2002-2003