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)




"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
"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 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
"This is an excellent value, the system is generous (allowing for 500 stocks) and stable (and really is tick-by-tick), and the support is fantastic." - Comment from Shirin via Email
"Very impressed with the quality of your feed - ******* is a real donkey in comparison." - Comment from A.C. via Email
"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
"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.
"I am enjoying the feed very much - so superior to the broker provided feed I was previously using." - Comment from George
"I am very pleased with the DTNIQ system for quotes and news." - Comment from Larry
"I "bracket trade" all major news releases and I have not found one lag or glitch with DTN.IQ feed. I am very comfortable with their feed under all typical news conditions (Fed releases, employment numbers, etc)." - 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 »Getting Regional quotes
Author Topic: Getting Regional quotes (3 messages, Page 1 of 1)

nsolot
-DTN Guru-
Posts: 273
Joined: Sep 4, 2004


Posted: Dec 2, 2004 09:08 AM          Msg. 1 of 3
Having some troubles. I'm using modified code based on the C++ Watchlist example, here's a snippet from StartStreaming():

m_soc.Send(request, sizeof(request)-1); //Get quotes, this works fine

char Regional[100];
memset(Regional, 0x00, sizeof(Regional));
strcpy(Regional, "S,REGON,QQQQ\n");
m_soc.Send(Regional, sizeof(Regional)-1);

Questions:

1. Am I doing something obviously wrong?
2. I'm assuming I should see messages being delivered to same same HandleMessage function as "Q" quote updates, but regional message should begin with "R". Am I mistaken?
3. I can't find anything in the API on GetLastError() or the return codes. Is this documented somewhere?

DTN_Tim_Russell
-IQ Server Developer-
Posts: 41
Joined: May 3, 2004

DTN Market Access, LLC.


Posted: Dec 3, 2004 09:54 AM          Msg. 2 of 3
Shouldn't those sizeof()'s be strlen()'s? Just wondering, not sure how IQFeed will respond to all those extraneous nulls.

Tim Russell
Software Engineer
DTN IQ & FinWin

nsolot
-DTN Guru-
Posts: 273
Joined: Sep 4, 2004


Posted: Dec 3, 2004 10:23 AM          Msg. 3 of 3
I agree. I was just following the sample code in the WatchList app provided.

I got it working by inserting some Sleep(200) between the Sends. I guess the connection manager needs a bit of time to process one request before I send another one.
 

 

Time: Fri April 26, 2024 9:25 AM CFBB v1.2.0 10 ms.
© AderSoftware 2002-2003