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

'GSERFCI INDEX' cause problem #92

Open
lastrocer opened this issue Feb 23, 2021 · 1 comment
Open

'GSERFCI INDEX' cause problem #92

lastrocer opened this issue Feb 23, 2021 · 1 comment
Labels

Comments

@lastrocer
Copy link

I can replace 'GSERFCI INDEX' with 'not a ticker' the program run fine but if I use 'GSERFCI INDEX'. code doesn't run poperly.
no df_out and problem_tickers='index' . There are several "name" cause the problem this is one of them.

Can you help? thank you.

con = pdblp.BCon()
con.start()
tickers = [['C US Equity','SPY US Equity','IBM US Equity', 'S5INSS INDEX', 'GSERFCI INDEX']]
df_out = pd.DataFrame()
L = []
for i in tickers:
try:
df = con.ref(i, ["PX_LAST"])
df_out = df_out.append(df)
except Exception as e:
problem_ticker = e.args[0].split()[-1]
L.append(problem_ticker)
problem_tickers = pd.DataFrame(L, columns=['TICKER'])

@matthewgilbert
Copy link
Owner

You probably want to set con.debug = True and look at the output for indications of the possible issue.

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

2 participants