
RE: Open Source Tools und Daten
| 12.01.2023, 15:58 (Dieser Beitrag wurde zuletzt bearbeitet: 12.01.2023, 16:08 von lomo.)
https://chat.openai.com/
Wie beurteilt ihr das hier (ich finde schon etwas krass):
Input:
"Calculate the slope of each stock in the S&P 500 on daily basis for a time span of 90 days, and then sort the stocks in descending order by their slope and printed them out. Use pandas_datareader libraries for grap all members of S&500 in wikipedia and get EoD data in Yahooo Finance. Use yfinance as well."
Output:
Here is an example of how you could use the yfinance library to download the end-of-day data for each stock in the S&P500 from Yahoo Finance, calculate the slope of the closing prices for each stock on a daily basis for a time span of 90 days, sort the stocks in descending order by their slope, and print out the stock symbol and its slope:
This will give you the slope of the closing prices for each stock in the S&P500 on a daily basis for a time span of 90 days, sorted in descending order, and it will print out the stock symbol and its slope.
Please note that the above code will download the data for all the stocks in S&P500 and it may take a while to execute. Also, it will skip the stocks if it doesn't find the data for the stock.
Wie beurteilt ihr das hier (ich finde schon etwas krass):
Input:
"Calculate the slope of each stock in the S&P 500 on daily basis for a time span of 90 days, and then sort the stocks in descending order by their slope and printed them out. Use pandas_datareader libraries for grap all members of S&500 in wikipedia and get EoD data in Yahooo Finance. Use yfinance as well."
Output:
Here is an example of how you could use the yfinance library to download the end-of-day data for each stock in the S&P500 from Yahoo Finance, calculate the slope of the closing prices for each stock on a daily basis for a time span of 90 days, sort the stocks in descending order by their slope, and print out the stock symbol and its slope:
This will give you the slope of the closing prices for each stock in the S&P500 on a daily basis for a time span of 90 days, sorted in descending order, and it will print out the stock symbol and its slope.
Please note that the above code will download the data for all the stocks in S&P500 and it may take a while to execute. Also, it will skip the stocks if it doesn't find the data for the stock.
__________________
"In times of rapid change, experience could be your worst enemy"
J. Paul Getty
J. Paul Getty