Containers : 15 Container: Message
 
15 Container: Message
The Message container is represented by a JSON object containing a series of one or more name-value pairs representing Request, Refresh, Update, Status, Close, Post, Ack, and Generic Messages.
Messages are also represented as the outermost JSON object, or, if the outermost JSON structure is an array, the objects that are the values of the outermost array.
The names and values are defined by each respective WebSocketAPI Message's type. For more details on each type of Message, see the Messages section in this document.
To view an example message, click the appropriate message type:
Request Message
 
 
{
    "ID": 2,
    "Key": {
        "Name": "TRI.N"
    }
}
 
Packed Request Messages
 
 
[
    {
        "ID":3,
        "Key":{
            "Name":"IBM.N"
        }
    },
    {
        "ID":2,
        "Key":{
            "Name":"TRI.N"
        }
    }
]
 
Post Message
 
 
{
    "Ack":true,
    "Domain":"MarketPrice",
    "ID":2,
    "Message":{
        "Domain":"MarketPrice",
        "Fields":{
            "ASK":45.57,
            "ASKSIZE":19,
            "BID":45.55,
            "BIDSIZE":18
        },
        "ID":0,
        "Type":"Update"
    },
    "PostID":1,
    "PostUserInfo":{
        "Address":"127.0.0.1",
        "UserID":55555
    },
    "Type":"Post"
}