Posting with WebSocket API: "A29: Post message did not contain permission data."

Hi, I'm trying the "Posting" capabilities of the WebSockets API. However, I keep getting the following error:

    "NakCode": "AccessDenied",
"Text": "A29: Post message did not contain permission data.",

My post message is:

{
"Ack": true,
"Domain": "MarketPrice",
"ID": 2,
"Message": {
"Domain": "MarketPrice",
"Fields": {
"ASK": 45.57,
"BID": 45.55,
},
"ID": 0,
"Type": "Update"
},
"PostID": 1,
"PostUserInfo": {
"Address": "10.XX.XX.XX", # My IP address
"UserID": 5555 # Not sure what to use here?
},
"Type": "Post"
}

I'm following the documentation at:

WebSocket API Try it Now! Documentation

Implementing Elektron API applications to work with ATS

Your help is very much appreciated!

Best Answer

Answers

  • Hi @umer.nalla, I am getting the same error as below:

    text="A29: Post message did not contain permission data."

    Can you please let me know some example to set the permission data using EMA api?


  • Hi @umer.nalla , I am getting the same error as below:

    text="A29: Post message did not contain permission data."

    Can you please let me know some example to set the permission data using EMA api?

  • Hello @ajay.gupta

    You can set the permission data via the following EMA Java function:

    PostMsg.permissionData(java.nio.ByteBuffer permissionData);

    You can see how to create a DACS Lock (permission data) in ETA Java AuthLockExample application. The example is available at <RTSDK-2.0.0.L1 package>\Java\Eta\Applications\Examples\src\main\java\com\refinitiv\eta\examples\authlock folder.

  • Hi @wasin.waeosri @umer.nalla , Thanks for your response. I tried doing it like the AuthLockExample and I get a different error now: The error is:

    Nack Code: AccessDenied
    Text: The supplied lock is not a DACS lock
  • Hello @ajay.gupta

    Could you please share the snippet code, the data that you pass to the PostMsg.permissionData() function, and the XML trace file? Please see the "XML trace" section of this article for more detail about how to enable the XML trace file.

    I suggest you check the entitlement requirements with your Market Data team / ATS Administrator.