python - TIA Bloomberg 历史请求覆盖 ​​Python

标签 python bloomberg

我正在尝试使用覆盖来提取历史数据,但由于使用太多参数而不断收到错误。

I have the following:

import pandas as pd
import tia.bbg.datamgr as dm

mgr = dm.BbgDataManager()

ticker = 'AAPL US EQUITY'

sids = mgr[ticker]

info_df = (sides.get_historical(
           ['BEST_SALES','BEST_OPP', 'BEST_EBITDA', 'BEST_EBIT'],
           start_date = "1/1/2000",
           end_date = "6/30/2016",
           "DAILY",
           "BE997=1GY")

我收到此错误:

TypeError: get_historical() takes at most 5 arguments (6 given)

如果我删除“DAILY”,它不喜欢周期性。如果我包括周期性,它似乎不会被覆盖。

我做错了什么?

最佳答案

试试这个:

import pandas as pd
import tia.bbg.datamgr as dm

mgr = dm.BbgDataManager()

ticker = 'AAPL US EQUITY'

sids = mgr[ticker]

info_df = sids.get_historical(
       ['BEST_SALES','BEST_OPP', 'BEST_EBITDA', 'BEST_EBIT'],
       start="1/1/2000",
       end="6/30/2016",
       period="DAILY",
       BE997="1GY")

关于python - TIA Bloomberg 历史请求覆盖 ​​Python,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47521574/

相关文章:

vbscript - 自动登录 Bloomberg Anywhere

python - pdblp con.bdh() 函数拉动 yield 而不是价格

python - XML 文件作为 django 项目的模型

python - numpy 二维数组运算,保留某些位置

Python 字符串转三元组颜色

c# - 如何在彭博获取实时价格快照?

python - 为什么在 MacOS 中启动 Django 服务器时出现错误?

python - 通过在列表中搜索字符串来查找索引

vba - 模仿bdh函数填充向下

Java Bloomberg API - 如何在没有服务的情况下生成请求