问题标签 [blpapi]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
0 回答
165 浏览

python-3.x - 如何将 kwargs 输入到彭博包装函数中

我指的是发布在 GitHub 上的以下代码,它围绕 blpapi 包创建了一个包装接口,以复制流行函数的 Excel 功能:BDP、BDH 和 BDS。

https://github.com/691175002/BLPInterface/blob/master/blp.py

对于那些熟悉的人,我有兴趣复制在 Excel 中调用的结果

=BDS("NHSLTOT 指数","ECO_FUTURE_RELEASE_DATE_LIST","START_DT","20140901","END_DT","20170923")

此函数的包装器等效项称为 bulkRequest - 它在没有 START_DT 和 END_DT 参数的情况下运行良好,即

返回一个 DataFrame,但我想包括上面的日期范围,我相信模块通过 *kwargs 提供,但我无法让它正常工作。在我看来,这些应该作为字典输入,即

但这会返回错误。任何指导表示赞赏

0 投票
1 回答
405 浏览

bloomberg - Bloomberg API:访问包含分数的符号字段

我正在使用 Bloomberg API C# 库,版本 3.8.10.1。

我想知道,在符号名称中格式化/转义分数的规则是什么?Instruments 服务 ( //blp/instruments) 返回类似 的符号RIOLN 3<3/4> 03/22/2022<corp>,但是,查询参考服务 ( //blp/refdata) 或市场数据服务 ( //blp/mktdata) 时使用: RIOLN 3¾ 06/15/2025 Corp, RIOLN 3<3/4> 06/15/2025 CorpRIOLN 3 3/4 06/15/2025 CorpUnknown/Invalid security [nid:810]出错。

也就是说,我能想到的对这种符号的任何修改都会给我这个错误。这些符号名称分数的正确格式是否有任何规则?

0 投票
1 回答
501 浏览

r - blpapi formula working in excel but not in R

I am trying to substitute some excels that we were using to retrieve some data from bloomberg, with a script in R that can automate some tasks.

Usually with rblpapi I can use the same commands that works for Excel in R, but I have founded one that does not. The following command in Excel:

returns the number I need, but if I try this one in R:

it sends the error message:

Error in bdp_Impl(con, securities, fields, options, overrides, verbose, : Request options must be named.

I have tried options= c("FUND_PER","C") and many possible combinations but it returns error messages like:

Attempt to access unknown sub-element 'FUND_PER' on element 'ReferenceDataRequest'

How do I specify the option properly or just get that data from the request?

I am using R 3.4.0 on windows.

Thx in advance.

0 投票
2 回答
15527 浏览

python - Bloomber API for python 教程

有没有人知道任何好的资源/教程/书籍来开始在 python 中使用 Bloomberg 的 API blpapi?

我到处搜索,我什么也没找到。。

0 投票
1 回答
789 浏览

python - 使用 blpapi 在 Python 中实现 Bloomberg BChain 函数

我正在尝试在 Python 中实现 Excel 的 BChain() 函数。不幸的是,我不知道如何以及是否可以实现。这是我想要实现的功能:

知道如何做到这一点吗?

0 投票
2 回答
3152 浏览

python-2.7 - 使用 Bloomberg API 时没有出现名为 _internals 的模块错误

我目前使用的是 Python 2.7,我的操作系统是 Windows 7。在尝试使用 Bloomberg API 时,我收到了这个错误:

我已将路径变量设置为指向 blpapi3_64.dll 并更新了我的彭博终端。我还将本地 blpapi API 移动到不同的目录,但问题仍然存在。

一般来说,我对这个 API 有点陌生。那么有人可以指导我吗?

先感谢您!

0 投票
1 回答
120 浏览

python - pypyodbc 和 blpapi 的依赖冲突

我有一个已安装的 conda 环境,pypyodbc现在我正在尝试blpapi使用以下命令安装该软件包:

当我尝试运行“conda info blpapi”和“conda info pypyodbc”时,但没有显示依赖项。这是为什么?此外,还有其他方法可以找到包依赖项吗?

0 投票
0 回答
474 浏览

python - pybbg 模块在 python 中精确的 Bloomberg 数据

我只是安装了 pybbg 包 throw git clone 和 python setup.py install。我已经有适用于 windows 的Bloomberg api

我尝试从库中运行示例代码,并且一直收到以下消息:“pybbg 没有属性‘Pybbg’”。

例如 :

0 投票
3 回答
17355 浏览

python - 如何在 python 中启动 Bloomberg API?

我设法在我的 python 中安装了 blpapi。但是,有错误Exception: failed to start session我的简单代码如下。

我能用这个做什么?你能帮我吗?

0 投票
1 回答
266 浏览

blpapi - 如何订阅彭博 API?

我知道这是我之前问的多余的问题。如何在 python 中启动 Bloomberg API?. 但我无法真正弄清楚如何通过 python 订阅它。当我运行代码运行另一个模块“finmarketpy”时,

它会得到错误代码,例如,in method 'blpapi_SessionOptions_setServerPort', argument 2 of type 'unsigned short'让 Bloomberg 成为必不可少的其他类型的模块。所以请大方地教教我。