Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Has anyone been able to successfully use RT_PX_CHG_PCT_1D to retrieve real time pct change data? #55

Open
viphilar opened this issue Aug 23, 2019 · 1 comment

Comments

@viphilar
Copy link

I am trying to implement the python equivalent of the excel command, BDP("SPX Index", "RT_PX_CHG_PCT_1D") but I see NaN. Anyone knows how to fix this?

Here is how I am using it in my python code. I have a dataframe, df that holds indexes like SPX Index, etc. I use the get_reference_data() method to retrieve real time %age change of price but I get NaN:

temp = LocalTerminal.get_reference_data(df['Index'], ['RT_PX_CHG_PCT_1D'], ignore_field_error=1, ignore_security_error=1)
newDf = temp.as_frame()

My output is:

                  RT_PX_CHG_PCT_1D

SPX Index NaN

Any thoughts?

@dpsugasa
Copy link

dpsugasa commented Aug 25, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants