- Go to
data-ingest
dir python3 -m venv venv
python3 -m pip install -r requirements.txt
python3 -m pip install yfinance
python3 main.py
- stocks: list of stocks
- stockOpenPrices: last price the market closed on (Friday)
- week: stock prices for last week (5 minute data)
- month: stock prices for last month (hour data)
- year: stock prices for last year (day data)
- GET /today?stock={stock_name}
- GET /week?stock={stock_name}
- GET /month?stock={stock_name}
- GET /year?stock={stock_name}
{
"prices": [0, 1, 2],
"error": "error string",
}
Prices is a list of numbers, starting from opening to close, with the specified interval
From https://www.nasdaq.com/market-activity/quotes/historical
- AAPL (Apple)
- SBUX (Starbucks)
- MSFT (Microsoft)
- CSCO (Cisco Systems)
- QCOM (QUALCOMM)
- META (Meta)
- AMZN (Amazon.com)
- TSLA (Tesla)
- AMD (Advanced Micro Devices)
- NFLX (Netflix)
NOTE: JSON file is autogenerated by data-ingest
percent chance to go down based on delta: diff bw curr + open price
- [delta] = [up chance] [down chance]
- 0 = 50% 50%
- -1 = 100% 0%
- 1 = 0% 100%
- 0.5 = 25% 75%
will generate up to the current minute's data points for today, then generate 1/min
idfk