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

BDS type of call #25

Closed
ahmasoh1992 opened this issue Feb 13, 2018 · 3 comments
Closed

BDS type of call #25

ahmasoh1992 opened this issue Feb 13, 2018 · 3 comments
Labels

Comments

@ahmasoh1992
Copy link

ahmasoh1992 commented Feb 13, 2018

Hey Guys,

If I want to do a BDS type of call, say:

=BDS("SPX Index","INDX_MWEIGHT_HIST", "END_DATE_OVERRIDE=20151231")

I assume it's along the lines of:

con.ref(["SPX Index"],"INDX_MWEIGHT_HIST", [("END_DATE_OVERRIDE","20150715")])

But this seems to throw up:
Traceback (most recent call last):
  File "<input>", line 1, in <module>
  File "...\Python27\site-packages\pdblp\pdblp.py", line 242, in ref
    ovrds, [])
  File "...\Python27\site-packages\pdblp\pdblp.py", line 125, in _create_req
    for ovrd_fld, ovrd_val in ovrds:
ValueError: need more than 1 value to unpack

Know what's going on?

@cedricyau
Copy link

cedricyau commented Feb 13, 2018 via email

@ahmasoh1992
Copy link
Author

Wow thanks, why does that work? Is that a bug?

@matthewgilbert
Copy link
Owner

This is not a bug, the syntax for accessing the Bcon.ref (and the rest of pdblp) is not a direct translation of the excel syntax.

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

No branches or pull requests

3 participants