问题标签 [bloomapi]

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 投票
1 回答
111 浏览

javascript - Bloomapi, XMLHttpRequest 无法加载

我目前正在使用 www.bloomapi.com 的 API 和 AngularJS 并不断收到此拒绝:

XMLHttpRequest 无法加载 http://www.bloomapi.com/api/search?limit=1&offset=0&key1=npi&op1=eq&value1=1861733537。请求的资源上不存在“Access-Control-Allow-Origin”标头。因此,不允许访问源“ http://localhost ”。

我不确定问题是否是 BloomAPI 特定的(例如,如果我需要 API 密钥或其他东西),或者我的 API 调用是否有问题。

这是我的代码...

工厂:

控制器:

非常感谢!

0 投票
0 回答
275 浏览

c# - 如何从 Bloomberg 上的 HistoricalDataRequest 中获取 IDX_RATIO

我正在使用 C# 的 Bloomberg API,并尝试使用 HistoricalDataRequest 获取 IDX_RATIO 字段以获取安全性。有办法获取这个字段还是没有可用的字段?谢谢

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 投票
1 回答
626 浏览

python - 在 PYTHON 中下载 Bloomberg 数据

我正在寻找建立一个从彭博社下载证券列表数据的功能。在做了一些研究之后,我决定使用 TIA 并且似乎在价格数据方面工作得很好。

但是,当我将它用于非价格数据时,例如HB INDUSTRY SECTOR ALLOCATION对于给定的基金,比如说EFA US Equities. 有没有一种简单而干净的方法来做到这一点?

如果我如下使用它,它会以我不理解的奇怪格式返回给我。我想这是由于非数值没有被包裹在 Pandas 中(这是 TIA 所做的)。

有没有一种简单的方法可以做到这一点并在 Python 中下载任何 Bloomberg 数据?