Python Websocket API Post Failure

When I use python websocket API to post market price I get an error of DeniedBySrc. The request and response are as followed:

Request:

{

"Ack":true,

"Domain":"MarketPrice",

"ID":2,

"Message":{

"Domain":"MarketPrice",

"Fields":{

"FAIR_VALUE":45.55

},

"ID":0,

"Type":"Update"

},

"PostID":3,

"PostUserInfo":{

"Address":"172.18.112.175",

"UserID":1080

},

"Type":"Post"

}


Response:

[

{

"AckID":3,

"ID":2,

"Key":{

"Name":"6YEAR_COP_SWAP=SBCM",

"Service":"DDS"

},

"NakCode":"DeniedBySrc",

"Text":"[400]: Invalid Request",

"Type":"Ack"

}

]

Please advise

Best Answer

  • wasin.w
    wasin.w admin
    Answer ✓

    Hello @lzhuang1

    Those error messages are generate from TREP/DDS server. The DDS server uses the legacy SSL connection (Source Sink Library) to connect to TREP. Please be informed that the DDS server was already end of life and no longer supported. It has been replaced with the ATS (Advanced Transformation System) server which connects with TREP via a strategic RSSL connection.

    I have tested your example code and post message to post data to my ATS server and it works fine. It can post data to my ATS successfully.

    I suggest you enable the enable the Elektron Java API trace and contribute data. Then we can compare the Elektron Post message and WebSocket Post message as my colleague suggest above.




Answers