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

Extract fx spot rate along with px_last using get_historical() #44

Open
viphilar opened this issue Jun 21, 2018 · 1 comment
Open

Extract fx spot rate along with px_last using get_historical() #44

viphilar opened this issue Jun 21, 2018 · 1 comment

Comments

@viphilar
Copy link

viphilar commented Jun 21, 2018

In the following example to extract weekly data, is it possible to get FX rates? Just like the BDH excel command where one can provide "FX=EUR" as an argument?

# Weekly data
resp = LocalTerminal.get_historical(['IBM US EQUITY', 'MSFT US EQUITY'], ['PX_OPEN', 'PX_LAST'], 
                                         start='1/1/2014', end='3/1/2014', period='WEEKLY')
@viphilar
Copy link
Author

duh.. nevermind! I figured it out. This works:

# Weekly data
resp = LocalTerminal.get_historical(['IBM US EQUITY', 'MSFT US EQUITY'], ['PX_OPEN', 'PX_LAST'], 
                                         start='1/1/2014', end='3/1/2014', period='WEEKLY', currency='USD')

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

1 participant