Query export not working to build query string

I am trying to export a search query in Eikon, and the fields I choose are:
However, the code provided by the Export Query does not contain the fields I added.
So my questions are:
1. Why are the user-added fields not in the Export Query screen on Workspace?
2. Could you tell me the correct field for all the variables I choose?
Thank you!
Answers
-
Hi @finance.eikon2 ,
Regarding the first question, we need to check with the product team about the application behavior, I'll raise a ticket to helpdesk on your behalf and they will contact you to provide more information.
The second question, correct field can be found in CodeCreator application inside Workspace.
For example, the code below can be used
import refinitiv.data as rd
rd.open_session()
# Exported query, get only OA Perm ID for the next step
df = rd.discovery.search(
view = rd.discovery.Views.ORGANISATIONS,
top = 1000,
filter = "( SearchAllCategoryv2 eq 'Companies/Issuers')",
select = "OAPermID"
)
# Make a list of OA Perm ID from the output dataframe
rics_list = df['OAPermID'].dropna().tolist()
# With the list created, retrieve the data
df2 = rd.get_data(
universe=rics_list,
fields=['TR.CommonName', 'TR.SICIndustry', 'TR.TRBCIndustryCode', 'TR.NAICSSectorCode', 'TR.NAICSIndustryGroupCode']
)
display(df2)0 -
Thank you very much for your help!
However, I am looking for all the company's information. Could you help me get the data without reaching the 10,000 limit?
0 -
Hi @finance.eikon2 ,
I forgot to mention that it is recommended to apply the filters to scope the result to be the data you're interested in, this will improve performance of the coding as well. Hence, in case the result is more than 10,000 rows, which is the limit of result row in the search function, you're recommended to add more filter to specific the result
However, the example of retrieing data with more than 10000 results can be found in section 2) Using the Search function to retrieve the data in article Searching for KungFu Bonds (Chinese-issued U.S. dollars bonds) with the Data Library - Search function
In this case, as number of the result is exceeding 10,000 records, which is the maximum number of top parameter. We're going to use Content Layer code instead, so we can find the number of result of each label in selected filter with navigators parameter, then retrieve the data in chunk divided by label(s) that their result number aren't exceed the maximum number of top parameter.
0 -
@raksina.samasiri Thank you so much again! let me think about it.Hi0
-
For reference, ticket number 14090532 was raised on your behalf to ask about the first question and helpdesk will contact you soon regarding this
0 -
0
Categories
- All Categories
- 3 Polls
- 6 AHS
- 36 Alpha
- 166 App Studio
- 6 Block Chain
- 4 Bot Platform
- 18 Connected Risk APIs
- 47 Data Fusion
- 34 Data Model Discovery
- 685 Datastream
- 1.4K DSS
- 615 Eikon COM
- 5.2K Eikon Data APIs
- 10 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- 3 Trading API
- 2.9K Elektron
- 1.4K EMA
- 252 ETA
- 556 WebSocket API
- 38 FX Venues
- 14 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 23 Messenger Bot
- 3 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 60 Open Calais
- 275 Open PermID
- 44 Entity Search
- 2 Org ID
- 1 PAM
- PAM - Logging
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 22 RDMS
- 1.9K Refinitiv Data Platform
- 652 Refinitiv Data Platform Libraries
- 4 LSEG Due Diligence
- LSEG Due Diligence Portal API
- 4 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.2K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 12 World-Check Customer Risk Screener
- 1K World-Check One
- 46 World-Check One Zero Footprint
- 45 Side by Side Integration API
- 2 Test Space
- 3 Thomson One Smart
- 10 TR Knowledge Graph
- 151 Transactions
- 143 REDI API
- 1.8K TREP APIs
- 4 CAT
- 27 DACS Station
- 121 Open DACS
- 1.1K RFA
- 104 UPA
- 193 TREP Infrastructure
- 228 TRKD
- 917 TRTH
- 5 Velocity Analytics
- 9 Wealth Management Web Services
- 90 Workspace SDK
- 11 Element Framework
- 5 Grid
- 18 World-Check Data File
- 1 Yield Book Analytics
- 46 中文论坛