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)




"Very impressed with the quality of your feed - ******* is a real donkey in comparison." - Comment from A.C. via Email
"I noticed that ******* quotes locked up shortly after the interest rate announcement yesterday while yours stayed stable." - Comment from Ron in Utah
"Everything is working great with the API. I love it." - Comment from Calvin
"I am a hedge fund manager here. It’s funny, I have a Bloomberg terminal and a Bridge feed, but I still like having my DTN feed!" - Comment from Feras
"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
"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 either overstaffed or people just don't have problems with your feed because customer support always answers the phone quickly." - Comment from Jay 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.
"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
"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 »Archive (2017 and earlier) »IQFeed Developer Support »Sample console application using COM
Author Topic: Sample console application using COM (5 messages, Page 1 of 1)

xen
-Interested User-
Posts: 15
Joined: Nov 12, 2006


Posted: Nov 12, 2006 09:29 PM          Msg. 1 of 5
Hi All,

I was wondering if anyone had a sample app that uses COM for Level I/II and History? I've got a little C++ console app running using the TCP/IP interface but I think the COM interface would be much quicker and I wouldn't have to parse all the data. I know the supplied sample C++ applications show this but I was looking for something much simpler, perhaps something that didn't have all the GUI stuff wrapped with it. I'm not really familiar with all the VC++ workings.

Thanks in advance,
Joseph

DTN_Steve_S
-DTN Guru-
Posts: 2093
Joined: Nov 21, 2005


Posted: Nov 13, 2006 05:13 PM          Msg. 2 of 5
Joseph, we (DTN) currently do not have any example code for what you are asking.

I will check into this a bit more tomorrow

TLikins
-Interested User-
Posts: 32
Joined: Jul 11, 2005

Howdy


Posted: Nov 20, 2006 11:59 AM          Msg. 3 of 5
Hi Joseph,

I was wondering why you think the COM interface is faster than the TCPIP interface.
It would seem to me that a COM object talking to DTN would still have to use the
TCPIP interface since it goes through the internet. I think that due to all of the marshalling of the data through a COM object, it is inherently SLOWER than the TCPIP
socket. I don't know the exact methods that DTN uses to talk to the servers but I would bet that they use the TCPIP one for the reason mentioned above. Please explain if I
am incorrect, this COM stuff is pretty complex.

Good Luck

xen
-Interested User-
Posts: 15
Joined: Nov 12, 2006


Posted: Nov 21, 2006 10:34 PM          Msg. 4 of 5
TLikins,

Thanks for the response, yeah I didn't fully realize that I would still be doing string tokening on the Level I data even with the COM object. That was my only reason for wanting the object...but it looks like that is unavoidable.

TLikins
-Interested User-
Posts: 32
Joined: Jul 11, 2005

Howdy


Posted: Nov 22, 2006 12:35 PM          Msg. 5 of 5
Joseph,

I don't know what development platform you use but most modern tools have things like
list objects that automatically parse the data for you. I use the Borland C++ Builder for my
development. One of the objects that I use is a string list component. One of the properties
is the word separator character. By specifying what character you want to use to split a
string, ie space or coma, it becomes very easy to select the string list index for the field
you want. I don't know how Microsoft does this with their IDE but there must be something
similar.

Good luck
 

 

Time: Fri May 3, 2024 2:58 PM CFBB v1.2.0 9 ms.
© AderSoftware 2002-2003