October 5, 2010
Hi Ted,
Use this URL
https://finance.yahoo.com/quot.....TO/history?period1=1595894400&period2=1627430400&interval=1d&filter=history&frequency=1d&includeAdjustedClose=true
The periods are specified by Unix Timestamps. 1595894400 equates to 28 Jul 2020. You'll need to work out the timestamps to use based on the dates you want to retrieve Unix Timestamp - Epoch Converter - TimeStamp Converter
Regards
Phil
New Member
July 28, 2021
Thanks for the reply Phil ,
Being very new to Power Query, I'll have to play with this a bit.
Is this "?period1=1595894400&period2=1627430400&interval=1d&filter=history&frequency=1d&includeAdjustedClose=true" just a part of the query line?
And, is it possible to frame a query that will always give me the last year without having to modify the query each time to specify the period start and end? This is part of an Excel workbook that I refresh frequently and with the number of stocks I want to track it would be cumbersome to have to modify the query each time.
Thanks again for taking the time to reply.
Ted
1 Guest(s)