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

Using overrides in get_historical #41

Open
Simplex122 opened this issue Jan 18, 2018 · 3 comments
Open

Using overrides in get_historical #41

Simplex122 opened this issue Jan 18, 2018 · 3 comments

Comments

@Simplex122
Copy link

Hello.

I am trying to use the override "FWD_CURVE_QUOTE_FORMAT=RATES" in the following get_historical request, but I am not sure of the correct syntax
G10_test = inp.get_historical('PX_LAST',start_date, end_date).
Can someone please help?

@nschantz21
Copy link

The overrides are supplied as keyword arguments to the function.
get_historical(security, field, start_date, end_date, FWD_CURVE_QUOTE_FORMAT='RATES')
The override needs to be associated with the field being requested as documented in the Bloomberg Terminal. So if FWD_CURVE_QUOTE_FORMAT isn't available for PX_LAST, then it won't change anything. Similarly, if 'RATES' is not a valid value for that override, then it will not work.

@frankrao56
Copy link

Does anyone know how to override start time and end time in a VWAP field for an Equity. (ie: VWAP of IBM from 15:00 to 15:30)
It is possible with =BHD/BDP on Excel, but I can't seem to make it work in python.
Thanks

@mrkchn
Copy link

mrkchn commented Nov 20, 2020

@frankrao56 the overrides are VWAP_DT, VWAP_START_TIME, VWAP_END_TIME. The date format is "%m/%d/%Y" and the time format is "%H:%M:%S". However, because the VWAP_DT override is specific to a particular data point (not the whole time series), you can't use the get_historical function. You need to use get_attributes, and query one date at a time. If anyone finds a faster way to get VWAPs for multiple dates in a single request, please let me know!

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

4 participants