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)




"Everything is working great with the API. I love it." - Comment from Calvin
"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 someone needs the best quality data and backfill beyond what their broker provides at a rate that is the best in the industry, I highly recommend IQFeed." - Comment from Josh via Public Forum
"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
"Excellent datafeed !!!" - Comment from Arely
"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
"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
"After all the anxiety I had with my previous data provider it is a relief not to have to worry about data speed and integrity." - Comment from Eamonn
"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
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 »Level 1 Socket Java App (Fundamental Data Question)
Author Topic: Level 1 Socket Java App (Fundamental Data Question) (1 messages, Page 1 of 1)

codingcorners
-Interested User-
Posts: 1
Joined: Aug 5, 2016


Posted: Aug 5, 2016 09:03 AM          Msg. 1 of 1
Hi all, I'm building a Java app for a client based off of the same idea as the sample Level1Socket.java app in the developer examples. The gist of it is basically a socket listener app (command line, no GUI) that..

1. Sets the fieldset to 'Symbol','Last','Total Volume', 'High','Low','Number of Trades Today', and 'VWAP'.

2. It then loads in a CSV 'symbol loader' file that has one symbol per line (about 600 in total right now, but the plan is for there to be closer to 6,000 when at expected capacity) and runs the 'w[SYMBOL]' Watch command on each of them.

3. Next it stores the returned summary lines (either P or Q) in an ArrayList. It ignores all T, F, and n lines.

4. A separate Timer thread every three seconds will loop through this ArrayList and save the data to a MySQL database, Updating if the Symbol already has a row in there, or Inserting if not.


My question is, there's a lot of data that I don't necessarily need to come through the feed. The 'F' Fundamental lines in particular - is there any way to turn those off like there is with Timestamps and News lines?

Another question - Is this the best way to get the most current data from IQFeed in realtime? I was hoping there might be a way to do a batch poll of a bunch of Symbols, specifically looking for a certain fieldset, and to be able to re-poll that data every 2 seconds to look for change, rather than wait on the variability of a socket session to spit out data (which is providing some inconsistent results when we go to save data to our DB).

I'm coming to find that I can't get enough good data saved from the feed to do accurate data processing into my database table, and I'm guessing it's got to be because there's too much other data that the reader is dealing with to be able to keep up with the data as it's coming down the pipeline, so I'm trying to find a way to free it up and save some bandwidth.

Any help would be greatly appreciated, I've been banging my head against the wall all night on this! :)
 

 

Time: Fri May 17, 2024 4:06 AM CFBB v1.2.0 58 ms.
© AderSoftware 2002-2003