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 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
"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 will tell others who want to go into trading that DTN ProphetX is an invaluable tool, I don't think anyone can trade without it..." - Comment from Luther
"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
"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
"It’s so nice to be working with real professionals!" - Comment from Len
"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
"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 noticed that ******* quotes locked up shortly after the interest rate announcement yesterday while yours stayed stable." - Comment from Ron in Utah
"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
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 »NEW IQFEED FORUMS »IQFeed API Questions »Is it possible to set Level 2 depth levels to just broadcast the top 2 levels?
Author Topic: Is it possible to set Level 2 depth levels to just broadcast the top 2 levels? (6 messages, Page 1 of 1)

step999
-Interested User-
Posts: 16
Joined: May 6, 2022


Posted: Jan 19, 2024 05:00 PM          Msg. 1 of 6
IQfeed API question:
I only want the top two Level 2 levels for SPX options data in my application. Assuming I have real time level 2 data enabled, is there a way to limit the data broadcast from IQfeed to just the top 2 depth levels?
I see in the documentation:
WPL,[SYMBOL],[MaxPriceLevels]<CR><CR><LF>
Begins watching a symbol for depth Price Level updates.
[SYMBOL] - The symbol that you wish to receive updates on
[MaxPriceLevels] - Optional - Limits the number of price levels you will receive to only those within the top
[MaxPriceLevels] levels of depth.

Would it be possible to get an example command for "watching" only the two top depth levels for level 2 SPX option data?
Is it as simple as this?:
WPL,SPXoptionSymbol,2<CR><CR><LF>

Thanks

Update: It's been 14 days - is there anybody in here?

Edited by step999 on Jan 19, 2024 at 05:19 PM
Edited by step999 on Jan 19, 2024 at 05:37 PM
Edited by step999 on Jan 19, 2024 at 05:38 PM
Edited by step999 on Jan 19, 2024 at 06:38 PM
Edited by step999 on Jan 25, 2024 at 02:06 AM
Edited by step999 on Jan 31, 2024 at 05:12 PM
Edited by step999 on Feb 4, 2024 at 05:52 PM

mkvalor
-Interested User-
Posts: 26
Joined: Oct 6, 2020

Keep your tools sharp.


Posted: Feb 10, 2024 06:53 PM          Msg. 2 of 6
Quote: Would it be possible to get an example command for "watching" only the two top depth levels for level 2 SPX option data?
Is it as simple as this?:
WPL,SPXoptionSymbol,2<CR><CR><LF>


I don't have a subscription for options. However, when I tried your example during off hours for a futures contract, the summary lines returned comprised only two levels of bid and two levels of ask, as expected.

T,20240210 17:58:29
S,CLEAR DEPTH,@ES#,B,
S,CLEAR DEPTH,@ES#,A,
7,@ES#,B,5041.50,51,6,2,16:59:02.811840,2024-02-09,
7,@ES#,B,5041.25,22,3,2,16:59:00.820439,2024-02-09,
7,@ES#,A,5042.00,9,3,2,16:59:58.043198,2024-02-09,
7,@ES#,A,5042.25,20,3,2,16:59:03.275683,2024-02-09,

Looks like you might need to subscribe to data or find someone who has options data to be completely sure about those instruments.

-mkvalor

-Mark D. Valor

DTN_Gary_Stephen
-DTN Guru-
Posts: 396
Joined: Jul 3, 2019


Posted: Feb 12, 2024 08:17 AM          Msg. 3 of 6
I apologize for missing your message - my notifications were set up wrong, so I didn't know your message was waiting. In a word, yes, it's just WPL,symbol,2. We're also addressing an issue that will improve the working of price levels in general.

ADDED: I should clarify that options may not have price levels available, just order levels. See https://www.iqfeed.net/dev/upgrade.cfm?protocol=2 for a breakdown.



Sincerely,
Gary Stephen
DTN IQFeed Implementation Support Specialist

Edited by DTN_Gary_Stephen on Feb 13, 2024 at 10:29 AM

step999
-Interested User-
Posts: 16
Joined: May 6, 2022


Posted: Feb 12, 2024 07:06 PM          Msg. 4 of 6
Hi mkvalor,

Thanks very much for your reply. I will add the commands to my L2 code, and I think it should work based on your test. I was looking to see if I missed anything. It looks like Gary Stephen has replied also confirming the syntax and operation.

I appreciate your help, mkvalor.

Thanks

step999
-Interested User-
Posts: 16
Joined: May 6, 2022


Posted: Feb 12, 2024 07:09 PM          Msg. 5 of 6
Hi Gary,

Thanks very much for confirming the syntax and operation.

Glad you have fixed your notifications, and I appreciate your reply.

I don't quite understand how the price levels will be improved, but perhaps you can issue an explanation when the changes have been made.

Thank you.

DTN_Gary_Stephen
-DTN Guru-
Posts: 396
Joined: Jul 3, 2019


Posted: Feb 13, 2024 08:40 AM          Msg. 6 of 6
Yes, the update notes will include a detailed explanation of what was improved.

Sincerely,
Gary Stephen
DTN IQFeed Implementation Support Specialist
 

 

Time: Sat May 4, 2024 8:27 AM CFBB v1.2.0 12 ms.
© AderSoftware 2002-2003