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've been using IQFeed 4 in a multi-threaded situation for the last week or two on 2600 symbols or so with 100 simultaneous daily charts, and I have had 100% responsiveness." - Comment from Scott
"I will tell others who want to go into trading that DTN ProphetX is an invaluable tool, I don't think anyone can trade without it..." - Comment from Luther
"I have been using IQFeed now for a few years in MultiCharts and I have zero complaints. Very, very rare to have any data hiccups or anything at all go wrong." - Comment from Public Forum
"Just a quick one to say I'm very impressed so far :) The documentation for developers is excellent and I've quickly managed to get an app written to do historical downloads. The system is very robust and pretty quick considering the extent of data that's available. The support guys have been very helpful too, in combination with the forums it's been plain sailing so far!" - Comment from Adam
"I like you guys better than *******...much more stable and a whole lot fewer issues." - Comment from Philip
"I am keeping IQFeed, much better reliabilty than *******. I may refer a few other people in the office to switch as well." - Comment from Don
"Thank God for your Data Feed as the only Zippers I see are on my pants (LOL), and no more 200 pip spikes to mess up charts." - Comment from Spiro via Email
"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
"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
"Just a thank you for the very helpful and prompt assistance and services. You provided me with noticeably superior service in my setup compared to a couple of other options I had looked at." - Comment from John
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
Viewing User Profile for: PyDev
About Contact
Joined: Mar 10, 2019 08:00 PM
Last Post: Mar 14, 2019 11:48 PM
Last Visit: Mar 16, 2019 12:58 PM
Website:  
Location:
Occupation:
Interests:
AIM:
ICQ:
MSN IM:
Yahoo IM:
Post Statistics
PyDev has contributed to 4 posts out of 21185 total posts (0.02%) in 1,875 days (0.00 posts per day).

20 Most recent posts:

Hi,

I'd like to make a request to add functionality that will enable retrieving historical news by title. Currently, we're able to use NHL to request past news by symbol and or date time range. An additional feature that would be really helpful is to be able to request historical news by title.

For example, if I were doing analysis on US GDP, I would send a NHL by title request with US as symbol and GDP
as title. Ideally this would return a list of past US GDP dates, times, headlines,etc.

Naturally, due to the structure of this request, it's designed for synchronous events such as economic news. Any economic data including WTI and Nat. Gas inventory reports would be great.

Thanks

IQFeed Developer Support » NHL News Headlines Request Mar 14, 2019 01:05 PM (Total replies: 5)

altmany,

Thanks for the clarity. I was running NCG once but misinterpreted use in relation to NHL.

IQFeed Developer Support » NHL News Headlines Request Mar 11, 2019 09:45 AM (Total replies: 5)

Steve,

Thanks. The protocol wasn't the issue. Before increasing the precision of the protocol I used only the major and minor version and got the same issue as above. Both return the same messages.

One fix that I implemented was after the NCG confiq request, was to store that message in a variable of which was what I was receiving before. Initially, this alleviated the config. message I was receiving but I still wasn't receiving headlines.

I then commented out the entire config. message and was able to get headlines. (below message was received using exact protocol precision)

Response from Server:
S,CURRENT PROTOCOL,6.0

news:
N,RTK,22120124744,:EUR:,20190311102326,Bank Of France Lowers Q1 Growth Estimate To 0.3%
N,RTK,22120122646,:USD:,20190311101736,U.S. Business Inventories Climb In Line With Estimates In D...
N,RTK,22120120618,:CZK:,20190311100815,Czech Inflation Accelerates Further
N,RTK,22120113602,:USD:,20190311100055,U.S. Business Inventories Climb 0.6% In December
N,RTK,22120104959,:EUR:,20190311094951,Spain Retail Sales Rise For Fourth Month
N,RTK,22120101980,:USD:,20190311093901,U.S. Retail Sales Unexpectedly Show Modest Rebound In January
N,RTK,22120099247,:DKK:,20190311092941,Denmark Inflation Slows In February
N,RTK,22120096642,:EUR:,20190311091801,German BDI Cuts 2019 Growth Forecast To 1.2% From 1.5%
N,RTK,22120096422,:NOK:,20190311091351,Norway Inflation At 7-Month Low
N,RTK,22120093159,:EUR:,20190311085320,Estonia Trade Gap Narrows In January
!ENDMSG!,

I noticed that even though I set the NCG message to return text, it would still return XML. I received the above headlines after I commented out the NCG message and manually placing 't' in the NHL request.

In the prior post, I was iterating through a list of symbols. The RTK filter symbols are country symbols and my symbol list were futures contracts, this was the issue. I fixed this but left the NCG request commented and received the following:(i.e. news for each country)
Response from Server:
S,CURRENT PROTOCOL,6.0

news:
N,RTK,22120122646,:USD:,20190311101736,U.S. Business Inventories Climb In Line With Estimates In D...
N,RTK,22120113602,:USD:,20190311100055,U.S. Business Inventories Climb 0.6% In December
N,RTK,22120101980,:USD:,20190311093901,U.S. Retail Sales Unexpectedly Show Modest Rebound In January
N,RTK,22120087392,:USD:,20190311083820,U.S. Retail Sales Unexpectedly Rise 0.2% In January
N,RTK,22120086279,:USD:,20190311083100,U.S. Retail Sales Rise 0.2% In January, Ex-Auto Sales Climb...
!ENDMSG!,

Response from Server:
S,CURRENT PROTOCOL,6.0

