blpapi

Bloomberg API request timing out

大城市里の小女人 提交于 2019-12-22 06:36:40
问题 Having set up a ReferenceDataRequest I send it along to an EventQueue Service refdata = _session.GetService("//blp/refdata"); Request request = refdata.CreateRequest("ReferenceDataRequest"); // append the appropriate symbol and field data to the request EventQueue eventQueue = new EventQueue(); Guid guid = Guid.NewGuid(); CorrelationID id = new CorrelationID(guid); _session.SendRequest(request, eventQueue, id); long _eventWaitTimeout = 60000; myEvent = eventQueue.NextEvent(_eventWaitTimeout);

How do I store data from the Bloomberg API into a Pandas dataframe?

和自甴很熟 提交于 2019-12-20 08:13:20
问题 I recently started using Python so I could interact with the Bloomberg API, and I'm having some trouble storing the data into a Pandas dataframe (or a panel). I can get the output in the command prompt just fine, so that's not an issue. A very similar question was asked here: Pandas wrapper for Bloomberg api? The referenced code in the accepted answer for that question is for the old API, however, and it doesn't work for the new open API. Apparently the user who asked the question was able to

How do I store data from the Bloomberg API into a Pandas dataframe?

若如初见. 提交于 2019-12-20 08:11:37
问题 I recently started using Python so I could interact with the Bloomberg API, and I'm having some trouble storing the data into a Pandas dataframe (or a panel). I can get the output in the command prompt just fine, so that's not an issue. A very similar question was asked here: Pandas wrapper for Bloomberg api? The referenced code in the accepted answer for that question is for the old API, however, and it doesn't work for the new open API. Apparently the user who asked the question was able to

How do you Download Bloomberg intraday data

余生颓废 提交于 2019-12-08 08:23:13
问题 How do you get intraday 1 minute data from Bloomberg please? I want bid & ask for 5 futures saved as a data frame please. Thanks. 回答1: I believe you are looking for the Intraday 1-minute bar data, Open, High, Low, Close, etc. You will need to use IntradayBarRequest to //blp/refdata service. Revised answer: Send two IntradayBarRequest's, one for BID and the other for ASK event type, with interval = 1 minute to //blp/refdata service. Extract the "Open" element from each data point in response

How can I start Bloomberg API in python?

给你一囗甜甜゛ 提交于 2019-12-06 15:57:30
问题 I managed to install blpapi in my python. However, there is error Exception: failed to start session My simple code is as follows. import blpapi import pandas as pd import tia.bbg.datamgr as dm mgr = dm.BbgDataManager() sids = mgr['MSFT US EQUITY', 'IBM US EQUITY', 'CSCO US EQUITY'] df = sids.get_historical('PX_LAST', '1/1/2014', '11/12/2014') What Can I do with this? Can you help? 回答1: Please clarify which IP and port you're attempting to connect to. If connecting to the local process

How can I start Bloomberg API in python?

余生长醉 提交于 2019-12-04 21:14:16
I managed to install blpapi in my python. However, there is error Exception: failed to start session My simple code is as follows. import blpapi import pandas as pd import tia.bbg.datamgr as dm mgr = dm.BbgDataManager() sids = mgr['MSFT US EQUITY', 'IBM US EQUITY', 'CSCO US EQUITY'] df = sids.get_historical('PX_LAST', '1/1/2014', '11/12/2014') What Can I do with this? Can you help? Please clarify which IP and port you're attempting to connect to. If connecting to the local process 'bbcomm.exe' then the IP is 127.0.0.1 (localhost) and port 8194. Check if bbcomm.exe process is running (e.g. in

Starting bbcomm in Java v3 Bloomberg API

痞子三分冷 提交于 2019-11-30 20:25:59
When I use the Java Bloomber V3 API it usually works. However, sometimes, especially after a reboot, bbcomm.exe is not running in the background. I can start it manually by running blp.exe, but I wondered if there was a way of doing this via the API? I'm still waiting on Help-Help ... After talking to the help desk, it turns out that on 64 bit Windows, running under a 64bit JVM bbcomm is not automatically started. This does not happen under 32bit Java - under 32 bit bbcomm automatically runs. So my solutions are either to wait for the problem to be fixed by Bloomberg (now I understand it) or

Starting bbcomm in Java v3 Bloomberg API

与世无争的帅哥 提交于 2019-11-30 04:59:19
问题 When I use the Java Bloomber V3 API it usually works. However, sometimes, especially after a reboot, bbcomm.exe is not running in the background. I can start it manually by running blp.exe, but I wondered if there was a way of doing this via the API? I'm still waiting on Help-Help ... 回答1: After talking to the help desk, it turns out that on 64 bit Windows, running under a 64bit JVM bbcomm is not automatically started. This does not happen under 32bit Java - under 32 bit bbcomm automatically

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

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 .