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

error retrieving data when using a B-pipe server (works with local host via DAPI ) #168

Open
JasonAQS opened this issue Apr 30, 2016 · 5 comments

Comments

@JasonAQS
Copy link

just started playing with RBLPAPI package, it works great with Bloomberg's DAPI using the local host.
blpconnect()
rtData <- bdp("ESM6 Index","PX_LAST")

When I tried the same script using B-pipe, it seems to connect fine:
blpconnect("64.184.xxx.xx",8194L) # 64.184.xxx.xx is the ip address for the b-pipe server
but the bdp function returns an error:
rtData <- bdp("ESM6 Index","PX_LAST")

Error: Choice sub-element not found for 'SecurityData'

The strange thing is that from the same workstation, I can retrieve the same data from B-pipe via Excel add-in or Bloomberg's API demo executable.
Any thoughts on what may cause this problem?

@JasonAQS
Copy link
Author

JasonAQS commented May 2, 2016

Update: downloaded the Rblpapi-master from GitHub to look at C++ source code. Now the problem is clear, it's due to authorization. B-pipe requires authorization (via Identity) per request, and the current Rblpapi package's authenticate.cpp doesn't quite support B-pipe's requirements yet. I've added another function (authenticate_impl2) to support B-pipe using token -- getting very close to make it work, I can see the token created, authorization is successful, and an Identity is returned. However, when passing the Identity pointer to subsequent BDP calls (B-pipe requires sending the Identity every request), it doesn't work (most of times it returns INVALID_USER, a few times it hangs).
Anyone has a working example of B-pipe authentication in C++? Appreciate it!

@ladida771
Copy link

I have exactly the same problem. Did you make any progress on this? Would you mind sharing your function authenticate_impl2?

@michaelcristofi
Copy link

Any updates here? Struggling with the same issue...

@randomee
Copy link
Contributor

This is quite old, but I believe is now solved with @alfredkanzler 's B-PIPE application-name code.

There are still functions w/o support for identity objects, but that's a separate issue. #284

Guessing this is ok to close?

@eddelbuettel
Copy link
Member

Yes, I'd think this can be closed.

@JasonAQS @ladida771 @michaelcristofi If you could try the current CRAN version....

Thanks again to @alfredkanzler for adding this.

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

5 participants