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
"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
"I like you guys better than *******...much more stable and a whole lot fewer issues." - Comment from Philip
"I am very pleased with the DTNIQ system for quotes and news." - Comment from Larry
"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.
"Awesome response, as usual. It is a sincere and refreshing pleasure to do business with DTN, compared to your competition." - Comment from Ryan
"Everything is working great with the API. I love it." - Comment from Calvin
"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
"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 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
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: Sat June 10, 2023 4:55 PM CFBB v1.2.0 16 ms.
© AderSoftware 2002-2003