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 just wanted to tell you what a fine job you have been doing. While *******, from what I hear, has been down and out, off and on, IQ feed has held like a champ this week." - Comment from Shirin
"Just a thank you for the very helpful and prompt assistance and services. You provided me with noticeably superior service in my setup compared to a couple of other options I had looked at." - Comment from John
"I am keeping IQFeed, much better reliabilty than *******. I may refer a few other people in the office to switch as well." - Comment from Don
"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
"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.
"There is no doubt that IQFeed is the best data provider. I am very satisfied with your services. And IQFeed is the only one that I would recommend to my friends. Now, most of them are using your product in China." - Comment from Zhezhe
"I just wanted to say how happy I am with your service. I was able to download the API docs last week and I was able to replicate Interactive Brokers historical bar queries and realtime bar queries over the weekend. That was about one of the fastest integrations that I've ever done and it works perfectly!!!!" - Comment from Jason via Email
"My broker in Davenport suggested I give you a try as he uses your service and says its the best." - Comment from Bill via RT Chat
"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
"I started a trial a few weeks back before the market went wild. DTN.IQ didn’t miss anything and beat my other provider. I decided to stay with you because of the great service through all the volatility." - Comment from Mike
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) »DTN.IQ Client Software Support »How gracefully reconnect to DTN server from VB code
Author Topic: How gracefully reconnect to DTN server from VB code (6 messages, Page 1 of 1)

newoleg1
-Interested User-
Posts: 11
Joined: Oct 29, 2007


Posted: Aug 27, 2008 08:37 PM          Msg. 1 of 6
For example I connected using IQFeedY1.RegisterClientApp(ProdID, ProdKey, ProdVersion) and for some reason I do not get quote from DTN. So I want to shot down IQConnect and restart it again from VB code.

Sometimes ago I tried using IQFeedY1.RemoveClientApp() and then call IQFeedY1.RegisterClientApp(ProdID, ProdKey, ProdVersion) again but it seems does not work.
Thanks
Oleg

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


Posted: Aug 28, 2008 08:52 AM          Msg. 2 of 6
IQConnect will shut down as soon as all Level 1 connections to it have been terminated (after at least one has connected). Your Feed Stats screen or the S,STATS message will identify how many are currently connected.

newoleg1
-Interested User-
Posts: 11
Joined: Oct 29, 2007


Posted: Aug 28, 2008 10:34 AM          Msg. 3 of 6
Hi Steve,
1. how I can force to drop all connection to IQConnect from code
2. how I can restart it again (call IQFeedY1.RegisterClientApp(ProdID, ProdKey, ProdVersion) ?)
Oleg

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


Posted: Aug 28, 2008 10:38 AM          Msg. 4 of 6
Since you are using the ActiveX control (IQFeedY), and it manages the socket connection for you, you will have to destroy your instance of the control and create a new one. Depending upon your setup, this might require you to destroy the form that you have the control on.

Once you have a new instance of the control, you can call RegisterClientApp to reconnect it.

newoleg1
-Interested User-
Posts: 11
Joined: Oct 29, 2007


Posted: Aug 28, 2008 12:37 PM          Msg. 5 of 6
It is just my question. How I can destroy IQFeeddY without destroying the form?

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


Posted: Aug 29, 2008 08:25 AM          Msg. 6 of 6
Oleg, that is going to be very difficult to answer without seeing some code from your app. If you want to email developer support with this, I might be able to offer some advice.
 

 

Time: Tue April 23, 2024 7:03 AM CFBB v1.2.0 9 ms.
© AderSoftware 2002-2003