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
"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
"I have to tell you though that using the IQFeed API is about the easiest and cleanest I have seen for some time." - Comment from Jim
"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 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
"Everything is working great with the API. I love it." - Comment from Calvin
"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
"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
"Everything is working amazing now. I'm already impressed with the true-tick feed of IQFeed and it's ability to support my 480 symbol layout." - Comment from Tyler via Email
"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.
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: Wed May 1, 2024 3:01 PM CFBB v1.2.0 11 ms.
© AderSoftware 2002-2003