bloomberg

Asynchronous data through Bloomberg's new data API (COM v3) with Python?

瘦欲@ 提交于 2019-11-29 21:08:28
Does anyone know how to get asynchronous data through Bloomberg's new data API (COM v3) with Python? I found this code below on wilmott.com and it works just fine, but it's for the old API version. Does anyone know the corresponding code for the new version? from win32com.client import DispatchWithEvents from pythoncom import PumpWaitingMessages, Empty, Missing from time import time class BBCommEvent: def OnData(self, Security, cookie, Fields, Data, Status): print 'OnData: ' + `Data` def OnStatus(self, Status, SubStatus, StatusDescription): print 'OnStatus' class TestAsync: def __init__(self):

Bloomberg API request limit

橙三吉。 提交于 2019-11-29 19:54:50
Is there anyway to determine how many requests or how much data you have in your remaining request limit amount for Bloomberg API? Bloomberg do not state what the explicit limits are, and there is no programmatic way of finding out what the limits are or what proportion of your limits you have used. The best information from Bloomberg that I have found is on the WAPI page (in the terminal). On the menus on the LHS, go to WAPI Home > API Resources > API Data Limits. There are two pages, 'Extended Rules and Usage Limits' and 'Managing Your API Data Limits' that shed some further light on the

Python 2.7 with Bloomberg API import blpapi failure

依然范特西╮ 提交于 2019-11-29 13:40:30
This is my development environment: Windows 7 on a 64-bit HP Pavilion laptop Python 2.7, 32-bit in folder C:\python27 Development environment is Eclipse with PyDev, but this doesn't seem to matter, because I get the same kind of failure whether I use Anaconda or Notepad++. Python 2.7 Binary Installer for Windows - 32-bit v3.5.3 Having set the Environment PATH in Windows for Python, the BLPAPI does find and install into the C:\Python27 directory, creating C:\Python27\Lib\site-packages\blpapi . Previous to my 32-bit installation of Python and BLPAPI I tried the 64-bit Python 2.7 with the 64-bit

Bloomberg Server API and Ruby/Python

浪尽此生 提交于 2019-11-29 10:59:55
问题 Im looking to write a new application in ruby/python which uses a feed from bloomberg and am stuck trying to find any documentation for using (or even setting up) Bloomberg Server API with either of these languages. Does anyone have any good links to tutorials for this or maybe some boilerplate code to get set up? Or is it best to just stick to the three main supported languages? 回答1: Did you check out some questions at SO on this. It might help you Bloomberg API request timing out

package 'Rbbg' is not available (for R version 2.15.2)

筅森魡賤 提交于 2019-11-29 10:39:00
How do I find out for which versions of R this package is available? > install.packages("Rbbg", repos = "http://r.findata.org") Warning: unable to access index for repository http://r.findata.org/src/contrib Warning message: package 'Rbbg' is not available (for R version 2.15.2) You can find out by browsing the bin directory at http://r.findata.org/ You're using Windows, right? The source code for Rbbg is available on github at https://github.com/johnlaing/blpwrapper Part of the issue here that is non-standard is it's looking for source by default, rather than binary. Warning in install

Anaconda - Install blpapi in environment

谁说我不能喝 提交于 2019-11-29 08:44:57
I have py2.7 as my original Anaconda install, and have installed py3.4 in an environment named py3 . I cannot seem to be able to install blpapi , the Bloomberg API library, in the py3 environment. Once I activate py3 , conda install blpapi cannot find the package, whereas pip install blpapi tells me that: Requirement already satisfied: blpapi in C:\users\pythonic\programs\anaconda\lib\site-packages Because it finds the package installed for python 2.7 If I try to install via the executable from here it tells me that it cannot find python 3.4 in the registry. How do I install this package? Edit

VBA: Waiting for Bloomberg BDP calls to finish

北慕城南 提交于 2019-11-29 04:55:57
I have a script that imports some external data into the worksheet, which in turn affects some =BDP(...) formulas. Optimally, I'd like to do some checks on the BDP results immidiately after copying the data. The Bloomberg Excel Add-in updates asynchronously - how do I wait for the results and then resume the script? It seems that the results are only imported after the VBA script finishes, no matter how long it runs. Thanks in advance Martin I built something similar using BDH. I had to release control so that the Bloomberg add-in can go and collect the data, then resume my code. I was able to

How to open a specific bloomberg terminal page programmatically?

我怕爱的太早我们不能终老 提交于 2019-11-28 19:46:34
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 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

VBA to refresh Bloomberg data not running in proper order

不羁岁月 提交于 2019-11-28 10:37:46
my purpose is to update Bloomberg data and do some calculatations with different tickers. But it seems that VBA will run all the calculations without waiting the data to be updated. Here is the code: Application.Calculation = xlCalculationAutomatic For i = 1 To 3 Call Worksheets("Sheet1").Range("data1").Select 'the cells "data1" contains the function =BDH(ticker, field, start date, end date) to get the information from Bloomberg' Call Application.Run("RefreshCurrentSelection") Worksheets("sheet1").Range("d3").Value = Worksheets("sheet1").Range("sum") 'the cells "sum" takes the sum of all BB

Python 2.7 with Bloomberg API import blpapi failure

社会主义新天地 提交于 2019-11-28 07:36:43
问题 This is my development environment: Windows 7 on a 64-bit HP Pavilion laptop Python 2.7, 32-bit in folder C:\python27 Development environment is Eclipse with PyDev, but this doesn't seem to matter, because I get the same kind of failure whether I use Anaconda or Notepad++. Python 2.7 Binary Installer for Windows - 32-bit v3.5.3 Having set the Environment PATH in Windows for Python, the BLPAPI does find and install into the C:\Python27 directory, creating C:\Python27\Lib\site-packages\blpapi .