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 you want customer service that answers the phone, your best bet is IQFeed. I cannot stop praising them or their technical support. They are always there for you, and they are quick. I have used ****** too but the best value is IQFeed." - Comment from Public Forum
"For anyone considering using DTN.IQ for a data feed, my experience with the quality of data and the tech support has been very positive." - Comment from Public Forum
"If you are serious about your trading I would not rely on IB data for serious daytrading. Took me a while to justify the cost of IQ Feed and in the end, it's just a 2 point stop on ES. Better safe than sorry" - Comment from Public Forum
"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
"I'm satisfied with IQFeed. It's the most reliable and fastest quote feed I have ever used. Although I'm a resident in China, it's still very fast!" - Comment from Xiaofei
"Everything is working great with the API. I love it." - Comment from Calvin
"IQ feed is brilliant. The support is mind-bending. What service!" - Comment from Public Forum Post
"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.
"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 "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
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 1203 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: Fri April 26, 2024 11:17 PM CFBB v1.2.0 9 ms.
© AderSoftware 2002-2003