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 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
"You have an excellent feed. Very few spikes for Spot Forex." - Comment from Public Forum Post
"I was on the phone with a friend who uses CQG and right after the Fed announcement, CQG was as much as 30 seconds behind DTN.IQ. Some quotes were off by as much as 15-18 cents. Your feed never missed a beat." - Comment from Roger
"I'm very glad I switched to IQFeed. It's working perfectly with no lag, even during fast market conditions." - Comment from Andy via Email
"Very impressed with the quality of your feed - ******* is a real donkey in comparison." - Comment from A.C. via Email
"I'm satisfied with IQFeed. It's the most reliable and fastest quote feed I have ever used. Although I'm a resident in China, it's still very fast!" - Comment from Xiaofei
"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
"Thanks for following up with me. You guys do a great job in tech support." - Comment from Phelps
"DTN feed was the only feed that consistently matched Bloomberg feed for BID/ASK data verification work these past years......DTN feed is a must for my supply & demand based trading using Cumulative Delta" - Comment from Public Forum Post
"IQ feed works very well, does not have all of the normal interruptions I have grown used to on *******" - Comment from Mark
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 »API questions
Author Topic: API questions (7 messages, Page 1 of 1)

pwave
-Interested User-
Posts: 17
Joined: Feb 20, 2015


Posted: Feb 27, 2015 02:09 AM          Msg. 1 of 7
Hello,
I wanted to clarify my understanding of the API. I have some questions as follows:

1. If IQConnect is already connected to the servers since another app (say DTN.IQ) initiated the connection and is watching some symbols via its own watch list, then I presume that my app (to be clear, "my app" is an app being developed by me for some proprietary processing) does not need to connect to IQConnect on the admin port and register the product ID and so on and issue the "S,CONNECT" command. Correct?

2. I presume in above case, my app which is interested in just symbol trades, can simply connect to the Level 1 port on startup, issue a tSYMBOL command for all symbols of interest and start acting on messages received. Correct?

3. When my app issues a "S,UNWATCH ALL" command, I presume that since DTN.IQ may still be watching symbols, the symbol data continues to stream between the servers and DTN.IQ. In other words, symbol data continues to follow between IQ servers and IQConnect as long as there is at least one app watching the symbol. Correct?

Thanks.

DTN_Tim Walter
-DTN Guru-
Posts: 1238
Joined: Apr 25, 2006


Posted: Feb 27, 2015 08:09 AM          Msg. 2 of 7
Good morning,

1. It is not required, but it is important from the side of troubleshooting any issues down the line.
2. True
3. Correct, each socket connection to level one is individual to itself, and the unwatch all only unwatches the symbols on that specific connection.

Tim

pwave
-Interested User-
Posts: 17
Joined: Feb 20, 2015


Posted: Feb 27, 2015 10:28 AM          Msg. 3 of 7
Tim, thank you clearing my confusion on #1. While the API documents call for app to register via admin port, quite a few of the sample apps provided do not do that and on startup they simply connect to the port of interest and do whatever it is they need to do. I will take your advice on adding that registration functionality for purposes of troubleshooting issues down the line even though at the moment I do not know how that helps with troubleshooting. Regards.

pwave
-Interested User-
Posts: 17
Joined: Feb 20, 2015


Posted: Feb 27, 2015 11:40 AM          Msg. 4 of 7
I wanted to understand the clock used in the timestamps in LastTimeMS and MostRecentTradeTimeMS fields. The API documentation says "provided by excchange or 3rd party".

1. Who is the "3rd party"? Is that CTS and UTP for equities?

2. Presuming "3rd party" is CTS/UTP, there seem to be at least 3 choices for the timestamp provider: (a) exchange clock, (b) CTS/UTP clock, (c) DTN server clock. Whose clock is being used for the timestamps?

Thanks.

DTN_Tim Walter
-DTN Guru-
Posts: 1238
Joined: Apr 25, 2006


Posted: Feb 27, 2015 12:45 PM          Msg. 5 of 7
It is the exchange desk that marks the time, as it is the actual time of the trade occurring. The times are not representative of the time it was broadcast to or from our servers.

All time stamps are presented in EST throughout the system.

Tim

pwave
-Interested User-
Posts: 17
Joined: Feb 20, 2015


Posted: Mar 1, 2015 12:16 PM          Msg. 6 of 7
A correction to the API spec: the description on dynamic fields sets in API help page DynamicFieldsets.html at the bottom says that fieldset customization results in response S,CURRENT UPDATE FIELDNAMES,Symbol,Last,Percent Change,Change,<CR><LF>. I am finding that this to be <LF> terminated and not <CR><LF> terminated.

DTN_Tim Walter
-DTN Guru-
Posts: 1238
Joined: Apr 25, 2006


Posted: Mar 1, 2015 11:20 PM          Msg. 7 of 7
That appears consistent with what the sample apps are firing off as well. I'll look at double checking that and getting it and any other <CR> issues addressed.

Thanks.

Tim
 

 

Time: Sat May 18, 2024 1:04 PM CFBB v1.2.0 11 ms.
© AderSoftware 2002-2003