Skip to content

Commit

Permalink
update quarter
Browse files Browse the repository at this point in the history
  • Loading branch information
MuslemRahimi committed Jul 25, 2024
1 parent 958e89a commit 2564a36
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/create_stock_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
start_date = datetime(2015, 1, 1).strftime("%Y-%m-%d")
end_date = datetime.today().strftime("%Y-%m-%d")


quarter_date = '2024-6-30'


if os.path.exists("backup_db/stocks.db"):
Expand Down Expand Up @@ -114,7 +114,7 @@ async def save_fundamental_data(self, session, symbol):
f"https://financialmodelingprep.com/api/v3/ratios/{symbol}?period=quarter&apikey={api_key}",
f"https://financialmodelingprep.com/api/v3/historical-price-full/stock_split/{symbol}?apikey={api_key}",
f"https://financialmodelingprep.com/api/v4/stock_peers?symbol={symbol}&apikey={api_key}",
f"https://financialmodelingprep.com/api/v4/institutional-ownership/institutional-holders/symbol-ownership-percent?date=2024-03-31&symbol={symbol}&page=0&apikey={api_key}",
f"https://financialmodelingprep.com/api/v4/institutional-ownership/institutional-holders/symbol-ownership-percent?date={quarter_date}&symbol={symbol}&page=0&apikey={api_key}",
f"https://financialmodelingprep.com/api/v4/historical/shares_float?symbol={symbol}&apikey={api_key}",
f"https://financialmodelingprep.com/api/v4/revenue-product-segmentation?symbol={symbol}&structure=flat&period=annual&apikey={api_key}",
f"https://financialmodelingprep.com/api/v4/revenue-geographic-segmentation?symbol={symbol}&structure=flat&apikey={api_key}",
Expand Down

0 comments on commit 2564a36

Please sign in to comment.