Connecting to WebSocket ws://172.20.33.30:15000/WebSocket ... WebSocket successfully connected! SENT: { "Domain":"Login", "ID":1, "Key":{ "Elements":{ "ApplicationId":"256", "Position":"10.42.87.51" }, "Name":"root" } } RECEIVED: [ { "Domain":"Login", "Elements":{ "MaxMsgSize":61430, "PingTimeout":30 }, "ID":1, "Key":{ "Elements":{ "AllowSuspectData":1, "ApplicationId":"256", "ApplicationName":"ADS", "Position":"10.42.87.51", "ProvidePermissionExpressions":1, "ProvidePermissionProfile":0, "SingleOpen":1, "SupportBatchRequests":7, "SupportEnhancedSymbolList":1, "SupportOMMPost":1, "SupportOptimizedPauseResume":1, "SupportPauseResume":1, "SupportStandby":1, "SupportViewRequests":1 }, "Name":"root" }, "State":{ "Data":"Ok", "Stream":"Open", "Text":"Login accepted by host apis30." }, "Type":"Refresh" } ] SENT: { "ID":2, "Key":{ "Name":"WASIN.BK", "Service":"API_ATS" } } RECEIVED: [ { "ClearCache":false, "Fields":{ "ACVOL_1":400, "ASK":66.77, "BID":44.55, "DSPLY_NAME":"WASIN.BK", "GEN_VAL1":0, "RDNDISPLAY":67, "RECORDTYPE":209, "TIMACT":"06:57:59", "TRADE_DATE":"2019-10-16", "TRDPRC_1":35 }, "ID":2, "Key":{ "Name":"WASIN.BK", "Service":"API_ATS" }, "Qos":{ "Rate":"TickByTick", "Timeliness":"Realtime" }, "SeqNumber":0, "State":{ "Data":"Ok", "Stream":"Open" }, "Type":"Refresh" } ] send_market_price_post Sending this : {"ID": 2, "Type": "Post", "Domain": "MarketPrice", "Ack": true, "PostID": 1, "PostUserInfo": {"Address": "10.42.87.51", "UserID": 2004}, "Message": {"ID": 0, "Type": "Update", "Domain": "MarketPrice", "Fields": {"BID": 44.55, "ASK": 66.77}}} SENT POST: RECEIVED: [ { "AckID":1, "ID":2, "Key":{ "Name":"WASIN.BK", "Service":"API_ATS" }, "Text":"[1]: Contribution Accepted", "Type":"Ack" }, { "Fields":{ "ASK":66.77, "BID":44.55, "TIMACT":"06:58:06", "TRADE_DATE":"2019-10-16" }, "ID":2, "Key":{ "Name":"WASIN.BK", "Service":"API_ATS" }, "PostUserInfo":{ "Address":"10.42.87.51", "UserID":2004 }, "SeqNumber":0, "Type":"Update", "UpdateType":"Unspecified" } ] { "Ack":true, "Domain":"MarketPrice", "ID":2, "Message":{ "Domain":"MarketPrice", "Fields":{ "ASK":66.77, "BID":44.55 }, "ID":0, "Type":"Update" }, "PostID":1, "PostUserInfo":{ "Address":"10.42.87.51", "UserID":2004 }, "Type":"Post" } SENT POSTEND: send_market_price_post Sending this : {"ID": 2, "Type": "Post", "Domain": "MarketPrice", "Ack": true, "PostID": 2, "PostUserInfo": {"Address": "10.42.87.51", "UserID": 2004}, "Message": {"ID": 0, "Type": "Update", "Domain": "MarketPrice", "Fields": {"BID": 44.55, "ASK": 66.77}}} SENT POST: RECEIVED: [ { "AckID":2, "ID":2, "Key":{ "Name":"WASIN.BK", "Service":"API_ATS" }, "Text":"[1]: Contribution Accepted", "Type":"Ack" }, { "Fields":{ "ASK":66.77, "BID":44.55, "TIMACT":"06:58:12", "TRADE_DATE":"2019-10-16" }, "ID":2, "Key":{ "Name":"WASIN.BK", "Service":"API_ATS" }, "PostUserInfo":{ "Address":"10.42.87.51", "UserID":2004 }, "SeqNumber":0, "Type":"Update", "UpdateType":"Unspecified" } ] { "Ack":true, "Domain":"MarketPrice", "ID":2, "Message":{ "Domain":"MarketPrice", "Fields":{ "ASK":66.77, "BID":44.55 }, "ID":0, "Type":"Update" }, "PostID":2, "PostUserInfo":{ "Address":"10.42.87.51", "UserID":2004 }, "Type":"Post" } SENT POSTEND: send_market_price_post Sending this : {"ID": 2, "Type": "Post", "Domain": "MarketPrice", "Ack": true, "PostID": 3, "PostUserInfo": {"Address": "10.42.87.51", "UserID": 2004}, "Message": {"ID": 0, "Type": "Update", "Domain": "MarketPrice", "Fields": {"BID": 44.55, "ASK": 66.77}}} SENT POST: RECEIVED: [ { "AckID":3, "ID":2, "Key":{ "Name":"WASIN.BK", "Service":"API_ATS" }, "Text":"[1]: Contribution Accepted", "Type":"Ack" }, { "Fields":{ "ASK":66.77, "BID":44.55, "TIMACT":"06:58:19", "TRADE_DATE":"2019-10-16" }, "ID":2, "Key":{ "Name":"WASIN.BK", "Service":"API_ATS" }, "PostUserInfo":{ "Address":"10.42.87.51", "UserID":2004 }, "SeqNumber":0, "Type":"Update", "UpdateType":"Unspecified" } ] { "Ack":true, "Domain":"MarketPrice", "ID":2, "Message":{ "Domain":"MarketPrice", "Fields":{ "ASK":66.77, "BID":44.55 }, "ID":0, "Type":"Update" }, "PostID":3, "PostUserInfo":{ "Address":"10.42.87.51", "UserID":2004 }, "Type":"Post" } SENT POSTEND: send_market_price_post WebSocket Closed