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)




"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 had always used ******* but for the past 2 weeks have been trying DTN IQFeed. Customer support has been extraordinary. They call just to make sure your problem hasn't recurred." - Comment from Public Forum
"Boy, probably spent a thousand hours trying to get ******* API to work right. And now two hours to have something running with IQFeed. Hmmm, guess I was pretty stupid to fight rather than switch all this time. And have gotten more customer service from you guys already than total from them… in five years." - Comment from Jim
"Awesome response, as usual. It is a sincere and refreshing pleasure to do business with DTN, compared to your competition." - Comment from Ryan
"I ran your IQFeed DDE vs. my broker vs. a level II window for some slow-moving options. I would see the level II quote change, then your feed update instantaneously. My broker's DDE, however, would take as much as 30 seconds to update. I am not chasing milliseconds, but half a minute is unacceptable." - Comment from Rob
"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
"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
"With HUGE volume on AAPL and RIMM for 2 days, everyone in a trading room was whining about freezes, crashes and lag with *******, RealTick, TS and Cyber. InvestorRT with IQFeed was rock solid. I mean SOLID!" - Comment from Public IRC Chat
"IQFeed version 4 is a real screamer compared to anything else I have seen." - Comment from Tom
"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
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: Wed May 1, 2024 10:50 PM CFBB v1.2.0 19 ms.
© AderSoftware 2002-2003