diff --git a/app/create_crypto_db.py b/app/create_crypto_db.py index 114f4ce..6730926 100755 --- a/app/create_crypto_db.py +++ b/app/create_crypto_db.py @@ -1,7 +1,6 @@ import aiohttp import asyncio import sqlite3 -import certifi import json import ujson import pandas as pd @@ -10,8 +9,7 @@ import re import pandas as pd from datetime import datetime -import subprocess -import time + import warnings import requests diff --git a/app/create_etf_db.py b/app/create_etf_db.py index 5f24ad6..ab6bf32 100755 --- a/app/create_etf_db.py +++ b/app/create_etf_db.py @@ -1,7 +1,6 @@ import aiohttp import asyncio import sqlite3 -import certifi import json import ujson import pandas as pd @@ -10,8 +9,7 @@ import re import pandas as pd from datetime import datetime -import subprocess -import time + import warnings from dotenv import load_dotenv diff --git a/app/cron_analyst_db.py b/app/cron_analyst_db.py index b6b4b7c..c20f56c 100755 --- a/app/cron_analyst_db.py +++ b/app/cron_analyst_db.py @@ -1,7 +1,6 @@ from benzinga import financial_data import requests -from datetime import datetime, timedelta, date -from collections import defaultdict +from datetime import datetime import numpy as np from scipy.stats import norm import time diff --git a/app/cron_bull_bear_say.py b/app/cron_bull_bear_say.py index 8075ece..36cd455 100755 --- a/app/cron_bull_bear_say.py +++ b/app/cron_bull_bear_say.py @@ -1,5 +1,4 @@ import aiohttp -import aiofiles import ujson import sqlite3 import asyncio diff --git a/app/cron_insider_trading.py b/app/cron_insider_trading.py index 9147c47..e683611 100755 --- a/app/cron_insider_trading.py +++ b/app/cron_insider_trading.py @@ -3,7 +3,6 @@ import aiohttp import sqlite3 from datetime import datetime -import pytz from aiofiles import open as async_open from dotenv import load_dotenv diff --git a/app/cron_market_movers.py b/app/cron_market_movers.py index b53cc29..f32e02b 100755 --- a/app/cron_market_movers.py +++ b/app/cron_market_movers.py @@ -2,8 +2,6 @@ import ujson import sqlite3 import pandas as pd -import numpy as np -from collections import defaultdict import asyncio import aiohttp import pytz diff --git a/app/cron_shareholders.py b/app/cron_shareholders.py index 598d77e..ff9f272 100644 --- a/app/cron_shareholders.py +++ b/app/cron_shareholders.py @@ -1,10 +1,8 @@ -import aiohttp import ujson import sqlite3 import asyncio import pandas as pd from tqdm import tqdm -from collections import defaultdict query_template = """ @@ -21,7 +19,7 @@ async def save_as_json(symbol, data): ujson.dump(data, file) -async def get_data(ticker, stock_symbols, etf_symbols, con, etf_con): +async def get_data(ticker, etf_symbols, con, etf_con): if ticker in etf_symbols: table_name = 'etfs' else: @@ -71,7 +69,7 @@ async def run(): total_symbols = stock_symbols + etf_symbols for ticker in tqdm(total_symbols): - shareholders_list = await get_data(ticker, stock_symbols, etf_symbols, con, etf_con) + shareholders_list = await get_data(ticker, etf_symbols, con, etf_con) if len(shareholders_list) > 0: await save_as_json(ticker, shareholders_list) diff --git a/app/cron_var.py b/app/cron_var.py index 9a278e4..2abeeb0 100755 --- a/app/cron_var.py +++ b/app/cron_var.py @@ -4,7 +4,6 @@ import numpy as np import ujson import asyncio -import aiohttp import sqlite3 from tqdm import tqdm