Questions tagged [blpapi]

API to Bloomberg data services, available in a variety of languages

The Bloomberg API (BLPAPI) is a comprehensive API providing access to financial market data feeds provided by Bloomberg's products (Bloomberg Professional Service, Platform, B-Pipe and others). The API is free-to-use and distribute; documentation and library downloads are available from the Open Bloomberg site. API libraries are offered for many platforms (Windows, Linux, and Solaris) and for a variety of programming languages (C, C++, C#, Java, Python and more).

This tag should be used for asking questions about the usage of the API itself, but not for technical support questions about Bloomberg's services and products. For example, if you cannot establish a server session using the API because the library cannot connect, you should contact Bloomberg's customer support team. However, if you are unsure how to apply a particular API call to the problem you are trying to solve, ask away right here on Stack Overflow, and be sure to tag your question appropriately with the platform and language you are developing with.

166 questions
3
votes
0 answers

Importing the blpapi package is giving SyntaxError?

I am running Miniconda 3.7 64-bit. I have successfully installed the blpapi package by running the command > python -m pip install --index-url=https://bloomberg.bintray.com/pip/simple blpapi. I have also downloaded the c++ sdk from here…
Alex F
  • 2,086
  • 4
  • 29
  • 67
3
votes
2 answers

Field override for bdh() in pdblp

Bloomberg help isn't very helpful for their API. Can anyone please explain how to replace PX_LAST with the dividend adjusted price field. I have attempted the following but have been unsuccessful import pdblp con = pdblp.BCon() con.start() df2 =…
Ali
  • 33
  • 1
  • 6
3
votes
1 answer

How to download Corporate Actions using Bloomberg blpapi

I want to download Corporate Actions from Bloomberg (specifically Bankruptcy Filing, Default Corp Actions, Default Resolution) automatically every month and save it somewhere. To do this, I am using Java blpapi. What I actually want to retrieve is…
Krish
  • 319
  • 4
  • 19
3
votes
1 answer

python blpapi installation error

I am attempting to install blpapi-3.5.5 for python according to the instructions in the README, but when running python setup.py install I get the following error: running install running build running build_py running build_ext building…
L1meta
  • 363
  • 4
  • 14
3
votes
1 answer

parsing the bloomberg response in Java

I get the bloomberg response like this. I would like to parse this and get the values out to be put in a excel or csv. Bloomberg response is a headache in kind-of XML response. Is there a simple way to directly parse into JSON ? (from object…
Arun Raja
  • 1,554
  • 16
  • 26
3
votes
1 answer

Bloomberg API Python 3.5.5 with C++ 3.8.1.1. on Mac OS X import blpapi referencing

I am trying to install and run successfully Bloomberg API Python 3.5.5 and I have also downloaded and unpacked C++ library 3.8.1.1., both for the Mac OS X. I'm running Mac OS X 10.10.2. I am using the Python native to Mac OS X, Python 2.7.6 and I…
2
votes
1 answer

Pricing Currency Override in bloomberg api wrapper blp

I'm using the BLP Package as a wrapper around Bloomberg's API. In the excel bloomberg api, I'm pulling a ticker called FUND_TOTAL_ASSETS. That value can be in any of several currencies. But by adding the "FX=USD" parameter to my BDH() query, it…
user3556757
  • 3,469
  • 4
  • 30
  • 70
2
votes
0 answers

SubscriptionLost when trying to subscribe to real time events with BLPData.jl

Using Julia 1.8.3, and following the example from the BLPData website, I get the following: julia> using BLPData julia> session = BLPData.Session() Session services available: Set(["//blp/refdata", "//blp/mktdata"]) julia> topic =…
sob
  • 111
  • 4
2
votes
0 answers

Speeding up xbbg.blp requests

I am trying to query a bunch of deal tickers using xbbg.blp.bdp However when entering the deals as a list: from xbbg import blp blp.bdp(tickers=deal_list,flds=flds_list) the return dataframe sometimes have all the tickers, but most of the time half…
zbai
  • 21
  • 2
2
votes
1 answer

How do I load Bloomberg Live curve in Python

Using xbbg, i try to retrieve the bloomberg swap curve (s23 also known as YCSW0023 Index). To do so I do : from xbbg import blp import asyncio async def main(): async for d in blp.live('s23', max_cnt = 1): print(d) await main() …
TourEiffel
  • 4,034
  • 2
  • 16
  • 45
2
votes
2 answers

Dealing with bloomberg Blpapi element that returns HasElement() as True but causes not found exception

I am consuming trade and quote data with BLPAPI in C#. When I process a LAST_TRADE_PRICE_TIME_TODAY_RT like this using //blp/mktdata service and processing the SUBCRIPTION_DATA event fine except for this message element: {MarketDataEvents = { …
azuric
  • 2,679
  • 7
  • 29
  • 44
2
votes
3 answers

How to use the BQL Bloomberg excel formula for python API (xbbg or blpapi)?

Is there a way to use the BQL-formula in Python in the BLPAPI or XBBG API's instead of looping through a bunch of tickers to retrieve data on i.e. all of the stocks of the S&P500 using a BDP or BDS formula? (This will quickly reach the data limit…
Jørgen
  • 37
  • 2
  • 6
2
votes
0 answers

Intermittent blank DataFrame with xbbg BDP calls

I have an issue where occasionally blp.bdp() from xbbg returns an empty DataFrame, even though the security and the field data exists in Bloomberg. This seems to be an intermittent issue, as when I re-run the call for a particular bond the data…
DS_London
  • 3,644
  • 1
  • 7
  • 24
2
votes
1 answer

XBBG works for historical, but not intraday, data with regards to government bonds

I'm using the xbbg library to download bloomberg data and all is well so long as I stick to equities and/or end of day data. But if I try to get intraday data for a government bond, it fails to find the exchange. blp.bdib(ticker='US912810SM18 Corp',…
Juan Q
  • 29
  • 1
  • 2
2
votes
2 answers

Bloomberg APIs - historical index members in Python

I'm trying to get index members using Bloomberg APIs in Python. I have no issues getting current constituents, but I want a historical list (example: what where Russell 1000 or S&P 500 constituents as of Q1 1995). To get the current index members I…
k0rnik
  • 472
  • 5
  • 13
1
2
3
11 12