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 am a hedge fund manager here. It’s funny, I have a Bloomberg terminal and a Bridge feed, but I still like having my DTN feed!" - Comment from Feras
"I just wanted to let you know how fast and easy I found it to integrate IQFeed into our existing Java code using your JNI client. In my experience, such things almost never go so smoothly - great job!" - Comment from Nate
"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
"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 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.
"I am very pleased with the DTNIQ system for quotes and news." - Comment from Larry
"It’s so nice to be working with real professionals!" - Comment from Len
"My broker in Davenport suggested I give you a try as he uses your service and says its the best." - Comment from Bill via RT Chat
"Excellent datafeed !!!" - Comment from Arely
"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 1205 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: Thu May 2, 2024 9:30 AM CFBB v1.2.0 15 ms.
© AderSoftware 2002-2003