Pythonic
Pythonic

Reputation: 2131

Accessing Bloomberg API from client's browser in javascript

Is it possible to access blpapi from javascript running in the client's browser?

I wish to access bloomberg's API from javascript running in the client's browser, in the assumption that the client has an open bloomberg session and therefore bbcomm is running.

Conceptually, this would be the same as accessing the blpapi on the client side from python.

However, all existing solutions I found in js appear to be server-side:

blpapi-node (node-based)

blpapi-httm (creates a server where to post http request)

blpapi-react (cannot make this module work)

Upvotes: 1

Views: 3787

Answers (2)

Pythonic
Pythonic

Reputation: 2131

This is obsolete, see Mourad Barakat's answer above

Conversation with Bloomberg Support confirms this is not possible**

BB say they don't support javascript access, and that one solution is to use their Server API to use the authentication of the client (who has a bb terminal open) to query data and return it to the client

An alternative hack

An alternative hack is to create an executable mini-server that the client downloads and launches, and that offers an http interface to get data to the webapp.

For example, this could be done in Flask in Python, and in fact it has already been done by blpapi-web (excluding the executable part, for which you can use PyInstaller and py2exe for Windows and py2app for Mac)

Upvotes: 1

Mourad Barakat
Mourad Barakat

Reputation: 671

Now you can access Bloomberg data natively in JavaScript via Web AppPortal. This allows you to write web based applications that run inside LP Components.

To learn more about Web AppPortal, go to MYAP 5

To download the SDK, please type SDK -> select SDK -> AppPortal Web SDK -> click Install.

Upvotes: 2

Related Questions