
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: 2092
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.
|