Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How are dates formatted on Yahoo Finance?

I'm making a Python program to get stock data from Yahoo Finance. I want it to be able to get data from multiple stocks at multiple dates. The URL is like this: https://finance.yahoo.com/q/op?s=GOOG&date=1423785600, and I know how to change the stock sign, but how are the dates formatted? Is there a way to compute this or should I just brute-force it and look through all the options on the drop-down Dates menu?

like image 274
spelchekr Avatar asked Oct 11 '25 14:10

spelchekr


2 Answers

That would be formatted as the total number of seconds since January 1st, 1970 00:00:00.000 UTC (the Unix Timestamp).

like image 65
Justin Niessner Avatar answered Oct 14 '25 19:10

Justin Niessner


That date 1423785600 looks like a Unix time stamp. i.e. The number of seconds since Thursday, 1 January 1970

like image 30
bhspencer Avatar answered Oct 14 '25 21:10

bhspencer



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!