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)




"You have an excellent feed. Very few spikes for Spot Forex." - Comment from Public Forum Post
"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'm very glad I switched to IQFeed. It's working perfectly with no lag, even during fast market conditions." - Comment from Andy via Email
"I "bracket trade" all major news releases and I have not found one lag or glitch with DTN.IQ feed. I am very comfortable with their feed under all typical news conditions (Fed releases, employment numbers, etc)." - Comment from Public Forum
"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
"Can I get another account from you? I am tired of ******* going down so often" - Comment from George
"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 enjoying the feed very much - so superior to the broker provided feed I was previously using." - Comment from George
"I am very pleased with the DTNIQ system for quotes and news." - Comment from Larry
"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
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 »Using feed with database
Author Topic: Using feed with database (3 messages, Page 1 of 1)

d_allen
-Interested User-
Posts: 29
Joined: Nov 5, 2008


Posted: Jan 10, 2011 03:47 PM          Msg. 1 of 3
Hi,

I'm an entry level developer and with very little experience with DTN...I wanted to know if anyone had has any sample code that they can provide me with showing how you're using the feed in conjunction with a database.

I'm current "trying" to parse the feed and insert the the results in a MySQL database and I'm also querying the database and displaying the results on the front-end via a C# client app that I'm working on but I'm having a lot of trouble with performance, consistency, etc...

Basically I'd just like to look over some code with interaction between the a front-end, DNT and a database.

Thanks,

redblue
-Interested User-
Posts: 51
Joined: Oct 29, 2009


Posted: Feb 1, 2011 08:44 AM          Msg. 2 of 3
Hi,

Depending on a few factors (number of symbols, frequency of the data) it's likely that a formal SQL database on the same machine as your front end is the wrong solution.

From memory, make sure you are using the correct MySQL engine that allows for proper consistency (I can't remember which one). Performance wise, do bulk inserts rather than 1 row at a time etc.

If you *need* to use a database I'de suggest using a c# memory based object that you can add to 'cheaply' as data arrives, and use this object to populate the display. Every so often (via a different thread) you can dump the data to the database.

Regards,

Red.

d_allen
-Interested User-
Posts: 29
Joined: Nov 5, 2008


Posted: Feb 2, 2011 04:01 PM          Msg. 3 of 3
Hi,
Thanks Red, hey give you show me an example of what you're talking about?
 

 

Time: Sat May 18, 2024 1:42 AM CFBB v1.2.0 9 ms.
© AderSoftware 2002-2003