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

Question #19

Closed
MC1892 opened this issue Nov 10, 2022 · 0 comments
Closed

Question #19

MC1892 opened this issue Nov 10, 2022 · 0 comments

Comments

@MC1892
Copy link

MC1892 commented Nov 10, 2022

Code Sample, a copy-pastable example if possible

bbg_strings = list(df.bbgstring.unique())
mkt_px = list(df.mkt_price)

bquery = blp.BlpQuery().start()

for x, y in zip(bbg_strings, mkt_px):
bquery.bdp(x,['YLD_CNV_BID'], overrides=['PX_BID'], y)

# Your code here, this should be a minimal reproducible example, see https://stackoverflow.com/help/mcve

Problem description

I am new to python and trying to figure out how to pass a list of fixed income securities to the query along with a list of the prices of those securities as overrides to calculate the yield of those securities. This code returns a value error: too many values to unpack.

Expected Output

a dataframe with the yields for the list of securities

@matthewgilbert matthewgilbert closed this as not planned Won't fix, can't repro, duplicate, stale Jun 9, 2023
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