Reputation: 675
I am trying to use bloomberg API with python. I can make calls to the API when I am on windows with bloomberg terminal running. However, I would like to access the api from a mac/linux machine. I installed the API on my mac using the steps highlighted here:
How to install Bloomberg API Library for Python 2.7 on Mac OS X
Then I setup windows as on a virtual machine with virtualbox
and used bridged connection
so I can ping to the guest and launched bloomberg terminal
However I still cant access bloomberg api
ERROR blpapi_platformtransporttcp.cpp:671 blpapi.session.transporttcp.{2}.<my-guest-ip-address:8194> Connection failed
has anyone done this?
Upvotes: 0
Views: 5366
Reputation: 31
There is a way but it's not easy. You do need to run the terminal/bbcomm in windows, but connect to it from Linux via port forward. I ran it in VM(VBox) inside Linux but it can probably be done on a separate physical PC. The gory details are here.
Upvotes: 3
Reputation: 671
DesktopApi does not support your particular use case and should not be used in such way. You may consider ServerApi or B-Pipe solution for that purpose.
Bloomberg DesktopApi (DAPI) is meant to run on desktop of Bloomberg Terminal user, it connects to the local process bbcomm.exe at port 127.0.0.1 (localhost) and port 8194. On the other hand, ServerApi can connect to a remote host running ServerApi process, it's provided for Server applications for retrieving and disseminating data to Terminal users after performing entitlement checks. ServerApi and B-Pipe require implementing additional coding for Authentication and Authorization.
You can download the ServerApi and/or B-Pipe from WAPI -> API Download Center.
Upvotes: 2