How EMA provider can translate PE codes to DACS lock

Hello, one of our mutual client is using EMA for publishing data[Provider]. They have PE code which they can pack in PROD_PERM FID. In case they wish to translate PE code to DACS lock which can be passed to permData in Refresh message, how they can do it? Can you show api's or sample code to do so?

Best Answer

  • Jirapongse
    Answer ✓

    @mktdata

    Thanks for reaching out to us.

    You can use the DACS library available in the ETA package to create DACS locks.

    There is an example (AuthLock) in the ETA examples folder. For example, this is a ETA C example.

    1686123647729.png

    Please check the DACS_GetLock method.

    I hope that this information is of help.