I want to get USA Fund NetValue using python, can anybody tell me how to do this? Thank you
I suggest you speak to your local Thomson Reuters Support Desk and build out an excel model with their help first - this will get you familiarised with the data model. Alternatively, you can pick a sample instrument and open it in the Data Item Browser app (DIB) on Eikon to find the proper field.
Here is a quick sample for an US ETF:
df, e = tr.get_data(['QQQ.OQ'], ['TR.FundNAV'])
Many thanks. I used PyCharm to develop my python programme. Which library should I include first? For example, when we use pandas ,we often used like the following:
# -*- coding: utf-8 -*-from datetime import *from pandas import DataFrame,Seriesimport pandas as pdimport osimport loggingimport math
Also another question, I see your code,I should input the Fund Code to get its netvalue. then,how can I get the full fundcode of USA fund market?
You should install the eikon package with pip and import it. Have a look at this tutorial to set up the dev environment.
As I proposed originally, I suggest you discuss this with your local support desk and build out your workflow with excel.
@qidifei I suggest you also see the following tutorial, which talks at length about metadata discovery (how you can find symbols, fields and parameters to use in your data requests) and about modeling data retrieval in Excel and translating it into Python code.https://developers.thomsonreuters.com/eikon-apis/eikon-data-apis/learning?content=14707&type=learning_material_item
Thank you for your help. I have installed eEikon using PIP ^_^
Many thanks! Your share is very useful