alpha-xone / xbbg

An intuitive Bloomberg API
https://xbbg.readthedocs.io/
Apache License 2.0
246 stars 52 forks source link

support for different authentication method #26

Closed anxl2008 closed 3 years ago

anxl2008 commented 3 years ago

In core/conn.py, can the connect_bbg() method be modified to allow different connection method? I am connecting with bloomberg server api and I will need to manually modify the function to make it work. I think this can simply be done by allowing user to declare and pass a blpapi.session.Session object into the function.

alpha-xone commented 3 years ago

can try installing this version to try out: v0.7.6a1

anxl2008 commented 3 years ago

can try installing this version to try out: v0.7.6a1

This works, thanks.

Does it make sense to have a stand alone login interface for alternative connection method? Passing a session object to bdp() call after first login attempt/wrapping it in if statement doesn't seem an elegant solution.

alpha-xone commented 3 years ago

Not sure how server API works. In normal circumstances login is handled by Bloomberg.