ℹ️ OpenFin Workspace: OpenFin Workspace is a commercial product and this repo is for evaluation purposes (See LICENSE.MD). Use of the OpenFin Container and OpenFin Workspace components is only granted pursuant to a license from OpenFin (see manifest). Please contact us if you would like to request a developer evaluation key or to discuss a production license.
ℹ️ Bloomberg: The Bloomberg Terminal Connect API is subject to Bloomberg’s licensing terms. Check with your Bloomberg account manager for more information..
- Bloomberg Terminal software installed, running and with a user logged in. Software can be acquired from here: https://www.bloomberg.com/professional/support/software-updates/
- Please see the documentation online for more information - https://developers.openfin.co/of-docs/docs/integration-with-terminal-connect
This application you are about to install is a simple example of connecting to a Bloomberg Terminal.
When a connection is established between your OpenFin app and the Bloomberg Terminal, the Terminal reacts to Interop events and shares the appropriate context. The reaction depends on the type of context. You can configure contexts and intents, but we provide a default configuration for the most common contexts and intents.
The default configuration always directs interop actions to Terminal panel 1 and maps context types and intents to Terminal functions as follows:
Intent Name | ContentType | Terminal Function |
---|---|---|
ViewChart | fdc3.instrument | GP |
ViewContact | fdc3.contact | BIO |
ViewInstrument | fdc3.instrument | DES |
ViewQuote | fdc3.instrument | Q |
This example assumes you have already set up your development environment
To run this sample you must first acquire an API key from Bloomberg. This API key should be inserted in the place indicated in the file bbgtest.ts
const API_KEY = '<Please insert your API key here>';
To run this sample you can:
- Clone this repo and follow the instructions below. This will let you customize the sample to learn more about our APIs.
- Install dependencies and build the code. Note that these examples assume you are in the sub-directory for the example.
npm run setup
-
Optional (if you wish to pin the version of OpenFin Workspace to version 20.0.0 and you are on Windows) - Set Windows registry key for Desktop Owner Settings. This example runs a utility dos.mjs that adds the Windows registry key for you, pointing to a local desktop owner settings file so you can test these settings. If you already have a desktop owner settings file, this script prompts to overwrite the location. Be sure to capture the existing location so you can update the key when you are done using this example.
(WARNING: This script kills all open OpenFin processes. This is not something you should do in production to close apps as force killing processes could kill an application while it's trying to save state/perform an action).
npm run dos
- Start the test server in a new window.
npm run start
- Start the demonstration application.
npm run client
Please note: In the manifest.json file, please change http://localhost:8080
under snapshot/windows/layout/content to point to your domain
"url": "http://localhost:8080/platform/bbgtest.html"
Please also note that you must establish a connection to the Bloomberg Terminal and verify that you receive the "connected" message prior to raising any intents. You may connect to the Bloomberg Terminal via the "Connect to Bloomberg Terminal" button
- If you modify and want to build the code you can run the build command.
npm run build