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
2
votes
2 answers

Bloomberglp.Blpapi.RequestQueueOverflowException: Queue Size: 128

I can't figure out what the problem is with Bloomberg API. Everytime when I try to download historical finance data, that means to create a DataRequest for 5000 instruments for 3 days once for euro currency and once for local currency, I get this…
Stylus
  • 89
  • 8
1
vote
1 answer

How to pull all available bonds listed on a particular exchange(NYSE) using Xbbg or blpapi Python?

I'm trying to pull all available bonds in an exchange(NYSE) from the Blomberg terminal via Python. I want to retrieve the various bond data fields like say(Option Adjusted Spread ,S&P Rating, Yield to Maturity, Sector). How can I be able to achieve…
1
vote
1 answer

Subscription fees to use blpapi package

I am want to connect/know if there are ways to get Bloomberg data to Python. I see we can connect through blpapi/pdblp package. So wanted to check what is the pricing for this. Appreciate if anyone can help me here? Getting ways to connect to Python…
navee pp
  • 77
  • 6
1
vote
1 answer

Monthly Data Produces NaNs in Dataframe

When fetching monthly data using xbbg, I have been running into an issue when I mix the BAUBIL Index with the LEGATRAH Index. I am expecting to get a dataframe with one entry at the end of each month, but end up with two in some months, with one as…
CerealMilk
  • 13
  • 4
1
vote
1 answer

Accumulate results of each intermediate recursive call using F# and Bloomberg API

I'm using the B-Pipe API to request financial securities data from Bloomberg. Large requests are divided into small groups and returned as PARTIAL_RESPONSE with the final response being RESPONSE. The recursive handleSingleEvent function recurses…
LearnerX
  • 137
  • 2
  • 8
1
vote
2 answers

Using blpapi and xbbg to pull member holdings and weight data from Bloomberg?

Beginner Python user here. I was wondering if anyone has had any success using blpapi and xbbg to pull member holdings and constituent weight data directly into Python from Bloomberg (e.g. from a portfolio or ETF or index). I have a BBG license, of…
ERhelpPlz01
  • 29
  • 1
  • 5
1
vote
1 answer

How to get FX Forward Rates instead of Points in BLPAPI in Python

I am trying to get "CHF1M Curncy" as Forward Rates and not as points from Bloomberg API BLPAPI in Python. The Code itself works fine for the Forward Points, but as soon as I use the override to switch from Points to Rates, I get an error "No value…
peter113
  • 11
  • 3
1
vote
0 answers

xbbg returns empty DataFrame whatever the query

I am trying to use the Bloomberg Python API. As I have no idea how to use the blpapi package even after reading the examples, I am trying to use xbbg package. I tried a few of the basic examples such as : from xbbg import blp blp.bdp(tickers='NVDA…
Madininais
  • 100
  • 9
1
vote
1 answer

ERROR: Could not find a version that satisfies the requirement blpapi

I'm trying to install blpapi (python 3.7.3) using the steps described in the Bloomberg API library (https://www.bloomberg.com/professional/support/api-library/) I installed the C++ API (also from the Bloom API library) and copy pasted blpapi3_32.dll…
Emmanuel168
  • 21
  • 1
  • 5
1
vote
2 answers

Bloomberg Anywhere + pdblp or xbbg + not logged in

SO, I am hoping for some clarity on how the Python API works when you are not logged in. I have a Bberg Anywhere account and have some scripts I'd like to run in the morning before I start my day. Do I need to be logged in? If not, do I need to…
antonio_zeus
  • 477
  • 2
  • 11
  • 21
1
vote
1 answer

How to check if the subscription status is bad in Bloomberg Python API subscription?

I am writing a program for doing Bloomberg data-feed check using the subscription method of Python API. I am close to finishing it and I am now trying to cover edge cases such as a failed subscription. I want to check if a subscription has failed.…
Cagri
  • 307
  • 3
  • 13
1
vote
3 answers

blpapi import - "Could not open C++ SDK Library" - very confused

Trying to set up a PC with Bloomberg python API. I followed every step of the instruction but when i finally tried to "import blpapi", it always run into issues. Below is the log. Any help would be greatly appreciated. I did the following steps…
GQDev
  • 11
  • 2
1
vote
1 answer

from xbbg import blp works for equity but does not work for bonds

from xbbg import blp works for equity but does not work for bonds. I use this pip library: https://pypi.org/project/xbbg/ I do the following imports. import blpapi from xbbg import blp I then run the following test for an equity: # this…
D.L
  • 4,339
  • 5
  • 22
  • 45
1
vote
1 answer

Can we use BLPAPI remotely?

The SDKs at https://www.bloomberg.com/professional/support/api-library/ allow you to connect to localhost 8194 to fetch data. Please correct if any of the following is incorrect: The use of the SDK requires the installation of a Terminal software on…
Yash
  • 946
  • 1
  • 13
  • 28
1
vote
1 answer

Python: BLPAPI Module Not Found

I am trying to import blpapi (Python 3.8.2) but get this message: Traceback (most recent call last): File "", line 1, in import blpapi ModuleNotFoundError: No module named 'blpapi' I set the environment variable:…
AllanNgo
  • 11
  • 2