[R-SIG-Finance] Rblpapi connection issue

John Laing john.laing at gmail.com
Fri Jan 22 13:11:36 CET 2016


There are a few things causing you problems here. First, the real answer
for you:

If you're running the usual setup, where both R and Bloomberg are local to
your desktop, you don't need to use blpAuthenticate at all. Because you're
connecting through your own terminal your API connection will inherit all
of your settings. This function exists for use with Server API, in which
many users connect through a single headless process.

And additional detail on the side-issues:
* Don't worry about the defaultConnection() function. It is just a shortcut
for managing a single connection (the most common use case) rather than
having to pass the connection object into every. single. function. call. It
is not exported from the package, which is why you can't find it.
* Because of the above, you don't need to fiddle with the con argument in
general. Your trouble with blpAuthenticate is coming from the
host/ip.address arguments. To the extent you need to use this (and you
probably don't), you should use the IP address associated with your

Hope that helps,

On Fri, Jan 22, 2016 at 5:17 AM, Will Oswald <will.oswald at gmail.com> wrote:

> Thanks Nick. I tried that option, but my processes just hang.
> On 22 Jan 2016, at 6:11 PM, Nick White <n-e-w at qtradr.net> wrote:
> Does it not work if you just enter:
> conn <-blpConnect()
> without more?
> That should usually be enough to get you up and running with the rest of
> the package unless you have some significantly different defaults
> The above assumes you're on a Win box, Bloomberg terminal is open on the
> same machine as your R instance (ie desktop API), you are logged in and you
> have no other issues connecting to the API (check if you can use the Excel
> API)
> On Fri, Jan 22, 2016 at 5:12 PM, Will Oswald <will.oswald at gmail.com
> <mailto:will.oswald at gmail.com>> wrote:
> I am unable to authenticate my Bloomberg data connection using the Rblpapi
> function, blpAuthenticate. I have used the following: uuid = Taken from the
> "IAM " screen, both as a character type as well as numeric host = Using
> "CONN ", I have chosen the host name listed "Adapter Info" tab ip.address =
> Again, from "CONN ", I have used the IP Address shown there (as a
> character).
> If I use the blpConnect function, as specified in help, I can connect but
> if I call the defaultConnection() function, I get an error stating this
> function cannot be found. If I alternatively call the blpConnect function
> in this call, the process just hangs and never completes.
> Any suggestions please on whether I have either set the parameters, or if
> there are other checks I need to make in order to connect? As a final note,
> I’m connecting to Bloomberg using Internet rather than a Private IP network
> (I’m running Bloomberg on a home computer).
>         [[alternative HTML version deleted]]
> _______________________________________________
> R-SIG-Finance at r-project.org <mailto:R-SIG-Finance at r-project.org> mailing
> list
> https://stat.ethz.ch/mailman/listinfo/r-sig-finance <
> https://stat.ethz.ch/mailman/listinfo/r-sig-finance>
> -- Subscriber-posting only. If you want to post, subscribe first.
> -- Also note that this is not the r-help list where general R questions
> should go.
>         [[alternative HTML version deleted]]
> _______________________________________________
> R-SIG-Finance at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-sig-finance
> -- Subscriber-posting only. If you want to post, subscribe first.
> -- Also note that this is not the r-help list where general R questions
> should go.

	[[alternative HTML version deleted]]

More information about the R-SIG-Finance mailing list