googlefinance-client-python icon indicating copy to clipboard operation
googlefinance-client-python copied to clipboard

Empty Data Frame

Open nrizzolo opened this issue 7 years ago • 5 comments

This is my code.

import

 pandas as pd
import googlefinance.client as gf
 
param = {'q': 'FB','i': "86400",'x': "NASD",'P': "3M"}
df = pd.DataFrame(gf.get_price_data(param))
print(df)

For some reason, the results dont produce anything in the columns. Do I need to write more?

Empty DataFrame Columns: [Open, High, Low, Close, Volume] Index: []

nrizzolo avatar Dec 29 '17 05:12 nrizzolo

same problem. I use the version 1.3.0

aliciawyy avatar Jan 04 '18 10:01 aliciawyy

same problem here

katurrr avatar Jan 11 '18 12:01 katurrr

I solved this problem by changing url in client.py. changing url to "https://finance.google.com/finance/getprices" might be help

katurrr avatar Jan 11 '18 12:01 katurrr

This is fixed in 630a6520e805d38dbf432c89d32a01fbd4775219. There's no release in pip yet, but you can install it straight from git: pip3 install git+https://github.com/pdevty/googlefinance-client-python.git

nicki-krizek avatar Jan 20 '18 00:01 nicki-krizek

image

Its not working

laxmikanthv avatar Aug 30 '18 13:08 laxmikanthv