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

Accessing Bloomberg data from Rblpapi within a Docker container with terminal running on host #219

Open
bmpalatiello opened this issue Feb 21, 2017 · 3 comments

Comments

@bmpalatiello
Copy link

I have a Bloomberg terminal running on the host machine, how can a container with R, Rblpapi, and blpapi from Bloomberg connect to the session on the host so I can download data with the API?

@eddelbuettel
Copy link
Member

eddelbuettel commented Feb 22, 2017

You need to assert on your end whether such usage is within the parameters of your Bloomberg usage agreement -- there is language about data not going beyond the machine it is used on etc. A virtual machine or container on the same PC may or may not be ok.

But if look at the docs eg page 24 of the pdf you see that traffic goes to port 8194 of the machine localhost (ie: by default the same machine). You can override the host and port parameters in blpConnect() and see if your container environment can access the Bloomberg application on the host.

@ChloeTian
Copy link

I have a Bloomberg terminal running on the host machine, how can a container with R, Rblpapi, and blpapi from Bloomberg connect to the session on the host so I can download data with the API?

Hi,
Thank you for your questions.
Basically, what I'm doing is quite similar like what you have described in the question. May I ask how's it going so far? What do you do with the Bloomberg Communications Server which is named bbcomm.exe when you build your dockerfile? I guess what you use is the Bloomberg Desktop API and it needs the bbcomm.exe running when your R code running on the host. Thanks.

@cschrammel
Copy link

Hi! I'm curious if you got this working. Can you run bbcomm.exe on the host, and connect to it by using the host.docker.internal ip in your R code?

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

4 participants