qzaqza15
-Interested User-
Posts: 12
Joined: Aug 15, 2017
|
Posted: Aug 17, 2017 06:00 AM
Msg. 1 of 4
I have success in retrieve IQFeed news on Linux(Centos 6) and run it with python.
I set it to retrieve news every 1 mins and let it idle for around half an hour.
After come back to it, I discover the news is not in order according to their id.
You can refer to the attachment, those value of each news id is the number of repeated news received.
I am curious why the news retrieved is random instead of order by id or datetime.
Could you send me a documentation regarding to news API? Thank you.
File Attached: Screenshot_7.png (downloaded 1158 times)
|
qzaqza15
-Interested User-
Posts: 12
Joined: Aug 15, 2017
|
Posted: Aug 20, 2017 10:54 PM
Msg. 2 of 4
Besides that, I saw some retrieved news which title is 'Following Is a Test Release' with content 'Following Is a Test Release Aug. 20 .....'.
Are there any way to detect whether the news is for testing? or I can detect it whether have the same title or the story consists more than a number of 'TESTING' ?
Please provide your opinion if you have better solution for this. Thank you.
|
DTN_Tim Walter
-DTN Guru-
Posts: 1238
Joined: Apr 25, 2006
|
Posted: Aug 21, 2017 07:40 AM
Msg. 3 of 4
Good morning, My apologies for missing your earlier post. Stories can belong to multiple news sources, this is probably the source of the duplicates you are seeing. As to the order of the return, I am not sure. I am guessing that we don't want to spend the time and/or processing power sorting the request so that you can get the data back that much faster. Documentation is located at the link below. http://www.iqfeed.net/dev/api/docs/NewsLookupviaTCPIP.cfmAnd no, different sources do different things when testing their datafeeds, but they do not send us any flag of what is real versus a test that we, or you, could trigger off of. Tim
|
qzaqza15
-Interested User-
Posts: 12
Joined: Aug 15, 2017
|
Posted: Aug 21, 2017 11:10 PM
Msg. 4 of 4
Okay, thank you for your help.
|