lseg.data python library

I would like to get data information of an instrument by using the lseg.data python library

  • I tried to use the library lseg.data.content.symbol_conversion, but it seemed that I don't have access to a scope to use this endpoint (trapi.search.lookup.read)  
  • So I tried to requested directly by using the endpoint, through lseg.data.delivery.endpoint_requestby using the documentation here, https://github.com/LSEG-API-Samples/Example.DataLibrary.Python/blob/edb017dcc81caa605627557bc0116b81af4c75ed/Tutorials/3.Delivery/3.2-Endpoint/TUT_3.2.01-EndPoint-Overview.ipynb.
    I found this endpoint, https://api.refinitiv.com/data/symbology/beta1/convert, in the catalog here, https://apidocs.refinitiv.com/Apps/ApiDocs#/details/L2RhdGEvc3ltYm9sb2d5L2JldGEx/L2NvbnZlcnQ=/GET/PLAYGROUND, which seems to need the scope trapi.data.symbology.read, which is available with my account, but it still not working.

Can you help me with that, please?

Thanks a lot

Answers

  • Hi @Anthony_WeMatch ,


    I'm guessing that you tried using the `lseg.data.content.symbol_conversion` funciton as shown here: https://github.com/LSEG-API-Samples/Example.DataLibrary.Python/blob/lseg-data-examples/Examples/2-Content/2.05-Symbology/EX-2.05.01-Symbology.ipynb

    The `lseg.data.content.symbol_conversion` funciton is indeed the correct one, and the `https://api.refinitiv.com/data/symbology/beta1/convert` is in beta, and few people have the scopes nessesary to access this enpoint as of yet.

    May I asked if you tried using this functionality in CodeBook, or outside of CodeBook? I'm asking because CodeBOok provides a rather homogenous Python environment that provides a good and stale testing ground for permissions and scope. If you encounter the scope issues you mentioend in CodeBook, then please note that this LSEG Developer Q&A Forum is for LSEG API technical questions only. For content and scope questions such as yours, please use myaccount.lseg.com.

  • Thanks for your answer.
    I tried this functionality outside of CodeBook.

    I will reach myaccount.lseg.com in order to check my scope account.
    I was thinking that using 'https://api.refinitiv.com/data/symbology/beta1/convert' only need this scope, trapi.data.symbology.read, which I have.

  • Just to sum up, I have two different project :

    • Do some search, by using this endpoint lseg.data.discovery.search to do some search, but it seems that I don't have the scope {'trapi.search.read'}
    • Map different market data ticker, by using this endpoint lseg.data.content.symbol_conversion, but it seems that I don't have the scope {'trapi.search.lookup.read'}

    I do have those scopes, trapi.data.symbology.advanced.read and trapi.data.symbology.read, but I don't know if and how I can use them to achieve one of my two projects.

    If not, can you tell me how to add those scopes to my account.

    Thanks a lot,
    Anthony

  • Jirapongse
    Jirapongse ✭✭✭✭✭

    @Anthony_WeMatch

    Please contact your LSEG account team or Sales team directly to verify your permissions and scopes.

    I checked and found that /data/symbology/beta1/ can be used like this:

    image.png

    There are several examples on the API Docs.

    image.png