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 Datafeed Wish List »TimeStampMessage after RegisterClientApp and more about the feedback
Author Topic: TimeStampMessage after RegisterClientApp and more about the feedback (3 messages, Page 1 of 1)

vilius_n
-Interested User-
Posts: 6
Joined: Jun 21, 2008


Posted: Jun 23, 2008 04:04 AM          Msg. 1 of 3
I want to synchronize my program with the IQ server time. The problem is that the program has to wait up to 1 minute until next TimeStampMessage comes..
It would be really great if IQ could send one (or even a sequence of 3-5 for better accuracy) TimeStampMessage immediately after connection.



Another annoying thing. If the user sends WatchSymbol with wrong symbol name, nothing happens - no error message, no other feedback (or it is not documented?). Even the WatchSymbol return true..
So I do not have any way to find out if the request was successful or not. Yeah, I know there is a symbol lookup, but I do not want to do 100 lookups for every symbol entered..

The solution is simple: if the symbol given to WatchSymbol is wrong it should return false. If that is not possible, then API should send the System message, like "Error: symbol not valid".

In general I'd really like to get much more feedback from the API. If I do something right, give me a "good boy!" message, if I do something wrong, give me an error message. Silence is the worst. That makes programming and testing really difficult.

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


Posted: Jun 23, 2008 09:16 AM          Msg. 2 of 3
vilius_n, in the case of invalid symbols, you should be getting an error message indicating such. You should be receiving an Update message ("Q" message) with "not found" in the "Last" field.

For example, sending:
wASDFASDF

returns:
Q,ASDFASDF,,Not Found,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,

It appears that this is not documented anywhere. I will take care of that for the next version of IQFeed.

If you are not recieving this result, please let me know what symbol you are requesting so that I can look into it.

As for the timestamps, when not using the IQFeedY control, you can manually request a timestamp from the server, however, this timestamp is only to the nearest 10s. I realise this is not going to qualify entirely for what you are needing, however, you should be able to reduce your synchronization time using this.

vilius_n
-Interested User-
Posts: 6
Joined: Jun 21, 2008


Posted: Jun 23, 2008 12:25 PM          Msg. 3 of 3
Thanks. "Not Found" message works fine.

It would be really nice to have an option to request TimeStamp from IQFeedY or to receive it automatically after connecting to the server..
If you do not want to create a separate command, just send the timestamp message together with Echo message, for example.
 

 

Time: Fri July 26, 2024 10:20 PM CFBB v1.2.0 7 ms.
© AderSoftware 2002-2003