mathpaquette / IQFeed.CSharpApiClient

IQFeed.CSharpApiClient is fastest and the most well-designed C# DTN IQFeed socket API connector available
MIT License
120 stars 43 forks source link

Add news support #51

Closed mathpaquette closed 4 years ago

mathpaquette commented 4 years ago

@mrut2pac interested in it?

jduke99 commented 4 years ago

Any progress on the News Example? eg getting historical news or streaming news

mathpaquette commented 4 years ago

I can manage that next week.

jduke99 commented 4 years ago

Much appreciated!

(Beggars cannot be choosers but a historical example with date filters would be most appreciated!)

mathpaquette commented 4 years ago

@jduke99 are you using C# or Python

mathpaquette commented 4 years ago

@jduke99 Dont forget to star the project. Example in c# for Python?

jduke99 commented 4 years ago

@mathpaquette C# please

Starred! Thank you so much for this project!

mathpaquette commented 4 years ago

@jduke99 added support for news! please review https://github.com/mathpaquette/IQFeed.CSharpApiClient/blob/master/src/IQFeed.CSharpApiClient.Tests.Integration/Lookup/News/NewsFacadeTests.cs for some example!

jduke99 commented 4 years ago

Thank you @mathpaquette . All the tests seem to be running fine. Being honest, even looking at the facade test, i'm still not able to build my Example.cs to quite work properly with symbols and dates. Can you provide a call example with multiple symbols and dates for eg.

var newsMessages = await lookupClient.News.GetNewsHeadlinesAsync(<WHAT GOES HERE?>)

jduke99 commented 4 years ago

I get a cannot convert string to string[] error when i try to put in an array of symbols. i am not a c# guy, apologies if this should be obvious.

mathpaquette commented 4 years ago

Hi Jon,

Could you please be more precise in what you trying to achieve. Ill try to help you with that.

Thanks, Mathieu

From: Jon Duke notifications@github.com Sent: Sunday, June 14, 2020 11:49 PM To: mathpaquette/IQFeed.CSharpApiClient IQFeed.CSharpApiClient@noreply.github.com Cc: Mathieu Paquette me@mathpaquette.com; Mention mention@noreply.github.com Subject: Re: [mathpaquette/IQFeed.CSharpApiClient] Add news support (#51)

I seem to get a cannot convert string to string[] error when i try to put in an array of symbols. i am not a c# guru, apologies if this should be obvious.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/mathpaquette/IQFeed.CSharpApiClient/issues/51#issuecomment-643887290, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABBICN5DEDDTUPJZBETMEOTRWWK2JANCNFSM4I55SVBQ.

jduke99 commented 4 years ago

Thanks so much. An example would just be pulling news stories on AAPL from 2/1/2020 to 4/1/2020.

ps. I was wondering if your offer to make a python example is still available? In particular looking for pull as above as well as streaming level 1 news example in python.