Notes 6/20/23
Great work from the UCONN team this week.
Were able to successfully extract prices of TSLA stock from yahoo finance using the yfinance python module and store that data into a datastore table(kind).
Creation & Upload: import yfinance as yf import csv from google.cloud import datastore, storage from datetime import datetime tsla = yf.Ti... uconn-sa.blogspot.com |
To build on this we need to:
- Pull daily price instead of historical prices
- Keep a table of stocks we want to pull prices for e.g. TSLA, MSFT, etc
- Create a scheduled job that runs every day that pulls prices
Fully managed cron service for scheduling virtually any job, including batch, big data jobs, and cloud infrastructure operations, with automated retries. cloud.google.com |
The UCONN team also developed code to pull news out of Yahoo finance
To build on this code we need to:
- Pull story or stories for that day for that symbol
- Loop thru selected stocks to monitor
- Store the story with headline in datastore
- using Google sentiment record in datastore score and magnitude of headline and body of store
- schedule job to run daily
Great progress made this week.
Each team please report weekly progress before Friday's meeting.
Thanks
from google.cloud import language from google.cloud import language_v1 import six import pandas as pd data = pd.read_csv("all-data.csv", e... uconn-sa.blogspot.com |
Body.py: import requests import yfinance as yf import csv from bs4 import BeautifulSoup tick = yf.Ticker("TSLA") news = tick.news news_arr... uconn-sa.blogspot.com |
No comments:
Post a Comment