hongtaocai / googlefinance

Python module to get real-time stock data from Google Finance API
MIT License
700 stars 172 forks source link

Google Finance changed their API. The package isn't working at all. #47

Open mfixman opened 6 years ago

mfixman commented 6 years ago
from googlefinance.client import get_price_data, get_prices_data

param = {
    'q': ".DJI", # Stock symbol (ex: "AAPL")
    'i': "86400", # Interval size in seconds ("86400" = 1 day intervals)
    'x': "INDEXDJX", # Stock exchange symbol on which stock is traded (ex: "NASD")
    'p': "1Y" # Period (Ex: "1Y" = 1 year)
}
# get price data (return pandas dataframe)
get_price_data(param)

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