Skip to content

Commit

Permalink
use finance URL
Browse files Browse the repository at this point in the history
use finance URL to avoid bad time stamps
  • Loading branch information
mrconway committed Nov 15, 2017
1 parent 4074585 commit e1ac840
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion alphapy/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ def get_google_data(symbol, lookback_period, fractal):
toffset = 7
line_length = 6
# make the request to Google
base_url = 'https://www.google.com/finance/getprices?q={}&i={}&p={}d&f=d,o,h,l,c,v'
base_url = 'https://finance.google.com/finance/getprices?q={}&i={}&p={}d&f=d,o,h,l,c,v'
url = base_url.format(symbol, interval, lookback_period)
response = requests.get(url)
# process the response
Expand Down

0 comments on commit e1ac840

Please sign in to comment.