Questions tagged [bloomberg]
For programming questions related to the Bloomberg API, which provides financial news and data services.
771
questions
-1
votes
1
answer
30
views
How to get zero coupon yield data for India from Bloomberg
I want to get zero coupon yield data for Indian government bond yield. I got data up to 2022 but I need the updated data. How to get it from Bloomberg. I tried the option F12301Y index for 1 year data ...
0
votes
1
answer
31
views
I'm trying to make this code works to source the Most zero day options trading in Bloomberg terminal I have access any hehelp
Here is the code:
import pandas as pd
import matplotlib.pyplot as plt
from xbbg import blp
def inspect_options_data(specific_day='2023-8-17'):
try:
# Fetch bulk options data for S&P ...
-2
votes
0
answers
40
views
How to optimize BDP code to improve speed
Can someone please help. I have a list of dataframe that i am trying to download duration data for. Unfortunately the historical data is not avalable, so i have to resort to using the bdp function. ...
0
votes
0
answers
68
views
Bloomberg API bdp fuction with LEI (xbbg)
I try to pull 'Moodys credit rating' of entity using Python API.
Excel formula works well and Python using Tkcer also works well.
But Python using LEI not Tiker doesn't work.
For example, following ...
0
votes
0
answers
65
views
Bloomberg function in Python (Works in Excel but not in python)
I have a question regarding building Bloomberg Functions in Python:
In Excel this works fine: =BDP(A1&" ISIN","SECURITY_NAME")
But how do i get it to work in python?
0
votes
0
answers
88
views
Bloomberg (Excel) Adjust Best estimates (BEST_EPS) from fiscal to calendar year
I am making a comp sheet with forward estimated and am trying to adjust for the various fiscal years by converting metrics to the calendar year.
I know you can do this with historic data but I was ...
1
vote
1
answer
74
views
Getting Intraday Stock Data via Excel Add-in with Stock ISIN using =BDH() Function
I wanted to extract intraday data for my research and I intend to use the following function to extract data at a 5 minutes frequency for a set of stocks. Does the following BDH function work?
=BDH(&...
0
votes
1
answer
53
views
Fetch multiple Bond Yield curves in single Fetch from Bloomberg with XBBG
I need to fetch multiple Bond Yield curves (1 month, 1 year, 5 year, etc) from different countries using Bloomberg API.
Searching for F476XXy Index at the terminal gives a list of generic tickers, ...
1
vote
0
answers
38
views
How do I stay logged in to Bloomberg with webscraper, then scrape an article's full content fast?
Overall Objective
Using nodeJS, I want to be able to log in with user credentials into Bloomberg, then scrape as a logged in user. Preferably not with Selenium because Selenium in my experience is ...
0
votes
1
answer
71
views
Authorizing into the BEAP (Bloomberg Enterprise Access Point) from Excel VBA script
I am looking for the possibility to establish direct REST API call from Excel to Bloomberg Data License endpoints. Does anyone has the experience?
I´ve got stuck on the stage of authorisation. In the ...
0
votes
0
answers
91
views
How can I use Bloomberg's API as a data source on BQuant instead of using BQL for data retrieval?
I'm interested in leveraging Bloomberg's API as a data source within BQuant instead of relying solely on BQL for data retrieval. BQL seems to have a more limited dataset compared to the API, and I'm ...
0
votes
0
answers
137
views
Python Bloombger API ConnectionError: Cannot connect to Bloomberg
I'm trying to run the Bloomberg python API in a PC that have Windows 10 Pro v22H2. I'm using Python v3.8 and I have installed blpapi==2.30.1 and xbbg==0.7.7, also I'm running the code in the same PC ...
-3
votes
1
answer
255
views
Using Bloomberg API for automated daily close prices [closed]
My company is trying to get daily close prices of some publicly traded companies. I am looking into using Bloomberg API, but it is not very clear which product is the best to use. Here are some of my ...
0
votes
1
answer
55
views
Act/Act day count convention discrepancy between Quantlib and Bloomberg Calculator - any solutions?
Quantlib does not match BC4 Bloomberg Calculator for Act/Act day count convention. It doesnt match the pricipal which is the price to 6dp.
enter image description here
Does anyone have a suggestion ...
0
votes
0
answers
37
views
Installing blpapi with environment.yml via pip install
Installing blpapi with environment.yml via pip install
I want to pip install the blpapi in an environment.yml using --index-url=https://bcms.bloomberg.com/pip/simple blpapi (as can be found on https://...
0
votes
0
answers
37
views
Compiling an example script in .NET from an API emulator github project
I have a .NET project for emulating the Bloomberg API.
There are example .cs scripts to run in the "Examples" folder.
I understand I need to compile these first using csc by running in ...
1
vote
0
answers
106
views
Exploring Real-time Bloomberg Email Scraping from Gmail without Incurring Pub/Sub API Costs [closed]
I am trying to develop a script that can scrape Bloomberg emails from my Gmail inbox in real-time. After reading through the Gmail documentation, I found that this can be achieved by using Push ...
0
votes
1
answer
163
views
Porting excel functionality into BLPAPI/xbbg with asynchronous API calls
Hello – I am trying to port a few Excel worksheets into a python script I can run on the fly. I am querying Bloomberg data, and essentially what I am looking to do is grab historical bid and ask ...
0
votes
0
answers
107
views
Connecting to Bloomberg API via XBBG on WSL2
Having difficulty connecting as default is localhost() for Bloomberg Comm and WSL2 doesn't get the localhost() being inside VM I saw there is a blp.connect that I can use and specify 192..xxxkind of ...
0
votes
0
answers
127
views
Toggle the Bloomberg real-time updates
I'm using a BFXFORWARD() function to pull forwards for broken dates but they will only update if I turn on real-time updates and then refresh the workbook. If the workbook is not refreshed with real-...
0
votes
0
answers
97
views
Python (blpapi) _ Bloomberg API _ take Screenshot
I am trying to retrieve (automate) a price + a screenshot of the given price out of Bloomberg. I use Bloomberg Desktop in combination with the API (programming in Python).
I already read the ...
0
votes
0
answers
142
views
Bloomberg python API (blpapi) installation error
I would like to use Bloomberg desktop API for Python.
To do this I have to install package blpapi.
My Bloomberg terminal PC environment :
WIN10(64bit)
Ananconda 4.13.0 and Python 3.9.12
No internet ...
1
vote
0
answers
217
views
How to retrieve ETF constituents(holdings) weightings information by Bloomberg API?
How to retrieve ETF constituents(holdings) weightings information by bloomberg API?
**xbbg or pdblp **
below is for Index and it's working
import pdblp
con = pdblp.Bcon()
con.start()
...
0
votes
1
answer
224
views
BLPAPI. Retrieve value of specific field
I am running a subscription session using BLPAPI and I am able to get real-time data but I want to isolate a particular value from the (extensive) list of fields. Then I would like to put it into a ...
0
votes
1
answer
152
views
Daily FX price data from yahoo finance seems to have dates that are off by i day
When i go to the GBPUSD=X 1m chart page of yahoo finance i see the following which broadly matches the chart i see from from bloomberg except the dates in the yahoo finance chart are 1 day offset (...
1
vote
1
answer
203
views
Running Excel Via Python to Fetch Blommberg data
Trying to Fetch some data from Bloomberg terminal by driving excel programmatically via python here is the code I'm working with.
I have a list of Bloomberg Ticker Codes already so I want to use this ...
0
votes
0
answers
116
views
#N/A Invalid Security - on bdp formula for preliminary security ssap protected but not on SSAP non-preliminary securities
the syntax of your BDP formula is correct and different fields work fine for securities that are SSAP protected and out of preliminary status, but not for securities that are SSAP protected and in ...
-1
votes
1
answer
479
views
How to get intra day data using blp.bdh function in python Bloomberg
blp.bdib('NIFTY Index',dt = "2023-02-11", enddate='Today',timezone='Calcutta',interval =14)
I want timing start from 9:15AM and its showing 9:16
Tried many thing like ...used all ...
0
votes
0
answers
29
views
Null values for certain fields such as INDX_FREQ when using bdh from Rblpapi
I'm trying to use bdh to query some bloomberg data, primarily macro data series. However, I can't seem to get these fields to query - and I assume it is because I am using it wrong.
Here is an example ...
0
votes
0
answers
159
views
Integrating Bloomberg terminal using python Via Excel for Fetching Data
Currently to Fetch Fixed Income Data on the Bloomberg terminal directly I use the SRCH option in the terminal and select Asset Class Governments and corporates. The query that gets executed which I ...
0
votes
0
answers
226
views
Adding "Fill = P" argument to BDH function for R
I am using the bloomberg API on R and need to download daily data for about 100 companies. I have set include.non.trading.days = TRUE and want to fill values with the last trading price.
On excel, I ...
1
vote
1
answer
322
views
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, ...
0
votes
0
answers
241
views
Download historical data from a list of ISIN on Bloomberg
I want to download historical data (mid dirty price on daily frequency) for a list of ISIN (bonds) that I have as a CSV file, for the period 2016-2023. How can I download them? Idk how to put the ISIN ...
0
votes
1
answer
147
views
Unable to get streaming intraday bar data with bloomberg api wrapper blp
from blp import blp
with blp.BlpStream(setDefaultSubscriptionService="//blp/mktbar") as bs:
bs.subscribe({"/ticker/ES1 Index": {"fields": "LAST_PRICE",&...
0
votes
1
answer
88
views
Use BQL to get the market caps of unique holdings in multiple ETFs
To get the market cap in USD of the holdings of an ETF, for example for "IHI US EQUITY" you can use:
=@BQL("holdings('IHI US EQUITY')","cur_mkt_cap(currency=USD)")
I am ...
2
votes
1
answer
1k
views
What is the difference between Bloomberg data feed (B-PIPE) and server api (SAPI)?
How are they different technologically and in terms of practical usage (e.g. different types of datasets available, etc)?
Researched around but can't find a clear answer.
0
votes
0
answers
55
views
Is it possible to extract the sharpe ratio from PORT using BQL?
I am currently automating a series of reports, but I am confused. If you have a specific ticket you can extract a series of sharpe ratios with a code like this:
let(
#dates=range(-3Y, 0D, frq=M);
#...
0
votes
0
answers
79
views
Listing and delisting Bloomberg information in Excel
I need to pull the IPO price for an equity security as well as buyout/delisting price for the security and the announcement date of the buyout/delisting in Excel.
I have been able to pull the IPO date ...
0
votes
2
answers
393
views
Python XBBG BLP BDH Per value to biweekly
I'm trying to pull historic data from Bloomberg, but I want the frequency to be biweekly. Does anyone know the constant for it?
For reference, I have 2 dataframes:
general (which I have no problem ...
1
vote
1
answer
114
views
xbbg intraday bar requests raises error for fixed income
I am using this great package xbbg, essentially a wrapper around blpapi doing all the nasty connection issues for you and retrieving data in the form of pandas dfs.
In order to get intraday data, you ...
1
vote
0
answers
62
views
Is there a way to make the mapping dynamic loop between the XML scheme?
Setuing a fix engine for Bloomberg FXGO for FX Derivatives.
Although using an XML scheme (DataDictionary=FIX_BBG.xml) for the mapping of the FIX message, I receive an error of
*FIX Message": &...
0
votes
0
answers
367
views
How to add options in xbbg API BDP for Bloomberg
In BDP in Excel, I can get 'CBBT, 'BVAL' and can't get 'BMMK'.
enter image description here
ex) CBBT
@BDP("EI3229347 Corp", "PX_CLEAN_MID", "PCS", "CBBT")
@...
1
vote
1
answer
65
views
Unprotect or remove Bloomberg BbgResearchPubStorageWorksheet in Excel workbook
Excel workbooks that have used the Bloomberg Add-In contain a hidden protected sheet called BbgResearchPubStorageWorksheet. The fact that sheet is protected prevents certain functions from being ...
0
votes
1
answer
267
views
Does Bloomberg Provide Endpoints For Calling API?
Does bloomberg provide any endpoints for calling API? If yes then please provide the url.
Can we call bloomberg api without logged-in into bloomberg terminal using python?
I was tried but I can not ...
0
votes
0
answers
354
views
Bloomberg xbbg and download historical option data
When I tried to download historical option price using xbbg there is a problem:
in the excel, I use =BDS("SPY US Equity", "opt_chain","single_date_override",text(20191010,...
-3
votes
1
answer
421
views
How to pull out the list of active German government bonds using xbbg?
I would like to pull out the list of ISINs for existing active german government bonds using the xbbg library but I couldn't find a way to do so.
The Bloomberg ticker used to access the universe in ...
0
votes
0
answers
43
views
I receive application define object defined error while inserting bloomberg BDP formula to a cell
I get application defined error while inserting a formula that is run by bloomberg addin.
Worksheets("Portfoy").Cells(portfoyCounter, 10).Formula = "=BDP(" & Chr(34) & ...
2
votes
1
answer
565
views
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 ...
2
votes
0
answers
62
views
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/...
0
votes
0
answers
221
views
Bloomberg Data news Pull in Excel
Can I pull the CN (individual news) of a security from Bloomberg with its Bloomberg Unique ID (or any other identifier) in Excel using a '=BDS()' or other formula? I can't seem to be able to do this.
...