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)




"Boy, probably spent a thousand hours trying to get ******* API to work right. And now two hours to have something running with IQFeed. Hmmm, guess I was pretty stupid to fight rather than switch all this time. And have gotten more customer service from you guys already than total from them… in five years." - Comment from Jim
"I would just like to say that IQFeed version 4 is running very well and I am very happy with its performance. I would also like to extend a big thanks for the fast and efficient help that I always receive. My questions and concerns are always addressed promptly. Way to go!" - Comment from Josh in CO.
"You have an excellent product !!!!!!" - Comment from Arely
"This beats the pants off CQG, I am definitely switching to the ProphetX 3.0!" - Comment from Stephen
"Thanks for the great product and support. During this week of high volume trading, my QuoteTracker + IQ Feed setup never missed a beat. Also, thanks for your swiftness in responding to data issues. I was on ******* for a few years before I made the switch over early this year, and wish I had done it a long time ago." - Comment from Ken
"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
"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
"You have an excellent feed. Very few spikes for Spot Forex." - Comment from Public Forum Post
"I cannot believe what a difference it makes trading with ProphetX!" - Comment from Bruce in Los Angeles
"Just a quick one to say I'm very impressed so far :) The documentation for developers is excellent and I've quickly managed to get an app written to do historical downloads. The system is very robust and pretty quick considering the extent of data that's available. The support guys have been very helpful too, in combination with the forums it's been plain sailing so far!" - Comment from Adam
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 »Issue using CEO command to download options tickers
Author Topic: Issue using CEO command to download options tickers (5 messages, Page 1 of 1)

Mark Reiten
-Interested User-
Posts: 2
Joined: Jun 6, 2022


Posted: Jun 6, 2022 10:44 PM          Msg. 1 of 5
I am using the CEO command as documented in the attached image to retrieve equity options using TickStr as a variable and I seek 2 near months with 10 in the money and 10 out of the money options contracts for both puts and calls. This command string complies with your documentation for protocol 6.1 but the command does not generate any returned data. What am I doing wrong?

sCommand = "CEO," & TickStr & ",pc," & " ," & "2," & "2," & "10," & "10," & "MWR," & "1" & vbCrLf

Mark Reiten



File Attached: CEO command usage.png (downloaded 395 times)

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


Posted: Jun 7, 2022 01:58 PM          Msg. 2 of 5
Mark,

That command works successfully for me:

CEO,AAPL,pc,,2,2,10,10,MWR,1

Without knowing more, I can think of two possible problems:

1. Are you sending the SET PROTOCOL command after you connect? This command will fail in the default protocol of 4.9.

2. Are you using the command with index/equity symbols? CEO will return NO_DATA if the symbol is not of that type, such as a future.

Hope this helps! Let me know if I can help further!

Sincerely,
Gary Stephen
DTN IQFeed Implementation Support Specialist

Mark Reiten
-Interested User-
Posts: 2
Joined: Jun 6, 2022


Posted: Jun 11, 2022 05:37 PM          Msg. 3 of 5
Gary,

It checked the protocol and I am using 6.1 which I had used successfully for a long time. It still does not work.

I went back to the VB source code for OptionChainSocket and ran utility to see if it worked correctly. When I set the ticker to apple and the criteria settings to both put/call checked, near months = 2, in/out of money checked and 10in and 10 out of the money contracts the OptionChainSocket utility is sending this string:

CEO,aapl,pc,,2,2,10,10,,F

The response from the system is

E
!SYNTAX_ERROR!
!ENDMSG!

Is my account set up correctly? The behavior of the system seems to have changed...

Regards,
Mark

Mark Reiten

altmany
-Interested User-
Posts: 73
Joined: Jul 30, 2018

IQML - IQFeed-MATLAB connector


Posted: Jun 12, 2022 02:43 AM          Msg. 4 of 5
Mark - you have 2 bugs in your code:
1. The symbol name needs to be in UPPERCASE, i.e. "AAPL" not "aapl"
2. The IncludeNonStandardOptions parameter needs to be 0 or 1 (not "F")

See http://www.iqfeed.net/dev/api/docs/OptionChainsviaTCPIP.cfm

Note that the parameters order in the CEO command changed in protocol 6.1, so if you need to support earlier protocol versions you need to change the parameters order accordingly.

Yair Altman
IQML - IQFeed-MATLAB connector
https://UndocumentedMatlab.com/IQML

I am not a DTN employee; my post reflects my personal opinion

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


Posted: Jun 15, 2022 10:06 AM          Msg. 5 of 5
Mark,

Poster altmany is correct on both counts. API commands are case-sensitive, and IncludeStandardOptions needs to be 1 to include them, or 0 to exclude. (This can also be omitted if you want 0, because that is the default.) This command should return your desired results:

CEO,AAPL,pc,,2,2,10,10,,1

Sincerely,
Gary Stephen
DTN IQFeed Implementation Support Specialist
 

 

Time: Wed April 24, 2024 11:57 PM CFBB v1.2.0 10 ms.
© AderSoftware 2002-2003