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
"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
"Excellent datafeed !!!" - Comment from Arely
"I have to tell you though that using the IQFeed API is about the easiest and cleanest I have seen for some time." - Comment from Jim
"You have an excellent feed. Very few spikes for Spot Forex." - Comment from Public Forum Post
"I was with ******* for 4 years at $230 a month, this is a huge savings for me, GOD BLESS YOU PEOPLE," - Comment from T.S. via Email
"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
"I just wanted to tell you what a fine job you have been doing. While *******, from what I hear, has been down and out, off and on, IQ feed has held like a champ this week." - Comment from Shirin
"IQ feed is brilliant. The support is mind-bending. What service!" - Comment from Public Forum Post
"And by the way, have to say this. I love the IQFeed software. It's rock solid and it has a really nice API." - Comment from Thomas via RT Chat
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: Mon May 6, 2024 12:52 AM CFBB v1.2.0 14 ms.
© AderSoftware 2002-2003