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)




"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
"With HUGE volume on AAPL and RIMM for 2 days, everyone in a trading room was whining about freezes, crashes and lag with *******, RealTick, TS and Cyber. InvestorRT with IQFeed was rock solid. I mean SOLID!" - Comment from Public IRC Chat
"I was with ******* for 4 years at $230 a month, this is a huge savings for me, GOD BLESS YOU PEOPLE," - Comment from T.S. via Email
"Thanks for all of your help. Great customer service deserves to be recognized which one the reasons I've been a customer of DTN for over 10 years!" - Comment from Stuart
"If you want customer service that answers the phone, your best bet is IQFeed. I cannot stop praising them or their technical support. They are always there for you, and they are quick. I have used ****** too but the best value is IQFeed." - Comment from Public Forum
"I am enjoying the feed very much - so superior to the broker provided feed I was previously using." - Comment from George
"I started a trial a few weeks back before the market went wild. DTN.IQ didn’t miss anything and beat my other provider. I decided to stay with you because of the great service through all the volatility." - Comment from Mike
"It’s so nice to be working with real professionals!" - Comment from Len
"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
"I just wanted to let you know how fast and easy I found it to integrate IQFeed into our existing Java code using your JNI client. In my experience, such things almost never go so smoothly - great job!" - Comment from Nate
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 April 25, 2024 9:57 AM CFBB v1.2.0 11 ms.
© AderSoftware 2002-2003