How to open a specific bloomberg terminal page programmatically?
Asked Answered
H

4

10

Is there a reliable way to open a specific bloomberg terminal page programmatically (e.g. "MSFT Equity")?

I am open to any suggestions and code samples:

  • Start process with path to bloomberg terminal executable and ticker in the arguments
  • Bloomberg API
  • DDE
  • COM Automation
  • SendKeys (can be blocked by some antivirus software)
  • ...

Many thanks

Hendrick answered 4/9, 2010 at 23:0 Comment(3)
Doesn't opening a terminal require a screwdriver? API sounds like the next best approach. about.bloomberg.com/contact_softwaresupport_api.htmlRudie
@Hans : To my knowledge, bloomberg API doesn't allow this ; have you got any specific pointers to share ?Octans
I've got a screwdriver, that's about it. Why don't you call them for support?Rudie
S
11

You can get the answer to this through the terminal:

API < GO > > API Developer's Website > WAPI Home > FAQs > Miscellaneous Topics

And the specific question is How can I communicate programmatically with the Bloomberg Professional?

The string you need to send over DDE is

<blp-1><home>MSFT US<EQUITY><GO>DES<GO>
Salop answered 17/1, 2011 at 12:49 Comment(2)
Can this be used to send Instant Bloomberg messages too?Pastry
@JohnZabroski Yes, DDE can be used to send Bloomberg MSGE/MSGZ if that was your questionUthrop
P
6

Support for DDE has now been deprecated. From the WAPI miscellaneous topics page

  1. Do you support retrieving Bloomberg API data programmatically with DDE?

No. We no longer support retrieving Bloomberg data programmatically via the API with DDE. In fact, all DDE help and example content specific to requesting Bloomberg API data with DDE into an application, has been removed. This decision was made for the following reasons: 1.The DDE Server was originally developed to act only as a conduit for retrieving Bloomberg data into Microsoft Excel worksheet cells via Bloomberg DDE links entered into these cells. It was not intended to be used as a programming interface within an application. 2.There are much more efficient and powerful alternatives to requesting Bloomberg API data programmatically from within an application than using DDE (i.e. DDERequest()). In the case of development environments such as Microsoft Excel and Access VBA, for instance, we recommend that you use the COM v3 Data Control. This interface is easy to program to and capable of giving you more control over your request and more flexibility with processing the data reply. In the case of C++, we recommend either the C v3 API interface, or the . For .NET applications, you will want to use the .NET v3 API interface.

We provide samples for all of these interfaces in the Desktop API SDK installation package, which is available for download from the API Download Center.

Peso answered 11/11, 2014 at 9:22 Comment(0)
N
4

You can use javascript to create an ActiveX object new ActiveXObject("Excel.Application"). From this you can use DDE to access an open Bloomberg Terminal Window DDEInitiate("Winblp", "bbk") and send it a command.

Ningpo answered 19/10, 2010 at 19:32 Comment(0)
N
3

A small point to note here is in

<blp-1><home>MSFT US<EQUITY><GO>DES<GO>

blp-1 is basically blp- + (window number -1)

so if you want to target BLOOMBERG-3 use blp-2 (3-1 = 2)

Nonah answered 17/4, 2012 at 11:34 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.