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)




"Thanks for all of your help. Great customer service deserves to be recognized which one the reasons I've been a customer of DTN for over 10 years!" - Comment from Stuart
"I am very happy I changed. I love the product, but more so I am thrilled with Tech Support. You are knowledgeable, polite, pleasant and professional." - Comment from Pat
"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
"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
"And by the way, have to say this. I love the IQFeed software. It's rock solid and it has a really nice API." - Comment from Thomas via RT Chat
"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
"Thanks for the great product and support. During this week of high volume trading, my QuoteTracker + IQ Feed setup never missed a beat. Also, thanks for your swiftness in responding to data issues. I was on ******* for a few years before I made the switch over early this year, and wish I had done it a long time ago." - Comment from Ken
"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 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
"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.
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 »Historical Date with ms. and some other things
Author Topic: Historical Date with ms. and some other things (16 messages, Page 1 of 1)

Ariloum
-Interested User-
Posts: 20
Joined: Oct 22, 2014


Posted: Oct 22, 2014 02:16 AM          Msg. 1 of 16
Hello, I've done implementing basic iqfeed service with using java and there's only a few things is left to make this stage cleared, so some help would be very appreciated.

I didnt find the answers yet for those questions:

1. How could I receive historical date with millis? This request doesn't works with history data:
"S,SELECT UPDATE FIELDS," +
"TickID,Symbol," +
"Ask,Bid,Ask Size,Bid Size," +
"Most Recent Trade,Most Recent Trade Size,Last Trade Date,Most Recent Trade TimeMS,Most Recent Trade Conditions,Open Interest,Delay,\r\n"

2. How could I receive each trade initiator for historical data?
If I get it right, it's the symbol at the end of the time graph and looks like this "12:33:44o".

3. What does mean each symbol at the end of time for question2 : o b t c (I guess o&b is bid and offer, but what is t&c)?

I think this is all I need to know to put my anchor there.

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


Posted: Oct 22, 2014 04:22 AM          Msg. 2 of 16
Hello, to pull millisecond history, or any newer feature you may want to use, you need to be sure that for each connection to IQFeed that you are updating the protocol to the current protocol. In this case, you want to set the protocol to 5.1 and then history will format the milliseconds into your return on tick history.

The time with an appended character is a 4.9 function, where o is open, t is a trade, and c is a close. This was broken out in later protocols. Now you will have a message contents field when dealing with level one data. As to history, we do not store historical bid or ask data, so all that you will see there are trades. Trade conditions are included for if you would like to further filter that data.

Let me know if anything else comes up,

Tim

Ariloum
-Interested User-
Posts: 20
Joined: Oct 22, 2014


Posted: Oct 22, 2014 07:30 AM          Msg. 3 of 16
Hi, Tim,
thanx for the reply.

I've tried setting up protocol 5.1 and there comes millis.

I though "-VERSION" parameter is the one I'm launching the iqconnector with was the protocol version, is there a way to set the protocol like this or I must set it manually for each sockets (re)connections?

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


Posted: Oct 22, 2014 07:33 AM          Msg. 4 of 16
-VERSION is intended for the version of your software. There is not currently a way to set a default protocol, so it does have to be sent for each connection, sorry.

Tim

Ariloum
-Interested User-
Posts: 20
Joined: Oct 22, 2014


Posted: Oct 22, 2014 10:53 AM          Msg. 5 of 16
I see, thank you for the help.
Edited by Ariloum on Oct 22, 2014 at 10:57 AM

Ariloum
-Interested User-
Posts: 20
Joined: Oct 22, 2014


Posted: Dec 8, 2014 07:49 AM          Msg. 6 of 16
Hello again, I've got another question coming : is there some way to get each trade type/direction - is it was a buy or a sell?
I need to know what side that trade hits - bid or offer for both historical data and realtime. I guess there could be some protocol syntax differences for that, please let me know if any.

Thanx,
Ari.

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


Posted: Dec 8, 2014 08:01 AM          Msg. 7 of 16
Good morning,

