-
Notifications
You must be signed in to change notification settings - Fork 26
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
collect_many_bds empty data #8
collect_many_bds empty data #8
Conversation
Thanks @rafaelelter , do you have an example query with output you can show running before and after the fix? It would also be helpful for me to see the types of Bloomberg messages this fix enables dealing with |
Hi @matthewgilbert.
For the security without dividends, the bloomberg response is as follows:
Additionally, when I try to call the
I think that both collectors shouldn't raise exceptions for the presented case. Instead, they should return empty
I didn't make any changes to the |
Could you post the output from running the following the query without parsing / a collector, i.e. res = conn.query(
request_data=rd,
parse=False,
collector=list
)
print(json.dumps(res, indent=2, default=str)) |
Here it is:
|
Thanks for the fix @rafaelelter! |
Hi Matthew!
The way the collector was set, raised an error when the query returned no data.
This way it returns the empty data it receives.
For my applications, this fix made things easier.
This is my first pull request ever, so I apologize in advance for any problems with it.
Cheers