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 Neoticker RT with IQFeed for two months, and I'm very happy with both of the products (I've had IQFeed for two years with very few complaints). The service from both companies is exceptional." - Comment from Public Forum
"I use IQ Feed, Great stuff as far as data analysis information, storage and retrieval is concerned." - Comment from Public Forum
"Interactive Brokers tick data was inconsistent, so I have switched to using DTN exclusively. It is great to no longer have to worry about my datafeed all day long." - Comment from Philippe
"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
"The people at Nirvana have very nice things to say about your company and I can see why! Price and service is a potent combination." - Comment from Ed
"IQ feed works very well, does not have all of the normal interruptions I have grown used to on *******" - Comment from Mark
"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
"You have an excellent product !!!!!!" - Comment from Arely
"Can I get another account from you? I am tired of ******* going down so often" - Comment from George
"You are much better than lawyers or the phone company because you answer the phone when I call! I just love your customer service." - Comment from Isreal
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: Wed April 24, 2024 1:44 AM CFBB v1.2.0 12 ms.
© AderSoftware 2002-2003