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

UndefVarError: P not defined #18

Closed
dfernandezfraile opened this issue May 6, 2022 · 1 comment
Closed

UndefVarError: P not defined #18

dfernandezfraile opened this issue May 6, 2022 · 1 comment

Comments

@dfernandezfraile
Copy link

Hi, thanks for this software.

I am getting this error when trying the example of call to BLPData.bdh:

DataFrame( BLPData.bdh(session, "PETR4 BS Equity", ["PX_LAST", "VOLUME"], Date(2020, 1, 2), Date(2020, 1, 10) ))

UndefVarError: P not defined

Stacktrace:
[1] Date(blp_datetime::BLPData.BLPDateTime)
@ BLPData ~/.julia/packages/BLPData/pXEwo/src/datetime.jl:25
...

I could circumvent it by commenting out the line 25, so it avoids that check. But I am sure there could be a better way of fixing that.

Thank you very much.

@felipenoris
Copy link
Owner

You are completely right!
This is a bug. Looks like Bloomberg started to set the OFFSET flag on their date time struct. This is now corrected.
Thanks!

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