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)




"IQ feed works very well, does not have all of the normal interruptions I have grown used to on *******" - Comment from Mark
"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
"With HUGE volume on AAPL and RIMM for 2 days, everyone in a trading room was whining about freezes, crashes and lag with *******, RealTick, TS and Cyber. InvestorRT with IQFeed was rock solid. I mean SOLID!" - Comment from Public IRC Chat
"I use IQ Feed, Great stuff as far as data analysis information, storage and retrieval is concerned." - Comment from Public Forum
"After all the anxiety I had with my previous data provider it is a relief not to have to worry about data speed and integrity." - Comment from Eamonn
"I am very pleased with the DTNIQ system for quotes and news." - Comment from Larry
"Its working FABULOUSLY for me!! Holy cow...there has been so much I've been missing lately, and with this feed and Linnsoft software...I'm in the game now." - Comment from Chris R.
"Excellent datafeed !!!" - Comment from Arely
"You are either overstaffed or people just don't have problems with your feed because customer support always answers the phone quickly." - Comment from Jay via Email
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 »News command syntax error
Author Topic: News command syntax error (5 messages, Page 1 of 1)

dylan06
-Interested User-
Posts: 11
Joined: May 15, 2006


Posted: May 15, 2006 12:15 PM          Msg. 1 of 5
I'm getting syntax error when I send a news command such as "NCT;". I use TCP/IP address 127.0.0.1, 9100.

Is the address wrong?

Thanks

DTN_Steve_S
-DTN Guru-
Posts: 2093
Joined: Nov 21, 2005


Posted: May 15, 2006 12:26 PM          Msg. 2 of 5
127.0.0.1 port 9100 is the correct address/port for News lookup.

I would suspect you are doing something else wrong.

Are you adding a carriage return or a line feed character to the end of your request?

If so, this will make it so that you only recieve results with your first request you make since your next request will have the carriage return or line feed at the beginning.

For example, if I send the command (<CR> = carriage return):

NCT;<CR>

I will get the News configuration back, but if I request it again, I will get a syntax error since it is actually going to be,

<CR>NCT;<CR>

If this still doesnt help, I may need to see your code to be able to tell what you are doing wrong.
Edited by DTN_Steve_S on May 15, 2006 at 12:27 PM

dylan06
-Interested User-
Posts: 11
Joined: May 15, 2006


Posted: May 15, 2006 12:40 PM          Msg. 3 of 5
I'm not adding any extra character such as line feed. I'm using this inside a program which already I've stablished a connection to 127.0.0.1, 5009 to receive the quote data. Does DTN allow have 2 connections?

DTN_Steve_S
-DTN Guru-
Posts: 2093
Joined: Nov 21, 2005


Posted: May 15, 2006 12:53 PM          Msg. 4 of 5
Yes, In fact, you should always maintain your level1 conenction to port 5009.

However, the NCT; command needs to be sent through to the lookup port (9100) as it sounds like you are doing.

What happens when you try using the News example apps?

dylan06
-Interested User-
Posts: 11
Joined: May 15, 2006


Posted: May 15, 2006 01:15 PM          Msg. 5 of 5
Steve,

There was an error in my code. Now it works fine.

Thanks for your help.
 

 

Time: Wed May 8, 2024 12:43 AM CFBB v1.2.0 12 ms.
© AderSoftware 2002-2003