pybbg模块在python中准确的Bloomberg数据

时间:2018-04-11 21:16:53

标签: python bloomberg blpapi

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

我尝试从库中运行示例代码,并且我一直有这样的信息:" pybbg没有属性' Pybbg'"。

例如:

import unittest
import datetime
import pybbg

class TestPybbg(unittest.TestCase):
    def test_bds(self):
        tester = pybbg.Pybbg()
        data = tester.bdp('AAPL US Equity','PX_Last')
        print(data)

if __name__ == '__main__':
    unittest.main()

0 个答案:

没有答案
相关问题