sasha
-Interested User-
Posts: 54
Joined: Jul 21, 2004
|
Posted: Jul 28, 2004 05:13 PM
Msg. 1 of 2
Being new to the API, I'm using the IQExplorer tool for this.
Forgive me if it is in the documentation or forums but I have searched and cannot find the reason/description of a "P" message in the streaming session.
It has the same format as the "Q" Update message.
After watching a symbol using the IQExplorer tool to send the request, the following mesages are seem to be received in all cases:
P,JDSU,F,.... F,JDSU,0F,.... P,JDSU,0F,.... Q,JDSU,F,....
Is there anything special about these two "P" messages or can I treat them like a "Q" Update message?
|
LonnieS
-King of IQ Development-
Posts: 127
Joined: Jun 2, 2004
|
Posted: Jul 30, 2004 07:35 AM
Msg. 2 of 2
The P message is a summary message it is used to initially establish the current market values (this is what you are seeing) and to provide corrections and updates not generated by market action.
Q messages are generally market generated messages, trades, quotes, volume adjustments, etc.
The P message is a snapshot of the current market values. Values should be updated but a P message should not generate a historical datapoint, should not update direction indicators (except for those explicitly set), and should not recalculate values. For instance, the trade volume in a P message should not be added to the total volume (it already has been), it simply represents the last trade volume received.
P messages have the same fields as the Q message.
Lonnie Shumate Development Manager, IQ Systems DTN Market ACCESS
|