There is not a field for this, but when looking at a tick you can compare the price it was sold at to the bid or ask price at the time to get an idea of where the trade was made.

Tim

Ariloum
-Interested User-
Posts: 20
Joined: Oct 22, 2014


Posted: Mar 3, 2015 09:28 AM          Msg. 8 of 16
Thanx, Tim, I'm almost done.. the only problem I have with approach like that is trades at the middle of the spread (like on SPY there's a lot of trades with 0.005 cents step).

And I've another question :
is it possible to get not only best bid/offer price for trades, but it's size also?

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


Posted: Mar 3, 2015 02:45 PM          Msg. 9 of 16
I don't know if a better answer exists for the first one beyond what we have discussed.

On the second, we have bid and ask size in our live data, but not in our historical data.

Tim

Ariloum
-Interested User-
Posts: 20
Joined: Oct 22, 2014


Posted: Mar 10, 2015 09:35 AM          Msg. 10 of 16
Hi, Tim, thanx for the answer.
I thought that I didn't understood your answer right (about best bid/offer sizes).

Then this question comes: why don't you have such basic parameters in historical data? Your protocol have many other much useless (imo) fields but miss one of the main.
Edited by Ariloum on Mar 10, 2015 at 09:35 AM

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


Posted: Mar 10, 2015 10:00 AM          Msg. 11 of 16
I do not know the exacts behind that decision, but our product management team does read each post that is placed on our forums, so maybe it will be something we can look into adding at some point in the future given this request.

Tim

Ariloum
-Interested User-
Posts: 20
Joined: Oct 22, 2014


Posted: Mar 10, 2015 10:20 AM          Msg. 12 of 16
I see, thank you for the help.

DTN_Jay_Froscheiser
-VP, Product Operations-
Posts: 1746
Joined: May 3, 2004

DTN IQFeed/DTN.IQ/DTN NxCore


Posted: Mar 10, 2015 03:09 PM          Msg. 13 of 16
Quote: Hi, Tim, thanx for the answer.
I thought that I didn't understood your answer right (about best bid/offer sizes).

Then this question comes: why don't you have such basic parameters in historical data? Your protocol have many other much useless (imo) fields but miss one of the main.
Edited by Ariloum on Mar 10, 2015 at 09:35 AM
--- Original message by Ariloum on Mar 10, 2015 09:35 AM
Ariloum,

Thanks for the feedback. In our ~15 years of providing IQFeed, we have only had a few requests for the Bid/Ask size at the time of the trade to be part of history. Thus, it hasn't made it to the top of the priority list to provide. However, we take every request/suggestion seriously and continue to evaluate our priorities.

Jay Froscheiser
Vice President, Active Trader Products

jonnyb
-DTN Evangelist-
Posts: 122
Joined: Aug 15, 2012


Posted: Mar 13, 2015 02:38 PM          Msg. 14 of 16
Ariloum- Tim and/or Jay can correct me if I'm wrong, but I don't believe the bid/ask data will be useful to you in determining which side of the market the trade occurred on due to the fact that it's the bid/ask after the trade (not the b/a just prior to the trade). That's my understanding at least from previous forum posts.

Ariloum
-Interested User-
Posts: 20
Joined: Oct 22, 2014


Posted: Mar 13, 2015 06:35 PM          Msg. 15 of 16
jonnyb,
that's right, but I need bid and ask size for another thing - I need it for icebergs detection (darkpool orders).

Ariloum
-Interested User-
Posts: 20
Joined: Oct 22, 2014


Posted: Mar 13, 2015 06:51 PM          Msg. 16 of 16
Hi, Jay, thank you for the information.
Maybe there's not that much requests similar to mine becouse there's a few other datafeeds who already have it.

I know that it's not easy to implement, and the priority is low, but I will hope :)
Edited by Ariloum on Mar 13, 2015 at 06:52 PM
 

 

Time: Wed April 24, 2024 3:05 AM CFBB v1.2.0 11 ms.
© AderSoftware 2002-2003