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)




"Previously I was using *******. IQFeed is WAY more economical, and for my charting needs is just as good, if not better." - Comment from Public Forum Post
"Thank you so much - awesome feed, awesome service!" - Comment from Greg via Email
"You are much better than lawyers or the phone company because you answer the phone when I call! I just love your customer service." - Comment from Isreal
"DTN has never given me problems. It is incredibly stable. In fact I've occasionally lost the data feed from Interactive Brokers, but still been able to trade because I'm getting good data from DTN." - Comment from Leighton
"This is an excellent value, the system is generous (allowing for 500 stocks) and stable (and really is tick-by-tick), and the support is fantastic." - Comment from Shirin via Email
"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
"The service is great, I see a noticeable improvement in my volume profiles over [broker]'s data feed" - Comment from Larry
"Thanks for all of your help. Great customer service deserves to be recognized which one the reasons I've been a customer of DTN for over 10 years!" - Comment from Stuart
"Thanks for the great product and support. During this week of high volume trading, my QuoteTracker + IQ Feed setup never missed a beat. Also, thanks for your swiftness in responding to data issues. I was on ******* for a few years before I made the switch over early this year, and wish I had done it a long time ago." - Comment from Ken
"I cannot believe what a difference it makes trading with ProphetX!" - Comment from Bruce in Los Angeles
Home  Search  Register  Login  Blogs 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 18987 total posts (0.02%) in 9 days (0.44 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: Mon March 18, 2019 8:27 AM CFBB v1.2.0 15 ms.
© AderSoftware 2002-2003