在 Python 中提取保存的彭博固定收益搜索

问题描述 投票:0回答:0

我在 bloomberg 终端上保存了一些搜索,我希望能够在 python 中访问这些搜索。基本上,我在保存的搜索中有一个政府监管机构列表,我想从 MOSB MIFID 屏幕中参考和提取贸易数据。

我找到了一些关于在 python 中构建搜索的资源,但我想知道是否有一种方法可以仅引用我已经创建的内容。我也看到过关于使用 excel BBG 函数作为解决方法的帖子,但我宁愿远离那些而只使用 python。

我也尝试过使用 blpapi 库,但无法创建正确的请求 - 这是我目前所拥有的:

#Start a Bloomberg session
session = blpapi.Session()
session.start()

#Open the BEQS service
if not session.openService("//blp/exrsvc"):
    print("Failed to open BEQS service")
    session.stop()
    exit()

#Make a request to saved Fixed Income Search query
service = session.getService("//blp/exrsvc")
request = service.createRequest("BeqsRequest")
request.set("screenName", "your_query_name")
session.sendRequest(request)
python quantitative-finance bloomberg
© www.soinside.com 2019 - 2024. All rights reserved.