news:
N,RTK,22120124744,:EUR:,20190311102326,Bank Of France Lowers Q1 Growth Estimate To 0.3%
N,RTK,22120104959,:EUR:,20190311094951,Spain Retail Sales Rise For Fourth Month
N,RTK,22120096642,:EUR:,20190311091801,German BDI Cuts 2019 Growth Forecast To 1.2% From 1.5%
N,RTK,22120093159,:EUR:,20190311085320,Estonia Trade Gap Narrows In January
N,RTK,22120062151,:EUR:,20190311065957,Ireland Construction Growth At 7-Month High
N,RTK,22120056465,:EUR:,20190311062747,Malta Jan Industrial Production +2.3% On Month Vs. -7.0% In...
N,RTK,22120056323,:EUR:,20190311062637,Malta Jan Industrial Production +2.8% On Year Vs. -0.9% In ...
N,RTK,22120026553,:EUR:,20190311053427,Slovenia Jan Industrial Production Up 6.0% On Month
N,RTK,22120026315,:EUR:,20190311053347,Slovenia Jan Industrial Production Up 5.8% On Year
N,RTK,22120012753,:EUR:,20190311044750,German Industrial Production Unexpectedly Declines In Janua...
!ENDMSG!,

Response from Server:
S,CURRENT PROTOCOL,6.0

news:
!ENDMSG!,

Response from Server:
S,CURRENT PROTOCOL,6.0

news:
!ENDMSG!,

Response from Server:
S,CURRENT PROTOCOL,6.0

news:
!ENDMSG!,

Response from Server:
S,CURRENT PROTOCOL,6.0

news:
!ENDMSG!,


However, when I uncommented the NCG request and set the return type to 't' and removed the 't' from the NHL request, I still received news in XML format(excerpt below):
Response from Server:
S,CURRENT PROTOCOL,6.0

news:
<?xml version='1.0'?>
<news_headlines>
<news_headline>
<id>22120122646</id>
<source>RTK</source>
<timestamp>20190311101736</timestamp>
<symbols>:USD:</symbols>
<text>U.S. Business Inventories Climb In Line With Estimates In D...</text>
</news_headline>
<news_headline>
<id>22120113602</id>
<source>RTK</source>
<timestamp>20190311100055</timestamp>
<symbols>:USD:</symbols>
<text>U.S. Business Inventories Climb 0.6% In December</text>
</news_headline>
<news_headline>
<id>22120101980</id>
<source>RTK</source>
<timestamp>20190311093901</timestamp>
<symbols>:USD:</symbols>
<text>U.S. Retail Sales Unexpectedly Show Modest Rebound In January</text>
</news_headline>
<news_headline>
<id>22120087392</id>
<source>RTK</source>
<timestamp>20190311083820</timestamp>
<symbols>:USD:</symbols>
<text>U.S. Retail Sales Unexpectedly Rise 0.2% In January</text>
</news_headline>
<news_headline>
<id>22120086279</id>
<source>RTK</source>
<timestam
Response from Server:
S,CURRENT PROTOCOL,6.0

Not sure why this is but the core issue was iterating through incorrect symbol list. I can set the return type via NHL until the issue with NCG is fixed.

Thanks

IQFeed Developer Support » NHL News Headlines Request Mar 10, 2019 08:14 PM (Total replies: 5)

Hi,

I'm attempting to retrieve news headlines for a specific date, however, upon sending the requests for a specific Source, I receive a message displaying all of the possible Sources and no headline.

I'm coding in Python as below:

#use context manager to initialize socket
with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as s:

#connect to host and port
s.connect((host,port))

#setting protocol
s.sendall(b'(S,SET PROTOCOL, 6.0.0.5\r\n')

#sending news headline request
s.sendall(b'NHL,RTK,,t,,20190310,\r\n')

#storing message in variable
news=s.recv(1024).decode()

This is what I receive:

'News,CATEGORY,All News\r\nNews,MAJOR,DTN,DTN News,1D,10\r\nNews,MINOR,DT5,Treasuries, Most Actives, Gainers, Losers,1D,10\r\nNews,MINOR,RTL,Derivatives - Selected Futures and Options,2Ab,10\r\nNews,MINOR,DT7,Quote List Changes,1D,10\r\nNews,MINOR,RTI,Calendars and Reports,2Ab,10\r\nNews,MAJOR,CPR,PR Newswire,1X,5\r\nNews,MAJOR,CBW,Business Wire,1X,2\r\nNews,MAJOR,RTT,Real-Time Trader,2Ab,10\r\nNews,MINOR,RTB,Breaking News Headlines,2Ab,10\r\nNews,MINOR,RTC,Big Stories,2Ab,10\r\nNews,MINOR,RTD,Analyst Updates,2Ab,10\r\nNews,MINOR,RTE,Analyst Comments,2Ab,10\r\nNews,MINOR,RTF,Stocks on the Move,2Ab,10\r\nNews,MINOR,RTG,Corporate Actions,2Ab,10\r\nNews,MINOR,RTH,Market Overview,2Ab,10\r\nNews,MINOR,RTK,Economic News,2Ab,10\r\nNews,MINOR,RTJ,Canadian Stocks and Market Overview,2Ab,10\r\nNews,MINOR,RTM,Asian Market,2Ab,10\r\nNews,MINOR,RTN,Wall Street Events/Conference Calls,2Ab,10\r\nNews,MAJOR,CPZ,GlobeNewswire Inc,2Ag,10\r\nNews,MAJOR,BEN,Benzinga Pro,1a,10\r\nNews,!ENDMSG!,\r\n'

I'm aware that there are some headlines within the filter provided from viewing the news desktop app. How can I resolve this discrepancy?

Thanks


Time: Fri April 26, 2024 12:23 PM CFBB v1.2.0 8 ms.
© AderSoftware 2002-2003