You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using a script that tries to store as much stats and fundamental info for a stock I have traded today so that I later can see how those variables, e.g., float, looked like that day and compare it with similar stocks in the same category. This is how I do it with Python 3.8.10 for e.g. TSLA:
Then I just store the contents of dictionary_data in a file e.g. "TSLA-stats-yfinance-20230126.csv"
Is there a better way to do this? Maybe I am missing some stats or fundamental data when just using ticker.info? (the daily and minute ohlcv data I download separately using yfinance)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I am using a script that tries to store as much stats and fundamental info for a stock I have traded today so that I later can see how those variables, e.g., float, looked like that day and compare it with similar stocks in the same category. This is how I do it with Python 3.8.10 for e.g. TSLA:
import yfinance as yf
stock = "TSLA"
ticker = yf.Ticker(stock)
dictionary_data = ticker.info
Then I just store the contents of dictionary_data in a file e.g. "TSLA-stats-yfinance-20230126.csv"
Is there a better way to do this? Maybe I am missing some stats or fundamental data when just using ticker.info? (the daily and minute ohlcv data I download separately using yfinance)
Beta Was this translation helpful? Give feedback.
All reactions