Discover Refinitiv
MyRefinitiv Refinitiv Perspectives Careers
Created with Sketch.
All APIs Questions & Answers  Register |  Login
Ask a question
  • Questions
  • Tags
  • Badges
  • Unanswered
Search:
  • Home /
  • Elektron /
  • WebSocket API /
avatar image
Question by Joris H. · May 27, 2019 at 05:54 AM · websocket apiposting

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!

People who like this

0 Show 0
Comment
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

3 Replies

  • Sort: 
avatar image
REFINITIV
Best Answer
Answer by umer.nalla · May 28, 2019 at 07:50 AM

Hi @Joris H.

Please refer to the following two posts which contain relevant information - one is specific to Websocket, the other is for a different API.

https://community.developers.refinitiv.com/questions/35300/websocket-contribution-to-an-ats-which-use-peppe-p.html

https://community.developers.refinitiv.com/questions/26611/contribution-fails-to-ric-in-a-containerbu-on-ats.html

So, you will need to check the entitlement requirements with your Market Data team / ATS Admnistrator and then encode a PermData value in your PostMsg as described in the first post above.

Comment

People who like this

0 Show 0 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

avatar image
Answer by ajay.gupta · Feb 02 at 12:18 PM

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?

Comment

People who like this

0 Show 2 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

avatar image
REFINITIV
umer.nalla ♦♦ · Feb 03 at 09:13 AM 0
Share

Hi @ajay.gupta

Whilst I cannot find a specific EMA example, you should find the following two articles helpful

Visible Publisher Identifier | Refinitiv Developers

Implementing Elektron API applications to work with ATS - Part 1 | Refinitiv Developers



avatar image
REFINITIV
wasin.waeosri ♦♦ · Feb 03 at 09:44 AM 0
Share

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.

avatar image
Answer by ajay.gupta · Feb 04 at 04:41 PM

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
Comment

People who like this

0 Show 1 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

avatar image
REFINITIV
wasin.waeosri ♦♦ · Feb 05 at 04:49 AM 0
Share

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.

Watch this question

Add to watch list
Add to your watch list to receive emailed updates for this question. Too many emails? Change your settings >
9 People are following this question.

Related Questions

Delayed service available

Revoke Token in Websocket API

Service Discovery Request Concerns

Getting {"error":"access_denied"} when trying to get access token

Does Websocket API Support Subscribing from Marketfeed Services

  • Feedback
  • Copyright
  • Cookie Policy
  • Privacy Statement
  • Terms of Use
  • Careers
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Alpha
  • App Studio
  • Block Chain
  • Bot Platform
  • Calais
  • Connected Risk APIs
  • DSS
  • Data Fusion
  • Data Model Discovery
  • Datastream
  • Eikon COM
  • Eikon Data APIs
  • Elektron
    • EMA
    • ETA
    • WebSocket API
  • Legal One
  • Messenger Bot
  • Messenger Side by Side
  • ONESOURCE
    • Indirect Tax
  • Open PermID
    • Entity Search
  • Org ID
  • PAM
    • PAM - Logging
  • ProView
  • ProView Internal
  • Product Insight
  • Project Tracking
  • Refinitiv Data Platform
    • Refinitiv Data Platform Libraries
  • Rose's Space
  • Screening
    • Qual-ID API
    • Screening Deployed
    • Screening Online
    • World-Check One
    • World-Check One Zero Footprint
  • Side by Side Integration API
  • TR Knowledge Graph
  • TREP APIs
    • CAT
    • DACS Station
    • Open DACS
    • RFA
    • UPA
  • TREP Infrastructure
  • TRIT
  • TRKD
  • TRTH
  • Thomson One Smart
  • Transactions
    • REDI API
  • Velocity Analytics
  • Wealth Management Web Services
  • World-Check Data File
  • Explore
  • Tags
  • Questions
  • Badges