update congress db
This commit is contained in:
parent
e577eb72a4
commit
1da2cc586f
@ -62,7 +62,7 @@ crypto_con.close()
|
|||||||
|
|
||||||
load_dotenv()
|
load_dotenv()
|
||||||
api_key = os.getenv('FMP_API_KEY')
|
api_key = os.getenv('FMP_API_KEY')
|
||||||
quarter_date = '2024-6-30'
|
quarter_date = '2024-03-31'
|
||||||
|
|
||||||
|
|
||||||
if os.path.exists("backup_db/institute.db"):
|
if os.path.exists("backup_db/institute.db"):
|
||||||
|
|||||||
@ -98,6 +98,7 @@ def replace_representative(office):
|
|||||||
'Blunt, Roy (Senator)': 'Roy Blunt',
|
'Blunt, Roy (Senator)': 'Roy Blunt',
|
||||||
'Thune, John (Senator)': 'John Thune',
|
'Thune, John (Senator)': 'John Thune',
|
||||||
'Rosen, Jacky (Senator)': 'Jacky Rosen',
|
'Rosen, Jacky (Senator)': 'Jacky Rosen',
|
||||||
|
'Britt, Katie (Senator)': 'Katie Britt',
|
||||||
'James Costa': 'Jim Costa',
|
'James Costa': 'Jim Costa',
|
||||||
'Lummis, Cynthia (Senator)': 'Cynthia Lummis',
|
'Lummis, Cynthia (Senator)': 'Cynthia Lummis',
|
||||||
'Coons, Chris (Senator)': 'Chris Coons',
|
'Coons, Chris (Senator)': 'Chris Coons',
|
||||||
|
|||||||
@ -21,8 +21,8 @@ def save_json(data):
|
|||||||
ujson.dump(data, file)
|
ujson.dump(data, file)
|
||||||
|
|
||||||
|
|
||||||
identifier = 'GME'
|
identifier = 'INTC'
|
||||||
source = 'cta_a_delayed'
|
source = 'utp_delayed'
|
||||||
start_date, end_date = GetStartEndDate().run()
|
start_date, end_date = GetStartEndDate().run()
|
||||||
start_date = start_date.strftime("%Y-%m-%d")
|
start_date = start_date.strftime("%Y-%m-%d")
|
||||||
end_date = end_date.strftime("%Y-%m-%d")
|
end_date = end_date.strftime("%Y-%m-%d")
|
||||||
@ -42,8 +42,8 @@ def get_data():
|
|||||||
if count == 0:
|
if count == 0:
|
||||||
next_page = ''
|
next_page = ''
|
||||||
try:
|
try:
|
||||||
response = intrinio.SecurityApi().get_security_trades(
|
response = intrinio.SecurityApi().get_security_trades_by_symbol(
|
||||||
source, start_date=start_date, start_time=start_time,
|
identifier, source, start_date=start_date, start_time=start_time,
|
||||||
end_date=end_date, end_time=end_time, timezone=timezone,
|
end_date=end_date, end_time=end_time, timezone=timezone,
|
||||||
page_size=page_size, darkpool_only=darkpool_only, min_size=min_size,
|
page_size=page_size, darkpool_only=darkpool_only, min_size=min_size,
|
||||||
next_page=next_page
|
next_page=next_page
|
||||||
|
|||||||
Binary file not shown.
@ -580,6 +580,7 @@ def replace_representative(office):
|
|||||||
'Blunt, Roy (Senator)': 'Roy Blunt',
|
'Blunt, Roy (Senator)': 'Roy Blunt',
|
||||||
'Thune, John (Senator)': 'John Thune',
|
'Thune, John (Senator)': 'John Thune',
|
||||||
'Rosen, Jacky (Senator)': 'Jacky Rosen',
|
'Rosen, Jacky (Senator)': 'Jacky Rosen',
|
||||||
|
'Britt, Katie (Senator)': 'Katie Britt',
|
||||||
'James Costa': 'Jim Costa',
|
'James Costa': 'Jim Costa',
|
||||||
'Lummis, Cynthia (Senator)': 'Cynthia Lummis',
|
'Lummis, Cynthia (Senator)': 'Cynthia Lummis',
|
||||||
'Coons, Chris (Senator)': 'Chris Coons',
|
'Coons, Chris (Senator)': 'Chris Coons',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user