Hi,
I can't find which api to call to get stock list for an exchange. What is it called?
I'm trying to figure out price relations of stocks but can't get list.
Thank you.
Hi @Sungmin ,
Thank you for your question. You will be able to retrieve the list of equites traded in an exchange via the Search capabilities of our latest RD Library for python. Please see the example query below:
rd.discovery.search( view = rd.discovery.Views.EQUITY_QUOTES, top = 10000, filter = "IsPrimaryRIC eq true and SearchAllCategoryv2 eq 'Equities' and (ExchangeName xeq 'London Stock Exchange')", select = "DTSubjectName,ExchangeName,RIC,IssueISIN,Gics,AssetState,BusinessEntity,PI,CUSIP,CinCUSIP,SEDOL,RCSAssetCategoryLeaf,RCSCurrencyLeaf,ExDividendDate")
You may change your search parameters directly from the code above or you may generate a Search output via the Advanced Search App in Workspace and export the query:
Hope this helps, please let me know should you have any further questions.
Best regards,
Haykaz
Thank you!, You made my day