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)




"I'm very glad I switched to IQFeed. It's working perfectly with no lag, even during fast market conditions." - Comment from Andy via Email
"Can I get another account from you? I am tired of ******* going down so often" - Comment from George
"I used to have *******, but they are way more money for the same thing. I have had no probs with data from DTN since switching over." - Comment from Public Forum Post
"Excellent datafeed !!!" - Comment from Arely
"I cannot believe what a difference it makes trading with ProphetX!" - Comment from Bruce in Los Angeles
"There is no doubt that IQFeed is the best data provider. I am very satisfied with your services. And IQFeed is the only one that I would recommend to my friends. Now, most of them are using your product in China." - Comment from Zhezhe
"I've been using Neoticker RT with IQFeed for two months, and I'm very happy with both of the products (I've had IQFeed for two years with very few complaints). The service from both companies is exceptional." - Comment from Public Forum
"The people at Nirvana have very nice things to say about your company and I can see why! Price and service is a potent combination." - Comment from Ed
"I ran your IQFeed DDE vs. my broker vs. a level II window for some slow-moving options. I would see the level II quote change, then your feed update instantaneously. My broker's DDE, however, would take as much as 30 seconds to update. I am not chasing milliseconds, but half a minute is unacceptable." - Comment from Rob
"As a past ******* customer(and not a happy one), IQ Feed by DTN is a much better and cheaper product with great customer support. I have had no problems at all since switching over." - Comment from Public Forum
Home  Search  Register  Login  Blogs Recent Posts

Information on DTN's Industries:
DTN Oil & Gas | DTN Trading | DTN Agriculture | DTN Weather
Follow DTN_IQFeed on Twitter
DTN.IQ/IQFeed on Twitter
DTN News and Analysis on Twitter
»Forums Index »IQFeed Developer »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: 5
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: 10
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: 5
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: 10
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 December 12, 2018 9:33 PM CFBB v1.2.0 0 ms.
© AderSoftware 2002-2003