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)




"The service is great, I see a noticeable improvement in my volume profiles over [broker]'s data feed" - Comment from Larry
"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 used to have *******, but they are way more money for the same thing. I have had no probs with data from DTN since switching over." - Comment from Public Forum Post
"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
"Thank you so much - awesome feed, awesome service!" - Comment from Greg via Email
"You have an excellent product !!!!!!" - Comment from Arely
"If you are serious about your trading I would not rely on IB data for serious daytrading. Took me a while to justify the cost of IQ Feed and in the end, it's just a 2 point stop on ES. Better safe than sorry" - Comment from Public Forum
"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
"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
"IQFeed version 4 is a real screamer compared to anything else I have seen." - Comment from Tom
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: Sat May 18, 2024 6:09 AM CFBB v1.2.0 13 ms.
© AderSoftware 2002-2003