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've been using IQFeed 4 in a multi-threaded situation for the last week or two on 2600 symbols or so with 100 simultaneous daily charts, and I have had 100% responsiveness." - Comment from Scott
"I've never had DTN go out on me since switching. ******* would go down a couple times every month when I was using them." - Comment from Bryce in AL.
"Just a thank you for the very helpful and prompt assistance and services. You provided me with noticeably superior service in my setup compared to a couple of other options I had looked at." - Comment from John
"I have been using IQFeed now for a few years in MultiCharts and I have zero complaints. Very, very rare to have any data hiccups or anything at all go wrong." - Comment from Public Forum
"IQ feed works very well, does not have all of the normal interruptions I have grown used to on *******" - Comment from Mark
"You are either overstaffed or people just don't have problems with your feed because customer support always answers the phone quickly." - Comment from Jay via Email
"I am enjoying the feed very much - so superior to the broker provided feed I was previously using." - Comment from George
"Thank you so much - awesome feed, awesome service!" - Comment from Greg via Email
"I was on the phone with a friend who uses CQG and right after the Fed announcement, CQG was as much as 30 seconds behind DTN.IQ. Some quotes were off by as much as 15-18 cents. Your feed never missed a beat." - Comment from Roger
"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  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 »Option Chain Contracts Filter
Author Topic: Option Chain Contracts Filter (5 messages, Page 1 of 1)

busitech
-Interested User-
Posts: 14
Joined: Apr 16, 2010


Posted: Aug 11, 2010 11:37 PM          Msg. 1 of 5
We are trying to use the Option Chain request with a Number of Contracts filter. We are requesting symbols for 2 puts and 2 calls which are out of the money, from up to two of the front months, depending on how close we are to expiration of all options in the current month... There comes a time late in the month when there are no August contracts available while you're still in August, for example.

The request is sent as follows, with possible months specified:

CEO,BAC,pc,,2,F,2,0,2,BAC

Instead of getting two puts and two calls, we receive get 6 of each:

CEO BAC,BAC1013H14,BAC1018I14,BAC1021H14,BAC1013H15,BAC1018I15,BAC1021H15,:,BAC1021T13,BAC1018U13,BAC1013T13,BAC1021T12,BAC1018U12,BAC1013T12,

I've also tried it with front months specified, and it returns the same list:

CEO,BAC,pc,HITU,,F,2,0,2,BAC

Please let me know if I should be doing something differently with respect to the command sent, or if there is a problem with the filter.

Thank you.

DTN_Steve_S
-DTN Guru-
Posts: 2093
Joined: Nov 21, 2005


Posted: Aug 12, 2010 08:14 AM          Msg. 2 of 5
The filter is working correctly. If you examine those contracts, you are only getting 2 strike prices out of the money (14 and 15 on the calls, 12 and 13 on the put).
Edited by DTN_Steve_S on Aug 12, 2010 at 08:15 AM

busitech
-Interested User-
Posts: 14
Joined: Apr 16, 2010


Posted: Aug 12, 2010 09:03 PM          Msg. 3 of 5
I understand that there are two strike prices, however the API says that filter value 2 filters the number of contracts (not the number of strike prices):

Quote: [Filter Value Two] - if [Filter Type] = "2" then the number of contracts out of the money


The way I understand a "contract" is to mean one expiration month and strike price combination, or in other words, one option symbol. This is also the way my broker understands this terminology.

Let me know DTN's definition of "contract" in terms of this filter....

In general, I think the API should err on the side of being more granular in the option chains query, because IQFeed is limited to the number of symbols we can follow at once. Our use of this filter is centered around quick access to a pair of puts and a pair of calls out of the money - four symbols total - to conserve our 1800 precious symbols. We will be maxing out the limit the way it is.

If I will receive no less than 6 symbols, then I will have to do further filtering after receiving the extra symbols. That is OK, but the API could be more flexible in that case. I can't specify one month, because this month's options might all be expired.

Thank you.

DTN_Steve_S
-DTN Guru-
Posts: 2093
Joined: Nov 21, 2005


Posted: Aug 13, 2010 11:27 AM          Msg. 4 of 5
Thanks for the feedback busitech. It sounds like you would prefer that the chains lookup only return the first 2 contract (ordered by expiration date). Is this correct? We will take this into consideration for future releases. My initial thoughts is that it will require also adding more filtering options than are currently available in the feed (for example, the ability to filter weekly or binary options would be needed) in order to satisfy the needs of those who prefer the chains the way they are currently.

You are correct that the documentation is not currently correct in terms of saying that x nuymber of contracts will be returned. It should say that it will return all contracts within 2 strike prices out of the money. A contract is a single symbol. The number of contracts you receive will depend on root symbol you are requesting (but there is no way to determine how many will be returned before making the request). The servers take into account only the strike price when determining in/out of the money filters. As a result, if you only want strikes for the front month out of the money, then you should specify 1 near month (the servers should not be returning expired contracts). The other option would be to do additional filtering yourself based upon your needs.

smt52
-Interested User-
Posts: 31
Joined: Feb 23, 2009


Posted: Oct 1, 2010 06:04 AM          Msg. 5 of 5
> (for example, the ability to filter weekly or binary options would be needed)

I would love the ability to filter out weekly or binary options, these are a real headache to handle in code, as every single symbol needs to be tweaked by hand to make it work. Nasty.
 

 

Time: Mon May 27, 2024 1:49 PM CFBB v1.2.0 12 ms.
© AderSoftware 2002-2003