Sep-17-2017, 08:14 PM
It worked before but for some reason, when run below, I got error. Please advise. Thanks.
Traceback (most recent call last):
File "D:/Run/Python/Test1.py", line 5, in <module>
gf.get_price_data(param)
File "C:\Program Files\Python36\lib\site-packages\googlefinance\client.py", line 14, in get_price_data
if cols[0][0] == 'a':
IndexError: string index out of range
>>>
import googlefinance.client as gf import pandas as pd s = 'DOL.TO' param = {'q': s,'i': "86400",'x': "TSE",'p': "3Y"} gf.get_price_data(param)====================== RESTART: D:/Run/Python/Test1.py ======================
Traceback (most recent call last):
File "D:/Run/Python/Test1.py", line 5, in <module>
gf.get_price_data(param)
File "C:\Program Files\Python36\lib\site-packages\googlefinance\client.py", line 14, in get_price_data
if cols[0][0] == 'a':
IndexError: string index out of range
>>>