【问题标题】:retrieve international investement fund data检索国际投资基金数据
【发布时间】:2015-12-14 14:36:12
【问题描述】:

我正在尝试获取未在美国交易的债券和基金的财务数据。

Example.

这是我的代码:

import pandas.io.data as web

from datetime import datetime

end = datetime.now()
start = datetime(end.year - 5, end.month, end.day)
df = web.DataReader("U1IL.DU", 'yahoo', start, end) 

但我总是收到以下错误:

  File "/usr/lib/pymodules/python2.7/pandas/io/data.py", line 177, in _retry_read_url
    rs.index.name = rs.index.name.decode('unicode_escape').encode('ascii', 'ignore')
UnboundLocalError: local variable 'rs' referenced before assignment

似乎"." 部分混淆了程序。

有没有办法替代输入

  • WKN(德国证券识别码)或
  • ISIN(国际 证券识别号)

而不是基于 4 个字母的股票代码?

【问题讨论】:

标签: python pandas yahoo-finance google-finance stockquotes


【解决方案1】:

Yahoo 仅涵盖here 规定的某些市场和交易所。

对于德国指数和股票,SIX 是主要提供者 - 该地区涵盖的证券概览here

请注意,共同基金数据似乎主要来自Vickers,关注美国的范围较窄。我尝试了一些德国基金代码,但均未成功,我认为与股票相比,基金的覆盖率很低甚至不存在。

【讨论】:

    猜你喜欢
    • 2019-04-10
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-12-07
    • 1970-01-01
    • 2014-03-08
    • 2014-01-03
    • 1970-01-01
    相关资源
    最近更新 更多