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)




"Thank God for your Data Feed as the only Zippers I see are on my pants (LOL), and no more 200 pip spikes to mess up charts." - Comment from Spiro via Email
"Very impressed with the quality of your feed - ******* is a real donkey in comparison." - Comment from A.C. via Email
"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 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
"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
"IQ feed is brilliant. The support is mind-bending. What service!" - Comment from Public Forum Post
"It’s so nice to be working with real professionals!" - Comment from Len
"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
"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
"Version 4.0.0.2 has been working well for me and I appreciate that it is now a much tighter client to work with. I feel I can go to press with my own application and rely on a stable platform" - Comment from David in IA.
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 5:32 AM CFBB v1.2.0 14 ms.
© AderSoftware 2002-2003