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 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 like you guys better than *******...much more stable and a whole lot fewer issues." - Comment from Philip
"Thank God for your Data Feed as the only Zippers I see are on my pants (LOL), and no more 200 pip spikes to mess up charts." - Comment from Spiro via Email
"I would just like to say that IQFeed version 4 is running very well and I am very happy with its performance. I would also like to extend a big thanks for the fast and efficient help that I always receive. My questions and concerns are always addressed promptly. Way to go!" - Comment from Josh in CO.
"Just a quick one to say I'm very impressed so far :) The documentation for developers is excellent and I've quickly managed to get an app written to do historical downloads. The system is very robust and pretty quick considering the extent of data that's available. The support guys have been very helpful too, in combination with the forums it's been plain sailing so far!" - Comment from Adam
"You have an excellent product !!!!!!" - Comment from Arely
"DTN has never given me problems. It is incredibly stable. In fact I've occasionally lost the data feed from Interactive Brokers, but still been able to trade because I'm getting good data from DTN." - Comment from Leighton
"I am enjoying the feed very much - so superior to the broker provided feed I was previously using." - Comment from George
"I used to have *******, but they are way more money for the same thing. I have had no probs with data from DTN since switching over." - Comment from Public Forum Post
"Everything is working great ! Very impressive client. The news refreshes better and is more pertinent than the ******* feed I paid $ 100/month for. I Also like the charts a lot." - Comment from Leon
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 »C# sample using sockets?
Author Topic: C# sample using sockets? (9 messages, Page 1 of 1)

svftech
-Interested User-
Posts: 5
Joined: Apr 17, 2009


Posted: Apr 17, 2009 10:27 AM          Msg. 1 of 9
Brand new to IQFEED as of today. I would like like to get streaming tick data using sockets. Could someone point me in the right direction as to how to get started? Ideally, it would be great if there was a simple sample app written in C# that did this. Also, is there a document that details this?

Thanks,
Steve

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

DTN IQFeed/DTN.IQ/DTN NxCore


Posted: Apr 17, 2009 10:36 AM          Msg. 2 of 9
Hi Steve and welcome to DTN!

The API for IQFeed is $300 per year and will give you all the documentation and sample apps you need to get started quickly. To sign up for the API, please visit www.iqfeed.net/dev. Fill out the online registration then fax or email the developer agreement in and we will get it turned on for you.

Jay Froscheiser
DTN - Trading Markets

jimc
-Interested User-
Posts: 35
Joined: Jan 22, 2008


Posted: Apr 17, 2009 10:46 AM          Msg. 3 of 9
I don't think there's a C#/sockets example in the SDK, but this old post should get you started: http://forums.dtnma.com/index.cfm?page=topic&topicID=284

Jim

svftech
-Interested User-
Posts: 5
Joined: Apr 17, 2009


Posted: Apr 17, 2009 11:38 AM          Msg. 4 of 9
Jim-

Worked like a charm! Thanks for the info. Looks very straightforward.

Steve

(Jay - I've signed up and ready to go, thx)

stargrazer
-DTN Guru-
Posts: 302
Joined: Jun 13, 2005

Right Here & Now


Posted: Apr 19, 2009 06:11 PM          Msg. 5 of 9
For some advanced code that works as an event driver, see https://sourceforge.net/projects/ousq/, or http://www.oneunified.net/blog/Trading/SmartQuant/Articles/index.blog. The code can be downloaded via the svn browser at SourceForge. The code package was built for SmartQuant, but is modularized enough that bits can be used elsewhere.

freemind
-Interested User-
Posts: 7
Joined: Jun 27, 2017


Posted: Jun 2, 2018 02:07 PM          Msg. 6 of 9
Hello @stargrazer,

Please have a look at this project. This library supports IQFeed 5.2. Fully written in C# in a highly efficient way. The code is production ready with unit and integration tests.

Feedbacks are welcome.

https://github.com/mathpaquette/IQFeed.CSharpApiClient

Thank you,
Mathieu

AK786
-Interested User-
Posts: 21
Joined: Jul 17, 2018


Posted: Jul 17, 2018 01:40 PM          Msg. 7 of 9
Mathieu,

First of all Thank you for your open source project.

Your code looks really good and I will probably add more to it. I downloaded your code.

For some reason, the .Net 2.0 Standard dependency is not detected.

On Compile i get the following error. I am using VS 2017 Community Edition. I have .Net 4.6.1 installed

Can you please guide me what is the easies way to get the code to compile. I was able to play with the examples posted by DTN - however yours is high performance IMO.

Error on Build

Severity Code Description Project File Line Suppression State
Error The current .NET SDK does not support targeting .NET Core 2.0. Either target .NET Core 1.1 or lower, or use a version of the .NET SDK that supports .NET Core 2.0. IQFeed.CSharpApiClient.Tests C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\Sdks\Microsoft.NET.Sdk\build\Microsoft.NET.TargetFrameworkInference.targets 112
Error The current .NET SDK does not support targeting .NET Core 2.0. Either target .NET Core 1.1 or lower, or use a version of the .NET SDK that supports .NET Core 2.0. IQFeed.CSharpApiClient.Tests.Integration C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\Sdks\Microsoft.NET.Sdk\build\Microsoft.NET.TargetFrameworkInference.targets 112
Error The current .NET SDK does not support targeting .NET Standard 2.0. Either target .NET Standard 1.6 or lower, or use a version of the .NET SDK that supports .NET Standard 2.0. IQFeed.CSharpApiClient C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\Sdks\Microsoft.NET.Sdk\build\Microsoft.NET.TargetFrameworkInference.targets 126


Thanks

AK786



File Attached: Net20Standard Dependency.png (downloaded 1199 times)

AK786
-Interested User-
Posts: 21
Joined: Jul 17, 2018


Posted: Jul 17, 2018 02:06 PM          Msg. 8 of 9

AK786
-Interested User-
Posts: 21
Joined: Jul 17, 2018


Posted: Jul 17, 2018 03:08 PM          Msg. 9 of 9
It got fixed after I updated VS 2017 with the latest NetCore Packages, thank you

AK786
 

 

Time: Wed April 24, 2024 5:13 PM CFBB v1.2.0 11 ms.
© AderSoftware 2002-2003